summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormoritz <moritz@openbsd.org>2007-05-16 17:33:07 +0000
committermoritz <moritz@openbsd.org>2007-05-16 17:33:07 +0000
commit8690131e1f244c57903b9c4d25451dc71ce29475 (patch)
tree8109913b13b6f41f845dc94ed4099ed38174b20d
parentThe world of __HAVEs and __HAVE_NOTs is reducing. All architectures (diff)
downloadwireguard-openbsd-8690131e1f244c57903b9c4d25451dc71ce29475.tar.xz
wireguard-openbsd-8690131e1f244c57903b9c4d25451dc71ce29475.zip
Allow stripping of files, even if the destination filename
starts with a dash. ok millert@ jaredy@ ray@
-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 c7417f65a61..501c5e321fd 100644
--- a/usr.bin/xinstall/xinstall.c
+++ b/usr.bin/xinstall/xinstall.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xinstall.c,v 1.43 2006/01/10 00:30:08 millert Exp $ */
+/* $OpenBSD: xinstall.c,v 1.44 2007/05/16 17:33:07 moritz Exp $ */
/* $NetBSD: xinstall.c,v 1.9 1995/12/20 10:25:17 jonathan Exp $ */
/*
@@ -40,7 +40,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.43 2006/01/10 00:30:08 millert Exp $";
+static char rcsid[] = "$OpenBSD: xinstall.c,v 1.44 2007/05/16 17:33:07 moritz Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -553,7 +553,7 @@ strip(char *to_name)
(void)unlink(to_name);
errx(EX_TEMPFAIL, "forks: %s", strerror(serrno));
case 0:
- execl(path_strip, "strip", to_name, (char *)NULL);
+ execl(path_strip, "strip", "--", to_name, (char *)NULL);
warn("%s", path_strip);
_exit(EX_OSERR);
default: