You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by wr...@apache.org on 2011/05/19 19:06:32 UTC
svn commit: r1124999 - /apr/apr/branches/1.4.x/strings/apr_fnmatch.c
Author: wrowe
Date: Thu May 19 17:06:32 2011
New Revision: 1124999
URL: http://svn.apache.org/viewvc?rev=1124999&view=rev
Log:
Fix t ~= [/-/t] mismatch, observed by jorton.
Backports: r1124997
Modified:
apr/apr/branches/1.4.x/strings/apr_fnmatch.c
Modified: apr/apr/branches/1.4.x/strings/apr_fnmatch.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.4.x/strings/apr_fnmatch.c?rev=1124999&r1=1124998&r2=1124999&view=diff
==============================================================================
--- apr/apr/branches/1.4.x/strings/apr_fnmatch.c (original)
+++ apr/apr/branches/1.4.x/strings/apr_fnmatch.c Thu May 19 17:06:32 2011
@@ -129,7 +129,7 @@ leadingclosebrace:
* or ranges containing a slash in FNM_PATHNAME mode pattern
* fall out to to the rewind and test '[' literal code path
*/
- if (!**pattern || (slash && (**pattern == '\\')))
+ if (!**pattern || (slash && (**pattern == '/')))
break;
/* XXX: handle locale/MBCS comparison, advance by MBCS char width */