summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-03-27 16:57:30 +0100
committerMichael Adam <obnox@samba.org>2008-03-27 18:14:57 +0100
commit4b2ce410a5927089039d39bba3a4e6178930a65a (patch)
tree5beff1c3a248a5f088f687c33f4567e2a28d6428 /source3/passdb
parent3b0592bc152e6391c441b42bf13d2e7ea88c54d2 (diff)
downloadsamba-4b2ce410a5927089039d39bba3a4e6178930a65a.tar.gz
samba-4b2ce410a5927089039d39bba3a4e6178930a65a.tar.bz2
samba-4b2ce410a5927089039d39bba3a4e6178930a65a.zip
passdb/secrets: use db_open_trans()
metze Signed-off-by: Stefan Metzmacher <metze@samba.org> (This used to be commit b61b8ca4944f399216d8e67a48ea7d259258b432)
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/secrets.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/passdb/secrets.c b/source3/passdb/secrets.c
index 234c2620c9..06bbd96353 100644
--- a/source3/passdb/secrets.c
+++ b/source3/passdb/secrets.c
@@ -64,7 +64,8 @@ bool secrets_init(void)
return false;
}
- db_ctx = db_open(NULL, fname, 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0600);
+ db_ctx = db_open_trans(NULL, fname, 0,
+ TDB_DEFAULT, O_RDWR|O_CREAT, 0600);
if (db_ctx == NULL) {
DEBUG(0,("Failed to open %s\n", fname));