To fix bug #235820 src/list.c was modified to avoid printing
a confusing warning message about a lone zero block. However,
the change also caused the input stream to be closed before
reading EOF which could cause a SIGPIPE to be sent to the
writing process.
In this change, the previous fix is made more narrow to exclude
only the printing of the warning message, but without the side
effect that was causing the SIGPIPE.
* Add Carl Worth as an uploader.
* Fix to allow parallel build (-j2), closes #535319
* Add Carl Worth as an uploader.
* Fix to allow parallel build (-j2), closes #535319
+ * Don't close file stream before EOF, closes #525818
- -- Carl Worth <cworth@cworth.org> Wed, 29 Jul 2009 14:04:18 -0700
+ -- Carl Worth <cworth@cworth.org> Wed, 29 Jul 2009 16:18:18 -0700
tar (1.22-1.1) unstable; urgency=low
tar (1.22-1.1) unstable; urgency=low
if (!ignore_zeros_option)
{
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
/*
* According to POSIX tar specs, this is wrong, but on the web
* there are some tar specs that can trigger this, and some tar
* let's not be pedantic about issuing the warning.
*/
#if 0
* 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
WARN ((0, 0, _("A lone zero block at %s"),
STRINGIFY_BIGINT (current_block_ordinal (), buf)));
#endif