aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/xinstall
diff options
context:
space:
mode:
authorDavid Greenman <dg@FreeBSD.org>1995-08-27 02:02:19 +0000
committerDavid Greenman <dg@FreeBSD.org>1995-08-27 02:02:19 +0000
commit7e877393a87ea312e2d50138e342cc9db484f688 (patch)
treeca0c74847e998837951b332018c18cb3eec05227 /usr.bin/xinstall
parent187f0238772037a393e06dc458aed7a1fb72ffc0 (diff)
Notes
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 e70e15025f292..4c41fa8051058 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)
+ if (wait(&status) == -1 || status)
(void)unlink(to_name);
}
}