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:
parent
0cb2a6db9b
commit
ed41cdb646
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user