mapping_tdb: use db_open_trans()
authorStefan Metzmacher <metze@samba.org>
Thu, 27 Mar 2008 16:39:58 +0000 (17:39 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 1 Apr 2008 12:04:21 +0000 (14:04 +0200)
metze
(This used to be commit 16d18df0d069aec645c41e38e8c926ccdaac9388)

source3/groupdb/mapping_tdb.c

index aab337da6a870578a56ab90a86a085fd1ac7fd31..7c864e13401ac8c8fdd7e81a638ade7c2a99f2df 100644 (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)));