소스 검색

(all_names_found): If test_label_option is set return true

Sergey Poznyakoff 19 년 전
부모
커밋
13aead50a8
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/names.c

+ 2 - 0
src/names.c

@@ -538,6 +538,8 @@ all_names_found (struct tar_stat_info *p)
   struct name const *cursor;
   size_t len;
 
+  if (test_label_option)
+    return true;
   if (!p->file_name || occurrence_option == 0 || p->had_trailing_slash)
     return false;
   len = strlen (p->file_name);