Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/xinstall invoke stripprog using execlp. (this mirro...
details: https://anonhg.NetBSD.org/src/rev/29454e06d87c
branches: trunk
changeset: 495378:29454e06d87c
user: cgd <cgd%NetBSD.org@localhost>
date: Thu Jul 27 03:45:02 2000 +0000
description:
invoke stripprog using execlp. (this mirrors the behaviour that would
be had from using the shell to invoke strip, and removes an unnecessary
limitation that the STRIP environment variable be an absolute path.)
diffstat:
usr.bin/xinstall/xinstall.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 0b9e850d0dff -r 29454e06d87c usr.bin/xinstall/xinstall.c
--- a/usr.bin/xinstall/xinstall.c Thu Jul 27 03:29:28 2000 +0000
+++ b/usr.bin/xinstall/xinstall.c Thu Jul 27 03:45:02 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xinstall.c,v 1.39 2000/01/15 01:10:12 christos Exp $ */
+/* $NetBSD: xinstall.c,v 1.40 2000/07/27 03:45:02 cgd Exp $ */
/*
* Copyright (c) 1987, 1993
@@ -43,7 +43,7 @@
#if 0
static char sccsid[] = "@(#)xinstall.c 8.1 (Berkeley) 7/21/93";
#else
-__RCSID("$NetBSD: xinstall.c,v 1.39 2000/01/15 01:10:12 christos Exp $");
+__RCSID("$NetBSD: xinstall.c,v 1.40 2000/07/27 03:45:02 cgd Exp $");
#endif
#endif /* not lint */
@@ -590,7 +590,7 @@
execl(_PATH_BSHELL, "sh", "-c", cmd, NULL);
} else
- execl(stripprog, "strip", to_name, NULL);
+ execlp(stripprog, "strip", to_name, NULL);
warn("%s", stripprog);
_exit(1);
Home |
Main Index |
Thread Index |
Old Index