From 70ad39a5d482ac0e715419ed3058559fe66cd069 Mon Sep 17 00:00:00 2001 From: "Jordan K. Hubbard" Date: Sun, 30 Jul 1995 09:41:21 +0000 Subject: [PATCH] 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. --- usr.sbin/pkg_install/lib/file.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/usr.sbin/pkg_install/lib/file.c b/usr.sbin/pkg_install/lib/file.c index c8f4988d7395..21f40e48be90 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);