summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.bin/xinstall/xinstall.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/xinstall/xinstall.c b/usr.bin/xinstall/xinstall.c
index ed05f796eb0..27cee06671b 100644
--- a/usr.bin/xinstall/xinstall.c
+++ b/usr.bin/xinstall/xinstall.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xinstall.c,v 1.13 1997/04/17 19:13:58 millert Exp $ */
+/* $OpenBSD: xinstall.c,v 1.14 1997/06/04 05:56:26 millert Exp $ */
/* $NetBSD: xinstall.c,v 1.9 1995/12/20 10:25:17 jonathan Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)xinstall.c 8.1 (Berkeley) 7/21/93";
#endif
-static char rcsid[] = "$OpenBSD: xinstall.c,v 1.13 1997/04/17 19:13:58 millert Exp $";
+static char rcsid[] = "$OpenBSD: xinstall.c,v 1.14 1997/06/04 05:56:26 millert Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -524,7 +524,7 @@ strip(to_name)
warn("%s", path_strip);
_exit(EX_OSERR);
default:
- if (wait(&status) == -1 || status)
+ if (wait(&status) == -1 || !WIFEXITED(status))
(void)unlink(to_name);
}
}