diff options
| -rw-r--r-- | usr.bin/xinstall/xinstall.c | 3 |
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 */ } } |
