]> wimlib.net Git - wimlib/blobdiff - src/capture_common.c
read_utf8_file_contents(): Move check for BOM here
[wimlib] / src / capture_common.c
index c45ae152345e7ecba77c983ded9d3d2a81ea5b39..ffdc7a88dfd202f6b285c95d5d4948ab0fe9570a 100644 (file)
 #include "wimlib/error.h"
 #include "wimlib/lookup_table.h"
 #include "wimlib/paths.h"
+#include "wimlib/wildcard.h"
 
-#ifdef __WIN32__
-#  include "wimlib/win32.h" /* for fnmatch() equivalent */
-#else
-#  include <fnmatch.h>
-#endif
 #include <string.h>
 
-
 static int
 canonicalize_pattern(const tchar *pat, tchar **canonical_pat_ret)
 {
@@ -177,8 +172,8 @@ match_pattern(const tchar *path,
                              string, pat);
                        return true;
                } else {
-                       DEBUG2("\"%"TS"\" does not match the pattern \"%"TS"\"",
-                              string, pat);
+                       DEBUG("\"%"TS"\" does not match the pattern \"%"TS"\"",
+                             string, pat);
                }
        }
        return false;
@@ -194,6 +189,7 @@ do_capture_progress(struct add_image_params *params, int status,
                        return;
        case WIMLIB_SCAN_DENTRY_UNSUPPORTED:
        case WIMLIB_SCAN_DENTRY_EXCLUDED:
+       case WIMLIB_SCAN_DENTRY_EXCLUDED_SYMLINK:
                if (!(params->add_flags & WIMLIB_ADD_FLAG_EXCLUDE_VERBOSE))
                        return;
        }