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:
parent
8416275eed
commit
1e925dfd27
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user