]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
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 e2dca205b8342888d3c1cad270bd7a78dae85d6e..8de33c32e10f6e248ad8654c2368805c7db1aea2 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;
        }