apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r1124997 - /apr/apr/trunk/strings/apr_fnmatch.c
Date Thu, 19 May 2011 17:05:21 GMT
Author: wrowe
Date: Thu May 19 17:05:21 2011
New Revision: 1124997

URL: http://svn.apache.org/viewvc?rev=1124997&view=rev
Log:
Fix t ~= [/-/t] mismatch, observed by jorton.

Modified:
    apr/apr/trunk/strings/apr_fnmatch.c

Modified: apr/apr/trunk/strings/apr_fnmatch.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/strings/apr_fnmatch.c?rev=1124997&r1=1124996&r2=1124997&view=diff
==============================================================================
--- apr/apr/trunk/strings/apr_fnmatch.c (original)
+++ apr/apr/trunk/strings/apr_fnmatch.c Thu May 19 17:05:21 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 */



Mime
View raw message