don't hardcode "tar"'s program name, use TAR_FULLPATHNAME instead

This commit is contained in:
hubertf 2001-12-30 04:46:21 +00:00
parent a54d2c0d9d
commit 75b2df2eee
1 changed files with 3 additions and 3 deletions

View File

@ -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 <sys/cdefs.h>
#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);