X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Flist.c;fp=src%2Flist.c;h=68f511506dd83d7453c904ab795151953a218fe2;hb=cc5892ba8cbe46ac2f5ad3758293cebdb7003319;hp=a70f0d38298919dda7bba95df4492cb1618f33fa;hpb=84dd32d487759d017e068786160b5d1a0f1682e5;p=debian%2Ftar diff --git a/src/list.c b/src/list.c index a70f0d38..68f51150 100644 --- a/src/list.c +++ b/src/list.c @@ -218,9 +218,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;