aboutsummaryrefslogtreecommitdiff
path: root/contrib/libarchive/libarchive/archive_pathmatch.c
diff options
context:
space:
mode:
authorMartin Matuska <mm@FreeBSD.org>2016-05-12 10:16:16 +0000
committerMartin Matuska <mm@FreeBSD.org>2016-05-12 10:16:16 +0000
commitcdf63a700c77204252e3c2e38d7106965559f3c6 (patch)
treeb8221b5b091ffc72b700d5da57daaa86ae023d82 /contrib/libarchive/libarchive/archive_pathmatch.c
parent15c98ff2f1159f39e6c8fc585893734e4f74aa81 (diff)
parent4e579f6c9425c995106fbf72667f4ec7e5d5db85 (diff)
downloadsrc-cdf63a700c77204252e3c2e38d7106965559f3c6.tar.gz
src-cdf63a700c77204252e3c2e38d7106965559f3c6.zip
Notes
Diffstat (limited to 'contrib/libarchive/libarchive/archive_pathmatch.c')
-rw-r--r--contrib/libarchive/libarchive/archive_pathmatch.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/libarchive/libarchive/archive_pathmatch.c b/contrib/libarchive/libarchive/archive_pathmatch.c
index 505252a18f38..619e2b622a3c 100644
--- a/contrib/libarchive/libarchive/archive_pathmatch.c
+++ b/contrib/libarchive/libarchive/archive_pathmatch.c
@@ -394,8 +394,8 @@ __archive_pathmatch(const char *p, const char *s, int flags)
if (*p == '/' && *s != '/')
return (0);
- /* Certain patterns and file names anchor implicitly. */
- if (*p == '*' || *p == '/' || *p == '/') {
+ /* Certain patterns anchor implicitly. */
+ if (*p == '*' || *p == '/') {
while (*p == '/')
++p;
while (*s == '/')
@@ -434,8 +434,8 @@ __archive_pathmatch_w(const wchar_t *p, const wchar_t *s, int flags)
if (*p == L'/' && *s != L'/')
return (0);
- /* Certain patterns and file names anchor implicitly. */
- if (*p == L'*' || *p == L'/' || *p == L'/') {
+ /* Certain patterns anchor implicitly. */
+ if (*p == L'*' || *p == L'/') {
while (*p == L'/')
++p;
while (*s == L'/')