Browse Source

(all_names_found): Remove check for matching_flags.

Sergey Poznyakoff 18 years ago
parent
commit
ebc522d521
1 changed files with 1 additions and 6 deletions
  1. 1 6
      src/names.c

+ 1 - 6
src/names.c

@@ -572,8 +572,7 @@ all_names_found (struct tar_stat_info *p)
   len = strlen (p->file_name);
   for (cursor = namelist; cursor; cursor = cursor->next)
     {
-      if (cursor->matching_flags /* FIXME: check this */
-	  || (!WASFOUND (cursor) && cursor->name[0])
+      if ((cursor->name[0] && !WASFOUND (cursor))
 	  || (len >= cursor->length && ISSLASH (p->file_name[cursor->length])))
 	return false;
     }
@@ -813,10 +812,6 @@ collect_and_sort_names (void)
       next_name = name->next;
       if (name->found_count || name->dir_contents)
 	continue;
-      if (name->matching_flags & EXCLUDE_WILDCARDS)
-	/* NOTE: EXCLUDE_ANCHORED is not relevant here */
-	/* FIXME: just skip regexps for now */
-	continue;
       chdir_do (name->change_dir);
       if (name->name[0] == 0)
 	continue;