summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Finch <fanf@FreeBSD.org>2002-05-15 16:50:09 +0000
committerTony Finch <fanf@FreeBSD.org>2002-05-15 16:50:09 +0000
commit02f1d90bdaa075141efdd614c10e95570e5d38ee (patch)
treebc66f612f3d36ceb9c48dffdd09b3b3494a3e0b4
parent5aecc48bb03351d94538e2ce87d89b4c692511c6 (diff)
Notes
-rw-r--r--usr.bin/xinstall/xinstall.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/xinstall/xinstall.c b/usr.bin/xinstall/xinstall.c
index 5253432c4c35..92f30d0dc88b 100644
--- a/usr.bin/xinstall/xinstall.c
+++ b/usr.bin/xinstall/xinstall.c
@@ -720,8 +720,9 @@ strip(to_name)
err(EX_OSERR, "exec(%s)", stripbin);
default:
if (wait(&status) == -1 || status) {
+ serrno = errno;
(void)unlink(to_name);
- exit(EX_SOFTWARE);
+ errc(EX_SOFTWARE, serrno, "wait");
/* NOTREACHED */
}
}