X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=src%2Flist.c;h=6dbc439a0c61580b74a73d11efb671467381652a;hb=fe42a07cb461bea75cf8d20cd7b79b6dc658a2c2;hp=716c0b4230a3e50c07dc7ec98afbf6d6aa56381f;hpb=22f1eb8bc17e5be72dd23d42d6aaa60196ac22e6;p=tar 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;