From 16d18df0d069aec645c41e38e8c926ccdaac9388 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 27 Mar 2008 17:39:58 +0100 Subject: [PATCH] mapping_tdb: use db_open_trans() metze --- source/groupdb/mapping_tdb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/groupdb/mapping_tdb.c b/source/groupdb/mapping_tdb.c index aab337da6a8..7c864e13401 100644 --- a/source/groupdb/mapping_tdb.c +++ b/source/groupdb/mapping_tdb.c @@ -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))); -- 2.11.4.GIT