Fix undesired error exit on receiving SIGPIPE.

* src/tar.c: Do not ignore SIGPIPE.
* tests/sigpipe.at: New testcase.
* tests/Makefile.am, tests/testsuite.at: Add sigpipe.at
* tests/remfiles01.at: Fix error code expectation.
* NEWS: Update.
This commit is contained in:
Sergey Poznyakoff
2010-03-20 13:14:31 +02:00
parent c1d3d13493
commit 340dbf5aab
6 changed files with 54 additions and 4 deletions

10
NEWS
View File

@@ -1,10 +1,18 @@
GNU tar NEWS - User visible changes. 2010-03-17
GNU tar NEWS - User visible changes. 2010-03-20
Please send GNU tar bug reports to <bug-tar@gnu.org>
* Bugfixes.
** Spurious error diagnostics on broken pipe.
When receiving SIGPIPE, tar would exit with error status and
"write error" diagnostics. In particular, this occurred if
invoked as in the example below:
tar tf archive.tar | head -n 1
** --remove-files
Tar --remove-files failed to remove a directory which contained