warn and _exit
authorderaadt <deraadt@openbsd.org>
Fri, 6 Dec 1996 02:14:56 +0000 (02:14 +0000)
committerderaadt <deraadt@openbsd.org>
Fri, 6 Dec 1996 02:14:56 +0000 (02:14 +0000)
usr.bin/xinstall/xinstall.c

index b9abb6a..2fe0119 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: xinstall.c,v 1.8 1996/09/22 20:17:54 imp Exp $        */
+/*     $OpenBSD: xinstall.c,v 1.9 1996/12/06 02:14:56 deraadt 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.8 1996/09/22 20:17:54 imp Exp $";
+static char rcsid[] = "$OpenBSD: xinstall.c,v 1.9 1996/12/06 02:14:56 deraadt Exp $";
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -518,7 +518,8 @@ strip(to_name)
                errx(EX_TEMPFAIL, "forks: %s", strerror(serrno));
        case 0:
                execl(_PATH_STRIP, "strip", to_name, NULL);
-               err(EX_OSERR, "%s", _PATH_STRIP);
+               warn("%s", _PATH_STRIP);
+               _exit(EX_OSERR);
        default:
                if (wait(&status) == -1 || status)
                        (void)unlink(to_name);