X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Flist.c;h=c6501722ff4c0d8cbff54ee1db8b62daaf61729c;hb=d3daaa199aca7497bb507f92b693c8457353f96a;hp=98c1e396b3547cb22a5ac590bb24d03b03a9b521;hpb=c286dbf484dc985fb63d5c677fc8cd91b5b1d0f6;p=debian%2Ftar diff --git a/src/list.c b/src/list.c index 98c1e396..c6501722 100644 --- a/src/list.c +++ b/src/list.c @@ -136,6 +136,14 @@ read_and (void (*do_something) (void)) if (!ignore_zeros_option) { + + /* + * 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 char buf[UINTMAX_STRSIZE_BOUND]; status = read_header (false); @@ -143,6 +151,7 @@ read_and (void (*do_something) (void)) break; WARN ((0, 0, _("A lone zero block at %s"), STRINGIFY_BIGINT (current_block_ordinal (), buf))); +#endif break; } status = prev_status;