Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Mar 2002 14:45:12 -0500
From:      The Anarcat <anarcat@anarcat.dyndns.org>
To:        FreeBSD-gnats-submit@FreeBSD.org, freebsd-ports@FreeBSD.org
Subject:   Re: ports/36238: [patch] ftp/wget doesn't respect FTP_PASSIVE_MODE
Message-ID:  <20020323194512.GB282@lenny.anarcat.dyndns.org>
In-Reply-To: <200203231940.g2NJe1m72719@freefall.freebsd.org>
References:  <20020323193559.EC6251891@khan.anarcat.dyndns.org> <200203231940.g2NJe1m72719@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--pvezYHf7grwyp3Bc
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Thinking back, and looking at libfetch, this would be better:


--- main.c.orig	Mon Dec 10 00:31:44 2001
+++ main.c	Sat Mar 23 14:41:35 2002
@@ -239,6 +239,8 @@
   char **url, **t;
   int i, c, nurl, status, append_to_log;
=20
+  char *s;
+
   static struct option long_options[] =3D
   {
     /* Options without arguments: */
@@ -678,6 +680,10 @@
 	  break;
 	}
     }
+
+  if ((s =3D getenv("FTP_PASSIVE_MODE")) !=3D NULL &&
+    strncasecmp(s, "no", 2) !=3D 0)
+    setval ("passiveftp", "on");
=20
   /* All user options have now been processed, so it's now safe to do
      interoption dependency checks. */

--pvezYHf7grwyp3Bc
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjyc20cACgkQttcWHAnWiGcf8QCdFo+NqE8aNfq2/ryY+xJTxKJv
v1AAoJzLCIE67TAyGb8kiT7rY3PP2Ilm
=cQLV
-----END PGP SIGNATURE-----

--pvezYHf7grwyp3Bc--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020323194512.GB282>