]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: In SMB1 reply_copy(), make req->posix_pathnames a helper variable.
authorJeremy Allison <jra@samba.org>
Tue, 9 Nov 2021 22:21:41 +0000 (14:21 -0800)
committerRalph Boehme <slow@samba.org>
Tue, 16 Nov 2021 20:21:37 +0000 (20:21 +0000)
I need to use it elsewhere in here.

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

index df545838a8ebf5770c412466c6678272e811c151..00b0910928e2265bc6c5164bcffed4b49fbfb5b9 100644 (file)
@@ -8806,6 +8806,7 @@ void reply_copy(struct smb_request *req)
                ucf_flags_from_smb_request(req);
        uint32_t ucf_flags_dst = UCF_ALWAYS_ALLOW_WCARD_LCOMP |
                ucf_flags_from_smb_request(req);
+       bool posix_pathnames = req->posix_pathnames;
        TALLOC_CTX *ctx = talloc_tos();
 
        START_PROFILE(SMBcopy);
@@ -8899,7 +8900,7 @@ void reply_copy(struct smb_request *req)
                goto out;
        }
 
-       if (!req->posix_pathnames) {
+       if (!posix_pathnames) {
                char *orig_src_lcomp = NULL;
                char *orig_dst_lcomp = NULL;
                /*