mirror of
https://git.savannah.gnu.org/git/tar.git
synced 2026-07-30 20:52:36 +00:00
* NEWS: Update.
* configure.ac: Version 1.19.90 * po/POTFILES.in: Add missing files. * src/compare.c (verify_volume): Honor --ignore-zeros. Proposed by Jan-Benedict Glaw. * tests/shortfile.at (AT_KEYWORDS): Add shortfile0.
This commit is contained in:
+15
-1
@@ -597,9 +597,23 @@ verify_volume (void)
|
||||
"VERIFY FAILURE: %d invalid headers detected",
|
||||
counter), counter));
|
||||
}
|
||||
if (status == HEADER_ZERO_BLOCK || status == HEADER_END_OF_FILE)
|
||||
if (status == HEADER_END_OF_FILE)
|
||||
break;
|
||||
if (status == HEADER_ZERO_BLOCK)
|
||||
{
|
||||
set_next_block_after (current_header);
|
||||
if (!ignore_zeros_option)
|
||||
{
|
||||
char buf[UINTMAX_STRSIZE_BOUND];
|
||||
|
||||
status = read_header (false);
|
||||
if (status == HEADER_ZERO_BLOCK)
|
||||
break;
|
||||
WARN ((0, 0, _("A lone zero block at %s"),
|
||||
STRINGIFY_BIGINT (current_block_ordinal (), buf)));
|
||||
}
|
||||
}
|
||||
|
||||
diff_archive ();
|
||||
tar_stat_destroy (¤t_stat_info);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user