Commit c7d9606066d3a9b75a87c4ca5dd3420a66d0b54f

Russell Belfer 2014-04-06T11:20:22

Fix fnmatch comment to be clearer

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/fnmatch.c b/src/fnmatch.c
index 8e5424b..3846bab 100644
--- a/src/fnmatch.c
+++ b/src/fnmatch.c
@@ -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 == '*')