pdb_tdb: use db_open_trans()
authorStefan Metzmacher <metze@samba.org>
Thu, 27 Mar 2008 15:57:10 +0000 (16:57 +0100)
committerMichael Adam <obnox@samba.org>
Thu, 27 Mar 2008 17:14:57 +0000 (18:14 +0100)
metze

Signed-off-by: Stefan Metzmacher <metze@samba.org>
source/passdb/pdb_tdb.c

index c3ee18801060a6520741d5e88cad4e591b1c14b0..b41a7cc0a48bc03730cb0249982603b20cd90872 100644 (file)
@@ -832,7 +832,7 @@ static bool tdbsam_open( const char *name )
 
        /* Try to open tdb passwd.  Create a new one if necessary */
 
-       db_sam = db_open(NULL, name, 0, TDB_DEFAULT, O_CREAT|O_RDWR, 0600);
+       db_sam = db_open_trans(NULL, name, 0, TDB_DEFAULT, O_CREAT|O_RDWR, 0600);
        if (db_sam == NULL) {
                DEBUG(0, ("tdbsam_open: Failed to open/create TDB passwd "
                          "[%s]\n", name));