summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/param/secrets.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/param/secrets.c b/source4/param/secrets.c
index aea27d1cfc..07291de709 100644
--- a/source4/param/secrets.c
+++ b/source4/param/secrets.c
@@ -66,7 +66,8 @@ bool secrets_init(void)
if (tdb)
return true;
- asprintf(&fname, "%s/secrets.tdb", lp_private_dir(global_loadparm));
+ fname = private_path(talloc_autofree_context(), global_loadparm,
+ "secrets.tdb");
tdb = tdb_wrap_open(talloc_autofree_context(), fname, 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0600);