From 75b2df2eee1627671915412aa9978301d41859f1 Mon Sep 17 00:00:00 2001 From: hubertf Date: Sun, 30 Dec 2001 04:46:21 +0000 Subject: [PATCH] don't hardcode "tar"'s program name, use TAR_FULLPATHNAME instead --- usr.sbin/pkg_install/lib/ftpio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.sbin/pkg_install/lib/ftpio.c b/usr.sbin/pkg_install/lib/ftpio.c index 4f4d00779fb7..bd33fde0b7bb 100644 --- a/usr.sbin/pkg_install/lib/ftpio.c +++ b/usr.sbin/pkg_install/lib/ftpio.c @@ -1,8 +1,8 @@ -/* $NetBSD: ftpio.c,v 1.33 2001/09/16 16:34:45 wiz Exp $ */ +/* $NetBSD: ftpio.c,v 1.34 2001/12/30 04:46:21 hubertf Exp $ */ #include #ifndef lint -__RCSID("$NetBSD: ftpio.c,v 1.33 2001/09/16 16:34:45 wiz Exp $"); +__RCSID("$NetBSD: ftpio.c,v 1.34 2001/12/30 04:46:21 hubertf Exp $"); #endif /* @@ -658,7 +658,7 @@ unpackURL(const char *url, const char *dir) printf("unpackURL '%s' to '%s'\n", url, dir); /* yes, this is gross, but needed for borken ftp(1) */ - (void) snprintf(cmd, sizeof(cmd), "get %s \"| ( cd %s ; gunzip 2>/dev/null | tar -%sx -f - | tee /dev/stderr )\"\n", pkg, dir, Verbose?"vv":""); + (void) snprintf(cmd, sizeof(cmd), "get %s \"| ( cd %s ; gunzip 2>/dev/null | " TAR_FULLPATHNAME " -%sx -f - | tee /dev/stderr )\"\n", pkg, dir, Verbose?"vv":""); rc = ftp_cmd(cmd, "\n(226|550).*\n"); if (rc != 226) { warnx("Cannot fetch file (%d!=226)!", rc);