X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=src%2Flist.c;h=93de630d7d27e76558656f257e549dfcc7809c16;hb=7c46363ffe8a76296ea2abed9c194e45cd5714cd;hp=b17f604303f60dac99f8c14f14338d0cf0091f82;hpb=138fc7e67e3d9845cd7d81aad0e9c7724784f9b9;p=tar diff --git a/src/list.c b/src/list.c index b17f604..93de630 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;