Commit c7d96060 by Russell Belfer

Fix fnmatch comment to be clearer

parent c8c91433
...@@ -55,7 +55,9 @@ p_fnmatchx(const char *pattern, const char *string, int flags, size_t recurs) ...@@ -55,7 +55,9 @@ p_fnmatchx(const char *pattern, const char *string, int flags, size_t recurs)
case '*': case '*':
c = *pattern; c = *pattern;
/* Apply '**' to overwrite PATHNAME match */ /* Let '**' override PATHNAME match for this segment.
* It will be restored if/when we recurse below.
*/
if (c == '*') { if (c == '*') {
flags &= ~FNM_PATHNAME; flags &= ~FNM_PATHNAME;
while (c == '*') while (c == '*')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment