From owner-freebsd-ports Sat Mar 23 11:46:17 2002 Delivered-To: freebsd-ports@freebsd.org Received: from tomts23-srv.bellnexxia.net (tomts23.bellnexxia.net [209.226.175.185]) by hub.freebsd.org (Postfix) with ESMTP id F3A7A37B404; Sat, 23 Mar 2002 11:46:12 -0800 (PST) Received: from khan.anarcat.dyndns.org ([65.94.191.9]) by tomts23-srv.bellnexxia.net (InterMail vM.4.01.03.23 201-229-121-123-20010418) with ESMTP id <20020323194611.QSKY655.tomts23-srv.bellnexxia.net@khan.anarcat.dyndns.org>; Sat, 23 Mar 2002 14:46:11 -0500 Received: from lenny.anarcat.dyndns.org (lenny.anarcat.dyndns.org [192.168.0.4]) by khan.anarcat.dyndns.org (Postfix) with SMTP id 7CA1519BC; Sat, 23 Mar 2002 14:46:10 -0500 (EST) Received: by lenny.anarcat.dyndns.org (sSMTP sendmail emulation); Sat, 23 Mar 2002 14:45:12 -0500 Date: Sat, 23 Mar 2002 14:45:12 -0500 From: The Anarcat 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> References: <20020323193559.EC6251891@khan.anarcat.dyndns.org> <200203231940.g2NJe1m72719@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="pvezYHf7grwyp3Bc" Content-Disposition: inline In-Reply-To: <200203231940.g2NJe1m72719@freefall.freebsd.org> User-Agent: Mutt/1.3.27i Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --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