mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
pdb_tdb: use db_open_trans()
metze
Signed-off-by: Stefan Metzmacher <metze@samba.org>
(This used to be commit 9925cc01a2
)
This commit is contained in:
parent
7d413b8bee
commit
dbd2e3860d
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user