From: Jeremy Allison Date: Tue, 9 Nov 2021 22:21:41 +0000 (-0800) Subject: s3: smbd: In SMB1 reply_copy(), make req->posix_pathnames a helper variable. X-Git-Tag: ldb-2.5.0~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0d8f32d8f764bb2c9c00a3eda36367a7cd5a08f;p=thirdparty%2Fsamba.git s3: smbd: In SMB1 reply_copy(), make req->posix_pathnames a helper variable. I need to use it elsewhere in here. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index df545838a8e..00b0910928e 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -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; /*