summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_recycle.c
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2019-11-07 11:01:05 +0100
committerStefan Metzmacher <metze@samba.org>2019-11-27 10:25:37 +0000
commitb5c6964a50be03999432fa5620be39dcb7093ad8 (patch)
tree3933192064a7df757929b2f12b204e94746e4ef5 /source3/modules/vfs_recycle.c
parenteddc63be868434d3aa5a66b514b692f4d7b8833a (diff)
downloadsamba-b5c6964a50be03999432fa5620be39dcb7093ad8.tar.gz
s3:param: make "servicename" a substituted option
Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/modules/vfs_recycle.c')
-rw-r--r--source3/modules/vfs_recycle.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/modules/vfs_recycle.c b/source3/modules/vfs_recycle.c
index 46a4fcb16bf..6c8c6a76f30 100644
--- a/source3/modules/vfs_recycle.c
+++ b/source3/modules/vfs_recycle.c
@@ -454,6 +454,8 @@ static int recycle_unlink_internal(vfs_handle_struct *handle,
const struct smb_filename *smb_fname,
int flags)
{
+ const struct loadparm_substitution *lp_sub =
+ loadparm_s3_global_substitution();
connection_struct *conn = handle->conn;
char *path_name = NULL;
char *temp_name = NULL;
@@ -467,7 +469,7 @@ static int recycle_unlink_internal(vfs_handle_struct *handle,
bool exist;
int rc = -1;
- repository = talloc_sub_full(NULL, lp_servicename(talloc_tos(), SNUM(conn)),
+ repository = talloc_sub_full(NULL, lp_servicename(talloc_tos(), lp_sub, SNUM(conn)),
conn->session_info->unix_info->unix_name,
conn->connectpath,
conn->session_info->unix_token->gid,