]> Dogcows Code - chaz/tar/commitdiff
(print_header): Special handling if test_label_option is set
authorSergey Poznyakoff <gray@gnu.org.ua>
Wed, 28 Sep 2005 19:41:00 +0000 (19:41 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Wed, 28 Sep 2005 19:41:00 +0000 (19:41 +0000)
src/list.c

index d8591634380ed81e62264a16ad07f7612c9ccf9a..af210cf8f48659ed9fbd1dff91582ec870379599 100644 (file)
@@ -210,7 +210,7 @@ list_archive (void)
   decode_header (current_header, &current_stat_info, &current_format, 0);
   if (verbose_option)
     print_header (&current_stat_info, -1);
-
+  
   if (incremental_option && current_header->header.typeflag == GNUTYPE_DUMPDIR)
     {
       off_t size;
@@ -1009,6 +1009,9 @@ print_header (struct tar_stat_info *st, off_t block_ordinal)
   int pad;
   int sizelen;
 
+  if (test_label_option && current_header->header.typeflag != GNUTYPE_VOLHDR)
+    return;
+  
   if (block_number_option)
     {
       char buf[UINTMAX_STRSIZE_BOUND];
This page took 0.028197 seconds and 4 git commands to generate.