From owner-freebsd-current Thu Apr 20 9:52:14 2000 Delivered-To: freebsd-current@freebsd.org Received: from mail.nyct.net (bsd4.nyct.net [204.141.86.6]) by hub.freebsd.org (Postfix) with ESMTP id 1A3DD37BE49 for ; Thu, 20 Apr 2000 09:52:09 -0700 (PDT) (envelope-from efutch@nyct.net) Received: from bsd1.nyct.net (efutch@bsd1.nyct.net [204.141.86.3]) by mail.nyct.net (8.9.3/8.8.7) with ESMTP id MAA72168; Thu, 20 Apr 2000 12:53:07 -0400 (EDT) (envelope-from efutch@nyct.net) Date: Thu, 20 Apr 2000 12:52:01 -0400 (EDT) From: "Eric D. Futch" To: Tim Liddelow Cc: freebsd-current@FreeBSD.ORG Subject: Re: FTP_PASSIVE_MODE and libftpio In-Reply-To: <38FEAA11.1A742C82@esec.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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