Put the FTP_PASSIVE_MODE issue to rest once and for all.

Reviewed by:	des
Obtained from:	FreeBSD's src/usr.bin/ftp/main.c
This commit is contained in:
billf 2000-05-05 17:02:32 +00:00
parent 8416275eed
commit 1e925dfd27

View File

@ -500,7 +500,7 @@ check_passive(FILE *fp)
{
char *cp = getenv("FTP_PASSIVE_MODE");
ftpPassive(fp, (cp && !strncmp(cp, "YES", 3)));
ftpPassive(fp, (cp && strncasecmp(cp, "no", 2)));
}
static void