X-Git-Url: https://git.cworth.org/git?p=tar;a=blobdiff_plain;f=src%2Flist.c;h=fabe8b382725f76c368c581ce5a74b1ad17f4d98;hp=d15653d3b39530a2fd27caa8ec1fa0519d1e9d87;hb=de7372b23c3da92fbfaea2d1ac592f0b2ba87914;hpb=b414e25de8ca49d7567a92c203d431383ec57c83 diff --git a/src/list.c b/src/list.c index d15653d..fabe8b3 100644 --- a/src/list.c +++ b/src/list.c @@ -157,9 +157,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;