]> Dogcows Code - chaz/tar/blobdiff - src/names.c
Update for new exclude module from gnulib. Add testcases by Phil Proudman.
[chaz/tar] / src / names.c
index 16566bb57aeee8f4ce5700f14f6a653eb98f20bf..6e251e3c159bd7d92b66efa323be8203024c64de 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,
This page took 0.019656 seconds and 4 git commands to generate.