]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: Remove UCF_ALWAYS_ALLOW_WCARD_LCOMP flag from pathname processing in reply_...
authorJeremy Allison <jra@samba.org>
Wed, 1 Dec 2021 21:56:31 +0000 (13:56 -0800)
committerRalph Boehme <slow@samba.org>
Thu, 9 Dec 2021 18:06:35 +0000 (18:06 +0000)
We are no longer supporting wildcard rename via SMBmv (0x7)
as WindowsXP SMB1 and above do not use it.

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

index 234e2967cb01441c8a7a994fcb8e4fb22e73bdd1..fabeb4000460604cd5980563e20fa20d8d03ae7b 100644 (file)
@@ -8255,10 +8255,8 @@ void reply_mv(struct smb_request *req)
        const char *src_original_lcomp = NULL;
        struct smb_filename *smb_fname_dst = NULL;
        const char *dst_original_lcomp = NULL;
-       uint32_t src_ucf_flags = ucf_flags_from_smb_request(req) |
-               (!req->posix_pathnames ? UCF_ALWAYS_ALLOW_WCARD_LCOMP : 0);
-       uint32_t dst_ucf_flags = ucf_flags_from_smb_request(req) |
-               (!req->posix_pathnames ? UCF_ALWAYS_ALLOW_WCARD_LCOMP : 0);
+       uint32_t src_ucf_flags = ucf_flags_from_smb_request(req);
+       uint32_t dst_ucf_flags = ucf_flags_from_smb_request(req);
        bool stream_rename = false;
 
        START_PROFILE(SMBmv);