On Mon, 2003-10-20 at 14:08, Dražen Kačar wrote: > Martin Johnson wrote: > > Hrvoje Niksic wrote: > > > >> 1. Perhaps wget should obey the setting of environment variable > > >> FTP_PASSIVE_MODE ("NO" or "YES")? > > > > > Do other programs obey that variable? Are its semantics defined > > > somewhere? > > > > Yes, FreeBSD's "fetch" command uses that, probably via "libftpio". I think > > the semantics are that "FTP_PASSIVE_MODE=No" (upper or lower case No) turns > > Just "no" or whatever is returned by nl_langinfo(NOEXPR)? Or both?
Just "no"; although "both" would probably be more sensible! The actual code on FreeBSD systems is in /usr/src/lib/libfetch/ftp.c : int pasv; ... pasv = CHECK_FLAG('p'); ... if (!pasv) pasv = ((s = getenv("FTP_PASSIVE_MODE")) != NULL && strncasecmp(s, "no", 2) != 0); There's a similar test in /usr/src/lib/libftpio/ftpio.c. The nice thing about this environment variable is that you can set it once in ".profile" or wherever, and then all your FTP downloads work OK through the firewall :-) With all best wishes, -- Martin Johnson <[EMAIL PROTECTED]>