summaryrefslogtreecommitdiff
path: root/src/fnmatch.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fnmatch.c')
-rw-r--r--src/fnmatch.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fnmatch.c b/src/fnmatch.c
index 3846bab3c..d8a83a8ed 100644
--- a/src/fnmatch.c
+++ b/src/fnmatch.c
@@ -62,6 +62,8 @@ p_fnmatchx(const char *pattern, const char *string, int flags, size_t recurs)
flags &= ~FNM_PATHNAME;
while (c == '*')
c = *++pattern;
+ if (c == '/')
+ c = *++pattern;
}
if (*string == '.' && (flags & FNM_PERIOD) &&