Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Apr 2000 12:52:01 -0400 (EDT)
From:      "Eric D. Futch" <efutch@nyct.net>
To:        Tim Liddelow <tim@esec.com.au>
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: FTP_PASSIVE_MODE and libftpio
Message-ID:  <Pine.BSF.4.21.0004201249370.97586-100000@bsd1.nyct.net>
In-Reply-To: <38FEAA11.1A742C82@esec.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
Take a look at http://quake.nyct.net/~efutch/FreeBSD/ftpio.c.patch-3 and
let me know if this is what you want.  Really it's such a stupid problem
that not patching it wouldn't make sense.

--
Eric Futch              New York Connect.Net, Ltd.
efutch@nyct.net         Technical Support Staff
http://www.nyct.net     (212) 293-2620
"Bringing New York The Internet Access It Deserves"


On Thu, 20 Apr 2000, Tim Liddelow wrote:

>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?Pine.BSF.4.21.0004201249370.97586-100000>