From 97a4dfbd4a3184cac49dceb1ef0b016e891f96d2 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 29 Sep 2020 11:49:01 -0700 Subject: [PATCH] s3: smbd: SMB1 reply_search() doesn't actually care if the mask contains a wildcard or not. Don't pass to filename_convert(). 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 38d9399eea1..25154f4efde 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -1866,7 +1866,7 @@ void reply_search(struct smb_request *req) path, ucf_flags, 0, - &mask_contains_wcard, + NULL, &smb_fname); if (!NT_STATUS_IS_OK(nt_status)) { if (NT_STATUS_EQUAL(nt_status,NT_STATUS_PATH_NOT_COVERED)) { -- 2.47.3