diff options
author | joerg <joerg@FreeBSD.org> | 1995-08-04 17:13:36 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 1995-08-04 17:13:36 +0000 |
commit | 98a78b7aa4b5b9f0897522f5c0d101215abb82a0 (patch) | |
tree | ca0f4cfec328311faf910c64fe849d8c648914c2 /usr.bin/xinstall | |
parent | 4d820dd71519065f22c94431bcb7e0c851e445b3 (diff) | |
download | FreeBSD-src-98a78b7aa4b5b9f0897522f5c0d101215abb82a0.zip FreeBSD-src-98a78b7aa4b5b9f0897522f5c0d101215abb82a0.tar.gz |
Make install not remove the target file if -s has been specified but
stripping failed (since the file has been a shell script, for
example).
Closes PR # bin/645: "install -c -s" can't inst...
Submitted by: hohmuth@inf.tu-dresden.de (Michael Hohmuth)
Diffstat (limited to 'usr.bin/xinstall')
-rw-r--r-- | usr.bin/xinstall/xinstall.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/xinstall/xinstall.c b/usr.bin/xinstall/xinstall.c index 4c41fa8..e70e150 100644 --- a/usr.bin/xinstall/xinstall.c +++ b/usr.bin/xinstall/xinstall.c @@ -311,7 +311,7 @@ strip(to_name) execl(_PATH_STRIP, "strip", to_name, NULL); err("%s: %s", _PATH_STRIP, strerror(errno)); default: - if (wait(&status) == -1 || status) + if (wait(&status) == -1) (void)unlink(to_name); } } |