apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r1103041 - /apr/apr/trunk/strings/apr_fnmatch.c
Date Sat, 14 May 2011 11:15:55 GMT
Author: wrowe
Date: Sat May 14 11:15:55 2011
New Revision: 1103041

URL: http://svn.apache.org/viewvc?rev=1103041&view=rev
Log:
Fix another edge case, in [x-/] processing, which I can't seem 
to compose the proper test-case to expose.

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=1103041&r1=1103040&r2=1103041&view=diff
==============================================================================
--- apr/apr/trunk/strings/apr_fnmatch.c (original)
+++ apr/apr/trunk/strings/apr_fnmatch.c Sat May 14 11:15:55 2011
@@ -121,7 +121,7 @@ leadingclosebrace:
              */
             /* XXX: Fix for locale/MBCS character width */
             if (((*pattern)[1] == '-') && (*pattern)[2] 
-                    && ((escape && ((*pattern)[2] != '\\'))
+                    && (!(escape && ((*pattern)[2] == '\\'))
                           ? (((*pattern)[2] != ']') && (!slash || ((*pattern)[2]
!= '/')))
                           : (((*pattern)[3]) && (!slash || ((*pattern)[3] != '/')))))
{
                 startch = *pattern;



Mime
View raw message