mirror of
https://github.com/samba-team/samba.git
synced 2025-03-22 02:50:28 +03:00
sharesec: use db_open_trans()
metze (This used to be commit 1c59142ccc46616c10b98c51601361f203d542d6)
This commit is contained in:
parent
f8c569e066
commit
2fe572d043
@ -51,8 +51,8 @@ static bool share_info_db_init(void)
|
||||
return True;
|
||||
}
|
||||
|
||||
share_db = db_open(NULL, state_path("share_info.tdb"), 0, TDB_DEFAULT,
|
||||
O_RDWR|O_CREAT, 0600);
|
||||
share_db = db_open_trans(NULL, state_path("share_info.tdb"), 0,
|
||||
TDB_DEFAULT, O_RDWR|O_CREAT, 0600);
|
||||
if (share_db == NULL) {
|
||||
DEBUG(0,("Failed to open share info database %s (%s)\n",
|
||||
state_path("share_info.tdb"), strerror(errno) ));
|
||||
|
Loading…
x
Reference in New Issue
Block a user