mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-23 09:10:46 +00:00
Fix fnmatch comment to be clearer
This commit is contained in:
parent
c8c91433a8
commit
c7d9606066
@ -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 == '*')
|
||||||
|
Loading…
Reference in New Issue
Block a user