Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-6]: src/usr.sbin/pkg_install/lib Pull up revision 1.56 (request...



details:   https://anonhg.NetBSD.org/src/rev/87211ba6db1c
branches:  netbsd-1-6
changeset: 529526:87211ba6db1c
user:      tron <tron%NetBSD.org@localhost>
date:      Sun Nov 24 22:34:29 2002 +0000

description:
Pull up revision 1.56 (requested by jschauma in ticket #1011):
- eliminate the hard-coding of pathnames in the default install.
- all command executions now use the path [execvp/execlp/system].
- normalize the macro names as <COMMAND>_CMD.
- in some OS's full pathnames for commands can still be provided, but this
  is not the default.
This was needed to fix -DTAR_FULLPATHNAME="/usr/bin/tar"

diffstat:

 usr.sbin/pkg_install/lib/file.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r cc09e3063d3e -r 87211ba6db1c usr.sbin/pkg_install/lib/file.c
--- a/usr.sbin/pkg_install/lib/file.c   Sun Nov 24 22:34:21 2002 +0000
+++ b/usr.sbin/pkg_install/lib/file.c   Sun Nov 24 22:34:29 2002 +0000
@@ -1,11 +1,11 @@
-/*     $NetBSD: file.c,v 1.48.2.4 2002/07/23 11:06:10 lukem Exp $      */
+/*     $NetBSD: file.c,v 1.48.2.5 2002/11/24 22:34:29 tron Exp $       */
 
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static const char *rcsid = "from FreeBSD Id: file.c,v 1.29 1997/10/08 07:47:54 charnier Exp";
 #else
-__RCSID("$NetBSD: file.c,v 1.48.2.4 2002/07/23 11:06:10 lukem Exp $");
+__RCSID("$NetBSD: file.c,v 1.48.2.5 2002/11/24 22:34:29 tron Exp $");
 #endif
 #endif
 
@@ -542,7 +542,7 @@
        } else
                strcat(args, "z");
        strcat(args, "xpf");
-       if (vsystem("%s %s %s %s", TAR_FULLPATHNAME, args, pkg, flist ? flist : "")) {
+       if (vsystem("%s %s %s %s", TAR_CMD, args, pkg, flist ? flist : "")) {
                warnx("%s extract of %s failed!", TAR_CMD, pkg);
                return 1;
        }



Home | Main Index | Thread Index | Old Index