summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-11-26 00:55:22 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:46:13 +0100
commited41cdb6467b98c116d4dc54dec364be6e5b2104 (patch)
tree1082d0ec79d39d577b9745df0804581f12d3fe68 /source4
parent0cb2a6db9b054647f5e7c8f2a23b7d5dff05f085 (diff)
downloadsamba-ed41cdb6467b98c116d4dc54dec364be6e5b2104.tar.gz
samba-ed41cdb6467b98c116d4dc54dec364be6e5b2104.tar.bz2
samba-ed41cdb6467b98c116d4dc54dec364be6e5b2104.zip
r26123: Use utility function for secrets.tdb path.
(This used to be commit 48b03ceeff78a1e8af62395abdb47aa8567c9ac5)
Diffstat (limited to 'source4')
-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);