]> git.gag.com Git - debian/tar/commit
Catch compressor execution errors.
authorSergey Poznyakoff <gray@gnu.org.ua>
Sat, 5 Dec 2015 14:54:26 +0000 (16:54 +0200)
committerSergey Poznyakoff <gray@gnu.org.ua>
Sat, 5 Dec 2015 14:54:26 +0000 (16:54 +0200)
commit589ba77faf60e4632771d80e2b25d9e3778d4a3f
treea931f8980e5f6f5e97917dc1acc0d3f7a6964b4c
parent6ea9e62bb398b2f81e52f671749e585367286820
Catch compressor execution errors.

* src/misc.c (write_fatal_details): Move to buffer.c
* src/buffer.c (write_fatal_details): Close the archive and wait for
the compressor program to terminate in order to catch eventual execution
errors.
* src/system.c (sys_child_open_for_compress): Ignore SIGPIPE so tar will
not silently terminate when unable to write to the compressor.
* tests/comperr.at: New file.
* tests/Makefile.am: Add comperr.at
* tests/testsuite.at: Include comperr.at
src/buffer.c
src/misc.c
src/system.c
tests/Makefile.am
tests/comperr.at [new file with mode: 0644]
tests/testsuite.at