From 8f1d2fd9c34120b010e9c25fe93d195eea83d8c6 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Wed, 28 Sep 2005 19:41:00 +0000 Subject: [PATCH] (print_header): Special handling if test_label_option is set --- src/list.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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]; -- 2.44.0