From: Stefan Metzmacher Date: Thu, 27 Mar 2008 15:57:10 +0000 (+0100) Subject: pdb_tdb: use db_open_trans() X-Git-Tag: samba-3.3.0pre1~3061 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9925cc01a2a4739d6cde5991eb0d0b79ae13353b;p=thirdparty%2Fsamba.git pdb_tdb: use db_open_trans() metze Signed-off-by: Stefan Metzmacher --- diff --git a/source/passdb/pdb_tdb.c b/source/passdb/pdb_tdb.c index c3ee1880106..b41a7cc0a48 100644 --- a/source/passdb/pdb_tdb.c +++ b/source/passdb/pdb_tdb.c @@ -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));