1 diff -ur apr-1.4.4-orig/strings/apr_fnmatch.c apr-1.4.4/strings/apr_fnmatch.c
2 --- apr-1.4.4-orig/strings/apr_fnmatch.c 2011-05-03 06:51:24.000000000 +0200
3 +++ apr-1.4.4/strings/apr_fnmatch.c 2011-05-19 20:50:52.042450131 +0200
5 const char *mismatch = NULL;
10 + if (*pattern == '*')
13 + while (*pattern && *string)
15 /* Match balanced slashes, starting a new segment pattern
17 if (slash && escape && (*pattern == '\\') && (pattern[1] == '/'))
23 /* At the beginning of each segment, validate leading period behavior.
25 if ((flags & APR_FNM_PERIOD) && (*string == '.'))
27 return APR_FNM_NOMATCH;
30 - /* pattern is at EOS; if string is also, declare success
31 + /* Where both pattern and string are at EOS, declare success
34 + if (!*string && !*pattern)
37 /* pattern didn't match to the end of string */
38 Tylko w apr-1.4.4/strings: apr_fnmatch.c~