1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-03 13:47:25 +03:00

r26123: Use utility function for secrets.tdb path.

(This used to be commit 48b03ceeff78a1e8af62395abdb47aa8567c9ac5)
This commit is contained in:
Jelmer Vernooij 2007-11-26 00:55:22 +01:00 committed by Stefan Metzmacher
parent 0cb2a6db9b
commit ed41cdb646

View File

@ -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);