Make sure that no character class can match a '/'.
authorWayne Davison <wayned@samba.org>
Mon, 14 Jul 2003 15:12:59 +0000 (15:12 +0000)
committerWayne Davison <wayned@samba.org>
Mon, 14 Jul 2003 15:12:59 +0000 (15:12 +0000)
lib/wildmatch.c

index e2dca20..8de33c3 100644 (file)
@@ -210,7 +210,7 @@ static int domatch(const unsigned char *p, const unsigned char *text)
                else if (*text == ch)
                    matched = TRUE;
            } while (prev = ch, (ch = *++p) != ']');
-           if (matched == special)
+           if (matched == special || *text == '/')
                return FALSE;
            continue;
        }