diff options
author | jkh <jkh@FreeBSD.org> | 1995-07-30 09:41:21 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1995-07-30 09:41:21 +0000 |
commit | 117bc8a1c40f1d6d82ceb9154a481aac2780d463 (patch) | |
tree | 6f6ae9ab8f98b0b25348615cfbbc1b3b04b1da12 /usr.sbin/pkg_install/lib/file.c | |
parent | 8503c9fda1d948692ac74c16b54c175c39a1436c (diff) | |
download | FreeBSD-src-117bc8a1c40f1d6d82ceb9154a481aac2780d463.zip FreeBSD-src-117bc8a1c40f1d6d82ceb9154a481aac2780d463.tar.gz |
Change the environment variable this looks for from FTP_PASSIVE to
FTP_PASSIVE_MODE. It would be really nice if we could standardise on
this name so that all tools (like ncftp) that offer passive/active
ftp selection would work seamlessly with one user environment variable
setting.
Diffstat (limited to 'usr.sbin/pkg_install/lib/file.c')
-rw-r--r-- | usr.sbin/pkg_install/lib/file.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/pkg_install/lib/file.c b/usr.sbin/pkg_install/lib/file.c index c8f4988..21f40e4 100644 --- a/usr.sbin/pkg_install/lib/file.c +++ b/usr.sbin/pkg_install/lib/file.c @@ -1,5 +1,5 @@ #ifndef lint -static const char *rcsid = "$Id: file.c,v 1.12 1995/07/30 01:44:44 ache Exp $"; +static const char *rcsid = "$Id: file.c,v 1.13 1995/07/30 09:33:26 jkh Exp $"; #endif /* @@ -208,8 +208,7 @@ fileGetURL(char *fname) printf("Trying to fetch %s from %s.\n", file, host); FtpOpen(ftp, host, uname, pword); - /* XXX - Currently undocumented - XXX */ - if (getenv("FTP_PASSIVE")) + if (getenv("FTP_PASSIVE_MODE")) FtpPassive(ftp, TRUE); strcpy(dir, file); |