Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Mar 2002 11:50:02 -0800 (PST)
From:      The Anarcat <anarcat@anarcat.dyndns.org>
To:        freebsd-ports@FreeBSD.org
Subject:   Re: ports/36238: [patch] ftp/wget doesn't respect FTP_PASSIVE_MODE
Message-ID:  <200203231950.g2NJo2885753@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/36238; it has been noted by GNATS.

From: The Anarcat <anarcat@anarcat.dyndns.org>
To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-ports@FreeBSD.org
Cc:  
Subject: Re: ports/36238: [patch] ftp/wget doesn't respect FTP_PASSIVE_MODE
Date: Sat, 23 Mar 2002 14:45:12 -0500

 --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?200203231950.g2NJo2885753>