X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=wildmatch.c;h=9e9e2a2f955d242cf994c5451c537a7f88539379;hb=86ad3ea5cff8fa09180408e610b269390c1f4848;hp=d074c1be1046f1aba11d21eb5b66a738590bc712;hpb=75266b4e8bc032edd237e938aae93b67d7638768;p=thirdparty%2Fgit.git diff --git a/wildmatch.c b/wildmatch.c index d074c1be10..9e9e2a2f95 100644 --- a/wildmatch.c +++ b/wildmatch.c @@ -104,8 +104,8 @@ static int dowild(const uchar *p, const uchar *text, unsigned int flags) dowild(p + 1, text, flags) == WM_MATCH) return WM_MATCH; match_slash = 1; - } else - return WM_ABORT_MALFORMED; + } else /* WM_PATHNAME is set */ + match_slash = 0; } else /* without WM_PATHNAME, '*' == '**' */ match_slash = flags & WM_PATHNAME ? 0 : 1;