From ed41cdb6467b98c116d4dc54dec364be6e5b2104 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 26 Nov 2007 00:55:22 +0100 Subject: r26123: Use utility function for secrets.tdb path. (This used to be commit 48b03ceeff78a1e8af62395abdb47aa8567c9ac5) --- source4/param/secrets.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source4/param/secrets.c') diff --git a/source4/param/secrets.c b/source4/param/secrets.c index aea27d1cfc1..07291de7095 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); -- cgit v1.2.1