smbd: Use ISDOT() in exact_match()
authorVolker Lendecke <vl@samba.org>
Sat, 27 May 2023 09:28:14 +0000 (11:28 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 13 Jun 2023 23:33:39 +0000 (23:33 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/smb2_trans2.c

index c32e0e52e02b88f04d33e841b546b51e93ea3ab1..648893a859601327eb756a5476e8b2ba9e774f1e 100644 (file)
@@ -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;
        }