summaryrefslogtreecommitdiff
path: root/usr.bin/xinstall
diff options
context:
space:
mode:
authorMoritz Jodeit <moritz@cvs.openbsd.org>2007-05-16 17:33:08 +0000
committerMoritz Jodeit <moritz@cvs.openbsd.org>2007-05-16 17:33:08 +0000
commit6530d32952e449edce4033fe19d99ecc0f8b427b (patch)
treeb24cd211f7751ab2bd7a19b2067fccfc600475e2 /usr.bin/xinstall
parenta5055ebb8629500104a3b1d3dc614f04db4f363e (diff)
Allow stripping of files, even if the destination filename
starts with a dash. ok millert@ jaredy@ ray@
Diffstat (limited to 'usr.bin/xinstall')
-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: