]> git.cworth.org Git - tar/commit
Don't close file stream before EOF, closes #525818
authorCarl Worth <cworth@cworth.org>
Wed, 29 Jul 2009 23:10:01 +0000 (16:10 -0700)
committerCarl Worth <cworth@cworth.org>
Thu, 30 Jul 2009 00:33:26 +0000 (17:33 -0700)
commita39751e44721377bf30522e2fe278051daa3cee1
treeb4462a0af45e629adbae7e6c7bda0cd5a89678d2
parentd36b1d08483525fdcc909faca772231a2d78a29b
Don't close file stream before EOF, closes #525818

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.
debian/changelog
src/list.c