From owner-freebsd-hackers Wed Apr 19 20:31: 7 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.nyct.net (bsd4.nyct.net [204.141.86.6]) by hub.freebsd.org (Postfix) with ESMTP id 7F35937BD85; Wed, 19 Apr 2000 20:31:01 -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 XAA70918; Wed, 19 Apr 2000 23:31:58 -0400 (EDT) (envelope-from efutch@nyct.net) Date: Wed, 19 Apr 2000 23:30:59 -0400 (EDT) From: "Eric D. Futch" To: freebsd-current@freebsd.org, freebsd-hackers@freebsd.org Subject: FTP_PASSIVE_MODE and libftpio Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In reference to a problem someone reported on the freebsd-mobile mailing list, I took a look at the handling of the FTP_PASSIVE_MODE environment variable in libftpio. What I found was that it would use passive ftp based on if the environment variable was set or not and didn't acutally check it's value. I wrote a patch for it that makes it also consider the value of the variable. This will save some confusion for people that follow the login that since FTP_PASSIVE_MODE=YES seems to make ftp use passive mode that FTP_PASSIVE_MODE=NO should make it not use passive mode. This isn't the case with the current handling of it. Please take a look at the PR I put together bin/18103 and let me know if this is a good (enough) fix for the problem. The patch can aslo be found at: http://quake.nyct.net/~efutch/FreeBSD/ftpio.c.patch Sorry for the cross post. I'm not exactly sure what's the best mailing list for this. Thanks to Ross A Lippert for pointing this out. -- 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" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message