From 3cb5ef1c7985c6a9a92cc854f9b23e5cc8af7eb7 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 1 Dec 2021 16:26:28 -0800 Subject: s3: smbd: Remove dest_has_wild and all associated code from rename_internals() Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- source3/smbd/reply.c | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'source3/smbd/reply.c') 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); -- cgit v1.2.1