summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2003-07-14 15:12:59 +0000
committerWayne Davison <wayned@samba.org>2003-07-14 15:12:59 +0000
commitd811b689013fe469218dbcff3905ba5884fd9a6f (patch)
treebbcf3259bf3793b499310903261b556060958de6 /lib
parent1c8162a921cbae803b3bf375fda4aa7916bcfc68 (diff)
downloadrsync-d811b689013fe469218dbcff3905ba5884fd9a6f.tar.gz
rsync-d811b689013fe469218dbcff3905ba5884fd9a6f.tar.bz2
rsync-d811b689013fe469218dbcff3905ba5884fd9a6f.zip
Make sure that no character class can match a '/'.
Diffstat (limited to 'lib')
-rw-r--r--lib/wildmatch.c2
1 files changed, 1 insertions, 1 deletions
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;
}