X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=src%2Flist.c;fp=src%2Flist.c;h=126a3c1fb8b2732a5fefe724bceb21e41fb3376b;hb=a39751e44721377bf30522e2fe278051daa3cee1;hp=c6501722ff4c0d8cbff54ee1db8b62daaf61729c;hpb=d36b1d08483525fdcc909faca772231a2d78a29b;p=tar diff --git a/src/list.c b/src/list.c index c650172..126a3c1 100644 --- a/src/list.c +++ b/src/list.c @@ -136,7 +136,11 @@ read_and (void (*do_something) (void)) if (!ignore_zeros_option) { + char buf[UINTMAX_STRSIZE_BOUND]; + status = read_header (false); + 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 @@ -144,11 +148,6 @@ read_and (void (*do_something) (void)) * let's not be pedantic about issuing the warning. */ #if 0 - char buf[UINTMAX_STRSIZE_BOUND]; - - status = read_header (false); - if (status == HEADER_ZERO_BLOCK) - break; WARN ((0, 0, _("A lone zero block at %s"), STRINGIFY_BIGINT (current_block_ordinal (), buf))); #endif