From d811b689013fe469218dbcff3905ba5884fd9a6f Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Mon, 14 Jul 2003 15:12:59 +0000 Subject: [PATCH] Make sure that no character class can match a '/'. --- lib/wildmatch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/wildmatch.c b/lib/wildmatch.c index e2dca205..8de33c32 100644 --- a/lib/wildmatch.c +++ b/lib/wildmatch.c @@ -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; } -- 2.34.1