From: Jeremy Allison Date: Tue, 29 Sep 2020 18:06:54 +0000 (-0700) Subject: s3: smbd: SMB1 reply_ntrename() - set dest_has_wcard from the parsed last component. X-Git-Tag: talloc-2.3.2~412 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c518111e1178e55fcb1f66d974b7a37a4cdbe05e;p=thirdparty%2Fsamba.git s3: smbd: SMB1 reply_ntrename() - set dest_has_wcard from the parsed last component. We eventually want to remove the last_component_has_wcard out of the srvstr_get_pathXXX() calls and just use srvstr_get_path_req(). Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c index 7ab1c5d178d..a178a6bad1f 100644 --- a/source3/smbd/nttrans.c +++ b/source3/smbd/nttrans.c @@ -1796,6 +1796,10 @@ void reply_ntrename(struct smb_request *req) goto out; } + if (!req->posix_pathnames) { + dest_has_wcard = ms_has_wild(dst_original_lcomp); + } + status = filename_convert(ctx, conn, newname, ucf_flags_dst,