1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

mapping_tdb: use db_open_trans()

metze
This commit is contained in:
Stefan Metzmacher 2008-03-27 17:39:58 +01:00
parent d702ed73c1
commit 16d18df0d0

View File

@ -38,8 +38,8 @@ static bool init_group_mapping(void)
return true;
}
db = db_open(NULL, state_path("group_mapping.tdb"), 0, TDB_DEFAULT,
O_RDWR|O_CREAT, 0600);
db = db_open_trans(NULL, state_path("group_mapping.tdb"), 0,
TDB_DEFAULT, O_RDWR|O_CREAT, 0600);
if (db == NULL) {
DEBUG(0, ("Failed to open group mapping database: %s\n",
strerror(errno)));