]> Dogcows Code - chaz/tar/blobdiff - src/names.c
Fix bug in OLDGNU format creation.
[chaz/tar] / src / names.c
index 16566bb57aeee8f4ce5700f14f6a653eb98f20bf..b12efe1be5781702e489ad6bf3099bcda7e00ec5 100644 (file)
@@ -589,18 +589,12 @@ all_names_found (struct tar_stat_info *p)
   return true;
 }
 
-static inline int
-is_pattern (const char *string)
-{
-  return strchr (string, '*') || strchr (string, '[') || strchr (string, '?');
-}
-
 static void
 regex_usage_warning (const char *name)
 {
   static int warned_once = 0;
 
-  if (warn_regex_usage && is_pattern (name))
+  if (warn_regex_usage && fnmatch_pattern_has_wildcards (name, 0))
     {
       warned_once = 1;
       WARN ((0, 0,
@@ -909,7 +903,7 @@ collect_and_sort_names (void)
                        _("Only one -C option is allowed with "
                          "--listed-incremental")));
        }
-      chdir_do (namelist->change_dir);
+
       read_directory_file ();
     }
   
This page took 0.022067 seconds and 4 git commands to generate.