Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Mar 2002 14:35:00 -0500
From:      The Anarcat <anarcat@anarcat.dyndns.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        anarcat@anarcat.dyndns.org
Subject:   ports/36238: [patch] ftp/wget doesn't respect FTP_PASSIVE_MODE
Message-ID:  <20020323193559.EC6251891@khan.anarcat.dyndns.org>

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

>Number:         36238
>Category:       ports
>Synopsis:       [patch] ftp/wget doesn't respect FTP_PASSIVE_MODE
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 23 11:40:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     The Anarcat
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
Nada, Inc.
>Environment:
System: FreeBSD lenny.anarcat.dyndns.org 4.5-STABLE FreeBSD 4.5-STABLE #0: Thu Mar 7 20:12:50 EST 2002 anarcat@lenny.anarcat.dyndns.org:/usr/obj/usr/src/sys/LENNY i386

wget-1.8.1

>Description:

wget doesn't establish ftp sessions in passive mode even when the
FTP_PASSIVE_MODE environment variable is set.

>How-To-Repeat:

Behind a firewall:

unsetenv FTP_PASSIVE_MODE
wget -r ftp://ftp.geocities.com/

>Fix:

Might not be done in the proper place...

Port might also need a portrevision bump, but since this pr is cc'd to
the wget patch team, I hope it will be included in a future release. :)

--- src/main.c.orig	Sat Mar 23 14:23:36 2002
+++ src/main.c	Sat Mar 23 14:26:12 2002
@@ -679,6 +679,9 @@
 	}
     }
 
+  if (getenv("FTP_PASSIVE_MODE"))
+    setval ("passiveftp", "on");
+
   /* All user options have now been processed, so it's now safe to do
      interoption dependency checks. */
 
>Release-Note:
>Audit-Trail:
>Unformatted:

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?20020323193559.EC6251891>