From: Stefan Metzmacher Date: Tue, 15 Oct 2019 11:58:48 +0000 (+0200) Subject: s3:vfs_streams_depot: make use of lp_parm_substituted_string() X-Git-Tag: ldb-2.1.0~593 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=48c7d777f220d5c82cc5c456f86f760c42e3cf7e;p=thirdparty%2Fsamba.git s3:vfs_streams_depot: make use of lp_parm_substituted_string() Signed-off-by: Stefan Metzmacher Reviewed-by: Ralph Boehme --- diff --git a/source3/modules/vfs_streams_depot.c b/source3/modules/vfs_streams_depot.c index 9f3b79992bc..9b0e73b25b7 100644 --- a/source3/modules/vfs_streams_depot.c +++ b/source3/modules/vfs_streams_depot.c @@ -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) {