Date: Thu, 20 Apr 2000 16:56:17 +1000 From: Tim Liddelow <tim@esec.com.au> To: "Eric D. Futch" <efutch@nyct.net> Cc: freebsd-current@freebsd.org Subject: Re: FTP_PASSIVE_MODE and libftpio Message-ID: <38FEAA11.1A742C82@esec.com.au> References: <Pine.BSF.4.21.0004200123260.68290-100000@bsd1.nyct.net>
next in thread | previous in thread | raw e-mail | index | archive | help
"Eric D. Futch" wrote: > [snippets deleted] > You can see how they differ in handling FTP_PASSIVE_MODE. > > Someone (sorry I can't remember your name :)) suggested a better > way of doing the if... take a look at: > http://quake.nyct.net/~efutch/FreeBSD/ftpio.c.patch-2 Actually that is wrong, as the above patch has the wrong default behaviour. It should read something like: + cp = getenv("FTP_PASSIVE_MODE"); + if (cp && strncasecmp(cp, "NO", 2)==0) + ftpPassive(fp, FALSE); + else if (cp) + ftpPassive(fp, TRUE); Or basically just use the same code from src/lib/libftpio/ftpio.c :) Cheers Tim. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38FEAA11.1A742C82>
