diff options
author | Stefan Metzmacher <metze@samba.org> | 2008-03-27 17:39:58 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2008-04-12 07:53:46 +0200 |
commit | 70d7bbb688ea0b7a1d1bd4aeb4b5f424ddff15ef (patch) | |
tree | 1dfb455755652d628b26c7daf377de8d521e8d8a | |
parent | e84be843f24c51756fff71dd9f18b5d29a81d7f3 (diff) | |
download | samba-70d7bbb688ea0b7a1d1bd4aeb4b5f424ddff15ef.tar.gz samba-70d7bbb688ea0b7a1d1bd4aeb4b5f424ddff15ef.tar.xz samba-70d7bbb688ea0b7a1d1bd4aeb4b5f424ddff15ef.zip |
mapping_tdb: use db_open_trans()
metze
(cherry picked from commit 16d18df0d069aec645c41e38e8c926ccdaac9388)
-rw-r--r-- | source/groupdb/mapping_tdb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/groupdb/mapping_tdb.c b/source/groupdb/mapping_tdb.c index 17b5b5d23bb..6d110e7c69b 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))); |