summaryrefslogtreecommitdiff
path: root/source3/smbd/reply.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2021-12-01 16:26:28 -0800
committerRalph Boehme <slow@samba.org>2021-12-09 18:06:35 +0000
commit3cb5ef1c7985c6a9a92cc854f9b23e5cc8af7eb7 (patch)
treedbfe31bbf137ff8250cac5549d97988d0c144909 /source3/smbd/reply.c
parent885a982b9fde950e80862c481ee711a9e16403b2 (diff)
downloadsamba-3cb5ef1c7985c6a9a92cc854f9b23e5cc8af7eb7.tar.gz
s3: smbd: Remove dest_has_wild and all associated code from rename_internals()
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'source3/smbd/reply.c')
-rw-r--r--source3/smbd/reply.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 9a94693d937..61bc42e277e 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -7848,7 +7848,6 @@ NTSTATUS rename_internals(TALLOC_CTX *ctx,
struct smb2_create_blobs *posx = NULL;
int rc;
bool src_has_wild = false;
- bool dest_has_wild = false;
bool posix_pathname = (smb_fname_src->flags & SMB_FILENAME_POSIX_PATH);
bool case_sensitive = posix_pathname ? true : conn->case_sensitive;
bool case_preserve = posix_pathname ? true : conn->case_preserve;
@@ -7936,24 +7935,6 @@ NTSTATUS rename_internals(TALLOC_CTX *ctx,
smb_fname_str_dbg(smb_fname_dst),
dst_original_lcomp));
- /* The dest name still may have wildcards. */
- if (dest_has_wild) {
- char *fname_dst_mod = NULL;
- if (!resolve_wildcards(smb_fname_dst,
- smb_fname_src->base_name,
- smb_fname_dst->base_name,
- &fname_dst_mod)) {
- DEBUG(6, ("rename_internals: resolve_wildcards "
- "%s %s failed\n",
- smb_fname_src->base_name,
- smb_fname_dst->base_name));
- status = NT_STATUS_NO_MEMORY;
- goto out;
- }
- TALLOC_FREE(smb_fname_dst->base_name);
- smb_fname_dst->base_name = fname_dst_mod;
- }
-
ZERO_STRUCT(smb_fname_src->st);
rc = vfs_stat(conn, smb_fname_src);