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

s3:vfs_streams_depot: make use of lp_parm_substituted_string()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Stefan Metzmacher 2019-10-15 13:58:48 +02:00
parent 5170fc2421
commit 48c7d777f2

View File

@ -115,6 +115,8 @@ static char *stream_dir(vfs_handle_struct *handle,
const struct smb_filename *smb_fname,
const SMB_STRUCT_STAT *base_sbuf, bool create_it)
{
const struct loadparm_substitution *lp_sub =
loadparm_s3_global_substitution();
uint32_t hash;
struct smb_filename *smb_fname_hash = NULL;
char *result = NULL;
@ -141,7 +143,7 @@ static char *stream_dir(vfs_handle_struct *handle,
goto fail;
}
rootdir = lp_parm_talloc_string(talloc_tos(),
rootdir = lp_parm_substituted_string(talloc_tos(), lp_sub,
SNUM(handle->conn), "streams_depot", "directory",
tmp);
if (rootdir == NULL) {