]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:vfs_streams_depot: make use of lp_parm_substituted_string()
authorStefan Metzmacher <metze@samba.org>
Tue, 15 Oct 2019 11:58:48 +0000 (13:58 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 27 Nov 2019 10:25:31 +0000 (10:25 +0000)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_streams_depot.c

index 9f3b79992bc1c5db96a4d25cb779fd1a15d24928..9b0e73b25b784580ab91a70f6d0ac2e9ca7b4420 100644 (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) {