From: Sergey Poznyakoff Date: Wed, 14 Sep 2005 13:23:38 +0000 (+0000) Subject: (list_archive): Use list_dumpdir() to display GNUTYPE_DUMPDIR blocks. Do that only... X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=8952196bc15293e0bb6b3dcc035fc1b93209154d;p=chaz%2Ftar (list_archive): Use list_dumpdir() to display GNUTYPE_DUMPDIR blocks. Do that only if two or more -v options are given. --- diff --git a/src/list.c b/src/list.c index ddf044d..633713a 100644 --- a/src/list.c +++ b/src/list.c @@ -236,23 +236,15 @@ list_archive (void) written = available_space_after (data_block); if (written > size) written = size; - errno = 0; - check = fwrite (data_block->buffer, sizeof (char), written, stdlis); set_next_block_after ((union block *) (data_block->buffer + written - 1)); - if (check != written) - { - write_error_details (current_stat_info.file_name, check, written); - skip_file (size - written); - break; - } + if (verbose_option > 2) + list_dumpdir (data_block->buffer, written); } if (multi_volume_option) assign_string (&save_name, 0); - fputc ('\n', stdlis); - fflush (stdlis); + return; - } if (multi_volume_option)