X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/136c5c5ec3b3cc56d3952c3ce463f58615f00f8f..1fb8ec4b0d871f44eeb025b2ea2a1fbfa961234b:/lib/wildmatch.c 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; }