From: Jeremy Allison Date: Thu, 2 Dec 2021 00:12:46 +0000 (-0800) Subject: s3: smbd: In reply_ntrename() remove the UCF_ALWAYS_ALLOW_WCARD_LCOMP flag for destin... X-Git-Tag: tdb-1.4.6~388 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e66148c8741175bfb2f117ce2ff3a3aa4bf23946;p=thirdparty%2Fsamba.git s3: smbd: In reply_ntrename() remove the UCF_ALWAYS_ALLOW_WCARD_LCOMP flag for destination lookups. We know the destination will never be a wildcard. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c index 254559fec8f..b061015aae9 100644 --- a/source3/smbd/nttrans.c +++ b/source3/smbd/nttrans.c @@ -1788,14 +1788,6 @@ void reply_ntrename(struct smb_request *req) } } - /* - * If this is a rename operation, allow wildcards and save the - * destination's last component. - */ - if (rename_type == RENAME_FLAG_RENAME) { - ucf_flags_dst |= UCF_ALWAYS_ALLOW_WCARD_LCOMP; - } - /* rename_internals() calls unix_convert(), so don't call it here. */ status = filename_convert(ctx, conn, oldname,