packages: apr/apr-1.4.4-fnmatch.patch (NEW) - according to regressions foun...
marti
marti at pld-linux.org
Thu May 19 20:54:33 CEST 2011
Author: marti Date: Thu May 19 18:54:33 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- according to regressions found in apr-1.4.4: http://mail-archives.apache.org/mod_mbox/httpd-announce/201105.mbox/%3C4DD55092.3030403@apache.org%3E
---- Files affected:
packages/apr:
apr-1.4.4-fnmatch.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/apr/apr-1.4.4-fnmatch.patch
diff -u /dev/null packages/apr/apr-1.4.4-fnmatch.patch:1.1
--- /dev/null Thu May 19 20:54:33 2011
+++ packages/apr/apr-1.4.4-fnmatch.patch Thu May 19 20:54:28 2011
@@ -0,0 +1,38 @@
+diff -ur apr-1.4.4-orig/strings/apr_fnmatch.c apr-1.4.4/strings/apr_fnmatch.c
+--- apr-1.4.4-orig/strings/apr_fnmatch.c 2011-05-03 06:51:24.000000000 +0200
++++ apr-1.4.4/strings/apr_fnmatch.c 2011-05-19 20:50:52.042450131 +0200
+@@ -196,8 +196,11 @@
+ const char *mismatch = NULL;
+ int matchlen = 0;
+
+- while (*pattern)
+- {
++ if (*pattern == '*')
++ goto firstsegment;
++
++ while (*pattern && *string)
++ {
+ /* Match balanced slashes, starting a new segment pattern
+ */
+ if (slash && escape && (*pattern == '\\') && (pattern[1] == '/'))
+@@ -207,6 +210,7 @@
+ ++string;
+ }
+
++firstsegment:
+ /* At the beginning of each segment, validate leading period behavior.
+ */
+ if ((flags & APR_FNM_PERIOD) && (*string == '.'))
+@@ -361,9 +365,9 @@
+ return APR_FNM_NOMATCH;
+ }
+
+- /* pattern is at EOS; if string is also, declare success
++ /* Where both pattern and string are at EOS, declare success
+ */
+- if (!*string)
++ if (!*string && !*pattern)
+ return 0;
+
+ /* pattern didn't match to the end of string */
+Tylko w apr-1.4.4/strings: apr_fnmatch.c~
================================================================
More information about the pld-cvs-commit
mailing list