diff options
| author | christos <christos@NetBSD.org> | 2002-10-17 03:31:33 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2002-10-17 03:31:33 +0000 |
| commit | 590fa669c8d8dee326e9540fdae461ef4c9d6f59 (patch) | |
| tree | fc5354671378d5829a709c25be360e28577e936a /usr.sbin/pkg_install/lib/file.c | |
| parent | fe9dc5bbfc2256202a8a237372215c5b9008bebe (diff) | |
- 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 (limited to 'usr.sbin/pkg_install/lib/file.c')
| -rw-r--r-- | usr.sbin/pkg_install/lib/file.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pkg_install/lib/file.c b/usr.sbin/pkg_install/lib/file.c index 37acb2a30ee..55c42af7e98 100644 --- a/usr.sbin/pkg_install/lib/file.c +++ b/usr.sbin/pkg_install/lib/file.c @@ -1,11 +1,11 @@ -/* $NetBSD: file.c,v 1.55 2002/07/20 08:40:19 grant Exp $ */ +/* $NetBSD: file.c,v 1.56 2002/10/17 03:31:34 christos 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.55 2002/07/20 08:40:19 grant Exp $"); +__RCSID("$NetBSD: file.c,v 1.56 2002/10/17 03:31:34 christos Exp $"); #endif #endif @@ -542,7 +542,7 @@ unpack(const char *pkg, const char *flist) } 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; } |
