summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-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));