From 93fcb44961c78c0850cf8815ad10e64336230d35 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 28 Sep 2020 20:03:08 -0700 Subject: [PATCH] s3: smbd: SMB1 reply_unlink() - the UCF_COND_ALLOW_WCARD_LCOMP makes no sense. There's either a wildcard in the last component or not. Always use UCF_ALWAYS_ALLOW_WCARD_LCOMP for calls that can take a wildcard. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- source3/smbd/reply.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index f10a92ec2ac..b651bf4a3d6 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -3609,7 +3609,7 @@ void reply_unlink(struct smb_request *req) uint32_t dirtype; NTSTATUS status; bool path_contains_wcard = False; - uint32_t ucf_flags = UCF_COND_ALLOW_WCARD_LCOMP | + uint32_t ucf_flags = UCF_ALWAYS_ALLOW_WCARD_LCOMP | ucf_flags_from_smb_request(req); TALLOC_CTX *ctx = talloc_tos();