summaryrefslogtreecommitdiffstats
path: root/usr.bin/xinstall
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1995-08-04 17:13:36 +0000
committerjoerg <joerg@FreeBSD.org>1995-08-04 17:13:36 +0000
commit98a78b7aa4b5b9f0897522f5c0d101215abb82a0 (patch)
treeca0f4cfec328311faf910c64fe849d8c648914c2 /usr.bin/xinstall
parent4d820dd71519065f22c94431bcb7e0c851e445b3 (diff)
downloadFreeBSD-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.c2
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);
}
}
OpenPOWER on IntegriCloud