From: Wayne Davison Date: Mon, 14 Jul 2003 15:12:59 +0000 (+0000) Subject: Make sure that no character class can match a '/'. X-Git-Tag: v2.5.7~69 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d811b689013fe469218dbcff3905ba5884fd9a6f;p=thirdparty%2Frsync.git Make sure that no character class can match a '/'. --- 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; }