]> wimlib.net Git - wimlib/blobdiff - src/capture_common.c
Update docs for capture config and paths files
[wimlib] / src / capture_common.c
index d955c368c88eadfad151f98a6543d2c259ddec77..62ab15b11eef476b6cbf31c6c776d369c61f4e1a 100644 (file)
@@ -72,6 +72,16 @@ do_capture_progress(struct add_image_params *params, int status,
 static int
 mangle_pat(tchar *pat, const tchar *path, unsigned long line_no)
 {
+       /* Remove quotes  */
+       if (pat[0] == T('"') || pat[0] == T('\'')) {
+               tchar quote = pat[0];
+               tchar *last = pat + tstrlen(pat) - 1;
+               if (last > pat && *last == quote) {
+                       tmemmove(pat, pat + 1, last - (pat + 1));
+                       *(last - 1) = T('\0');
+               }
+       }
+
        if (!is_any_path_separator(pat[0]) &&
            pat[0] != T('\0') && pat[1] == T(':'))
        {