summaryrefslogtreecommitdiff
path: root/source3/utils/net_vfs.c
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2019-10-31 19:14:02 +0100
committerStefan Metzmacher <metze@samba.org>2019-11-27 10:25:33 +0000
commitf7619ac22b50bf3bac96825e72e9910946d7f4d2 (patch)
tree478721c44495fbe9b99aab50b814b70741d35cbf /source3/utils/net_vfs.c
parent95f0f22ca5150642c77bbbbe40a921ac50861e1c (diff)
downloadsamba-f7619ac22b50bf3bac96825e72e9910946d7f4d2.tar.gz
smbdotconf: mark "path" with substitution="1"
Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/utils/net_vfs.c')
-rw-r--r--source3/utils/net_vfs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/utils/net_vfs.c b/source3/utils/net_vfs.c
index c9e115292b3..d5f6beddb88 100644
--- a/source3/utils/net_vfs.c
+++ b/source3/utils/net_vfs.c
@@ -114,6 +114,8 @@ static bool net_vfs_make_session_info(struct auth_session_info **session_info)
static int net_vfs_init(struct net_context *c, int argc, const char **argv)
{
+ const struct loadparm_substitution *lp_sub =
+ loadparm_s3_global_substitution();
const char *service = NULL;
char *share_root = NULL;
int snum;
@@ -166,7 +168,7 @@ static int net_vfs_init(struct net_context *c, int argc, const char **argv)
goto done;
}
- share_root = lp_path(state.mem_ctx, snum);
+ share_root = lp_path(state.mem_ctx, lp_sub, snum);
if (share_root == NULL) {
fprintf(stderr, "Failed to find share root for service: %s\n",
service);