Fix fnmatch comment to be clearer

This commit is contained in:
Russell Belfer 2014-04-06 11:20:22 -07:00
parent c8c91433a8
commit c7d9606066

View File

@ -55,7 +55,9 @@ p_fnmatchx(const char *pattern, const char *string, int flags, size_t recurs)
case '*':
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 == '*') {
flags &= ~FNM_PATHNAME;
while (c == '*')