summaryrefslogtreecommitdiffstats
path: root/source/groupdb
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-03-27 17:39:58 +0100
committerKarolin Seeger <kseeger@samba.org>2008-04-12 07:53:46 +0200
commit70d7bbb688ea0b7a1d1bd4aeb4b5f424ddff15ef (patch)
tree1dfb455755652d628b26c7daf377de8d521e8d8a /source/groupdb
parente84be843f24c51756fff71dd9f18b5d29a81d7f3 (diff)
downloadsamba-70d7bbb688ea0b7a1d1bd4aeb4b5f424ddff15ef.tar.gz
samba-70d7bbb688ea0b7a1d1bd4aeb4b5f424ddff15ef.tar.xz
samba-70d7bbb688ea0b7a1d1bd4aeb4b5f424ddff15ef.zip
mapping_tdb: use db_open_trans()
metze (cherry picked from commit 16d18df0d069aec645c41e38e8c926ccdaac9388)
Diffstat (limited to 'source/groupdb')
-rw-r--r--source/groupdb/mapping_tdb.c4
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)));