From f44fc91505a4e021ebf2bdaffac9944cd2cf8a01 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 1 Dec 2021 16:14:57 -0800 Subject: [PATCH] s3: smbd: In reply_ntrename(), never set dest_has_wcard. It can never be true. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- source3/smbd/nttrans.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c index b061015aae9..18b6c087a02 100644 --- a/source3/smbd/nttrans.c +++ b/source3/smbd/nttrans.c @@ -1816,10 +1816,6 @@ 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