>>>>> On Wed, 16 Aug 2000 13:31:25 -0700 (PDT)
>>>>> Archie Cobbs <[EMAIL PROTECTED]> said:

archie> I'm having trouble installing the 5.0-20000815-CURRENT snapshot.
archie> The problem seems to be broken behavior in the installer FTP client.
archie> My firewall requires using passive mode. The installer asks the
archie> FTP server for passive mode (using PASV), but then it bogusly asks
archie> for active mode (using the PORT command) immediately afterwards.
archie> Yes I selected 'passive mode ftp' for the transfer method.

It seems -CURRENT's libftpio.c always set passive flag according to
environment variable FTP_PASSIVE_MODE.  Then, PASV/PORT selection
obeys only FTP_PASSIVE_MODE and direction of sysinstall is ignored.
Does this patch fix your problem?

Index: lib/libftpio/ftpio.c
===================================================================
RCS file: /home/ncvs/src/lib/libftpio/ftpio.c,v
retrieving revision 1.37
diff -u -u -r1.37 ftpio.c
--- lib/libftpio/ftpio.c        2000/07/10 10:00:20     1.37
+++ lib/libftpio/ftpio.c        2000/08/17 15:40:43
@@ -550,7 +550,8 @@
 {
     char *cp = getenv("FTP_PASSIVE_MODE");
 
-    ftpPassive(fp, (cp && strncasecmp(cp, "no", 2)));
+    if (cp)
+       ftpPassive(fp, strncasecmp(cp, "no", 2));
 }
 
 static void

--
Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan
[EMAIL PROTECTED]  [EMAIL PROTECTED]  [EMAIL PROTECTED]
http://www.imasy.org/~ume/


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to