From: Sergey Poznyakoff Date: Wed, 28 Sep 2005 19:41:00 +0000 (+0000) Subject: (print_header): Special handling if test_label_option is set X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=8f1d2fd9c34120b010e9c25fe93d195eea83d8c6;p=chaz%2Ftar (print_header): Special handling if test_label_option is set --- diff --git a/src/list.c b/src/list.c index d859163..af210cf 100644 --- a/src/list.c +++ b/src/list.c @@ -210,7 +210,7 @@ list_archive (void) decode_header (current_header, ¤t_stat_info, ¤t_format, 0); if (verbose_option) print_header (¤t_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];