From owner-freebsd-ports Sat Mar 23 11:50:17 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id B050C37B41C for ; Sat, 23 Mar 2002 11:50:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g2NJo2885753; Sat, 23 Mar 2002 11:50:02 -0800 (PST) (envelope-from gnats) Date: Sat, 23 Mar 2002 11:50:02 -0800 (PST) Message-Id: <200203231950.g2NJo2885753@freefall.freebsd.org> To: freebsd-ports@FreeBSD.org Cc: From: The Anarcat Subject: Re: ports/36238: [patch] ftp/wget doesn't respect FTP_PASSIVE_MODE Reply-To: The Anarcat 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 The following reply was made to PR ports/36238; it has been noted by GNATS. From: The Anarcat 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