]> git.ipfire.org Git - thirdparty/coreutils.git/commit
install: cleanup properly if the strip program failed for any reason
authorOndrej Oprala <ooprala@redhat.com>
Fri, 22 Feb 2013 12:48:57 +0000 (13:48 +0100)
committerBernhard Voelker <mail@bernhard-voelker.de>
Fri, 22 Feb 2013 20:31:32 +0000 (21:31 +0100)
commit3a20f6888575be7059e9acac07d397009e98c213
treef550329b8763bd36cf2b4c7c4775873169795e28
parent6229654741554561952c6106f75681e4382cc890
install: cleanup properly if the strip program failed for any reason

* src/install.c (strip): Indicate failure with a return code instead
of terminating the program.
(install_file_in_file): Handle strip's return code and unlink the
created file if necessary.
* tests/install/strip-program.sh: Add a test to cover the changes.
* NEWS (Bug fixes): Mention the fix.
Reported by John Reiser in http://bugzilla.redhat.com/632444.
NEWS
src/install.c
tests/install/strip-program.sh