From: Volker Lendecke Date: Sat, 27 May 2023 09:28:14 +0000 (+0200) Subject: smbd: Use ISDOT() in exact_match() X-Git-Tag: talloc-2.4.1~439 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7e465b8e22038cbdce5fd7716c867f45345eb7ee;p=thirdparty%2Fsamba.git smbd: Use ISDOT() in exact_match() Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/smb2_trans2.c b/source3/smbd/smb2_trans2.c index c32e0e52e02..648893a8596 100644 --- a/source3/smbd/smb2_trans2.c +++ b/source3/smbd/smb2_trans2.c @@ -844,7 +844,7 @@ static bool exact_match(bool has_wild, const char *str, const char *mask) { - if (mask[0] == '.' && mask[1] == 0) { + if (ISDOT(mask)) { return false; }