]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: In reply_ntrename() remove the UCF_ALWAYS_ALLOW_WCARD_LCOMP flag for destin...
authorJeremy Allison <jra@samba.org>
Thu, 2 Dec 2021 00:12:46 +0000 (16:12 -0800)
committerRalph Boehme <slow@samba.org>
Thu, 9 Dec 2021 18:06:35 +0000 (18:06 +0000)
We know the destination will never be a wildcard.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/nttrans.c

index 254559fec8f00a0b9046ba54240279e034968efb..b061015aae9a4293bb2caeb55a59097c01d09b9e 100644 (file)
@@ -1788,14 +1788,6 @@ void reply_ntrename(struct smb_request *req)
                }
        }
 
-       /*
-        * If this is a rename operation, allow wildcards and save the
-        * destination's last component.
-        */
-       if (rename_type == RENAME_FLAG_RENAME) {
-               ucf_flags_dst |= UCF_ALWAYS_ALLOW_WCARD_LCOMP;
-       }
-
        /* rename_internals() calls unix_convert(), so don't call it here. */
        status = filename_convert(ctx, conn,
                                  oldname,