From c518111e1178e55fcb1f66d974b7a37a4cdbe05e Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 29 Sep 2020 11:06:54 -0700 Subject: [PATCH] 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 --- source3/smbd/nttrans.c | 4 ++++ 1 file changed, 4 insertions(+) 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, -- 2.47.3