]> wimlib.net Git - wimlib/blobdiff - src/modify.c
Case insensitive exclusion pattern matching
[wimlib] / src / modify.c
index d7f4f69bbc9c308f672286621ce3b3b75294c9a1..a6d26884a08c9e63a16e1bada5c3612183ccccab 100644 (file)
@@ -680,7 +680,12 @@ static bool match_pattern(const char *path, const char *path_basename,
                                /* A file name pattern */
                                string = path_basename;
                }
-               if (fnmatch(pat, string, FNM_PATHNAME) == 0) {
+               if (fnmatch(pat, string, FNM_PATHNAME
+                       #ifdef FNM_CASEFOLD
+                                       | FNM_CASEFOLD
+                       #endif
+                       ) == 0)
+               {
                        DEBUG("`%s' matches the pattern \"%s\"",
                              string, pat);
                        return true;