From: Sergey Poznyakoff Date: Fri, 30 Mar 2007 19:18:35 +0000 (+0000) Subject: (all_names_found): Remove check for matching_flags. X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=ebc522d521052efe24abdcc1cd686ea9182dc110;p=chaz%2Ftar (all_names_found): Remove check for matching_flags. --- diff --git a/src/names.c b/src/names.c index 936d7fd..9cff7ed 100644 --- a/src/names.c +++ b/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;