X-Git-Url: https://git.cworth.org/git?p=tar;a=blobdiff_plain;f=src%2Flist.c;fp=src%2Flist.c;h=6dbc439a0c61580b74a73d11efb671467381652a;hp=716c0b4230a3e50c07dc7ec98afbf6d6aa56381f;hb=3322ff6164a1e9dd3d1622c64a9b9b7c5f303ef6;hpb=29ece34f44a27750bbfd76154ad9882580453dc7 diff --git a/src/list.c b/src/list.c index 716c0b4..6dbc439 100644 --- a/src/list.c +++ b/src/list.c @@ -144,9 +144,17 @@ read_and (void (*do_something) (void)) read_header_auto); if (status == HEADER_ZERO_BLOCK) break; + /* + * According to POSIX tar specs, this is wrong, but on the web + * there are some tar specs that can trigger this, and some tar + * implementations create tars according to that spec. For now, + * let's not be pedantic about issuing the warning. + */ +#if 0 WARNOPT (WARN_ALONE_ZERO_BLOCK, (0, 0, _("A lone zero block at %s"), STRINGIFY_BIGINT (current_block_ordinal (), buf))); +#endif break; } status = prev_status;