From owner-freebsd-questions Tue Jan 12 16:26:51 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA13248 for freebsd-questions-outgoing; Tue, 12 Jan 1999 16:26:51 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from mail.symmetron.com (mail.symmetron.com [206.239.186.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA13228 for ; Tue, 12 Jan 1999 16:26:45 -0800 (PST) (envelope-from John.Shue@symmetron.com) Received: from mail (mail.symmetron.com [127.0.0.1]) by mail.symmetron.com (Netscape Mail Server v2.02) with SMTP id AAA321; Tue, 12 Jan 1999 19:30:52 -0500 Reply-To: From: John.Shue@symmetron.com (John A. Shue) To: , Subject: RE: fetch in passive mode fails (repost) Date: Tue, 12 Jan 1999 19:30:52 -0500 Keywords: FreeBSDemail Message-ID: <005201be3e8b$f99d3b80$02baefce@mail.symmetron.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2377.0 In-Reply-To: <19990112202141.JEYV678125.mta2-rme@wocker> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Looks like I found the bug in fetch. It isn't checking the environment variable. The following patch fixes the problem: *** ftp.c.orig Tue Jan 12 17:50:41 1999 --- ftp.c Tue Jan 12 17:52:36 1999 *************** *** 366,371 **** --- 366,373 ---- } } else ftpBinary(ftp); + if(getenv("FTP_PASSIVE_MODE")) + fs->fs_passive_mode=1; ftpPassive(ftp, fs->fs_passive_mode); for (i = 0, dp = ftps->ftp_remote_dirs; i < ftps->ftp_remote_ndirs; i++, dp++) { if ((status = ftpChdir(ftp, *dp)) != 0) { I also submitted a pr to get this fixed in the source tree. -john -----Original Message----- From: owner-freebsd-questions@FreeBSD.ORG [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Dan Langille Sent: Tuesday, January 12, 1999 3:21 PM To: freebsd-questions@FreeBSD.ORG Subject: fetch in passive mode fails (repost) I cannot get make to do its fetches in passive mode. As a result, when doing a make I get errors like this: >> Attempting to fetch from ftp://ftp.freebsd.org/pub/FreeBSD/distfiles//. fetch: ftp://ftp.freebsd.org/pub/FreeBSD/distfiles//donkey-0.5.tar.gz: FTP error: fetch: Can't open data connection >> Couldn't fetch it - please try to retrieve this >> port manually into /usr/ports/distfiles/ and try again. *** Error code 1 OK. That tells me fetch is not using passive mode. Running a fetch with "-p" succeeds. I could just drop the firewall rules and do it again, but that's not good enough. A read of man fetch tells about an environment variable: "FTP_PASSIVE_MODE forces the use of passive mode FTP". I thought it was an environment variable, so I set that. No effect. A response to my previous post suggested that I try FTP_PASSIVE_MODE=YES in /etc/make.conf. That seems to have nil effect. Any suggestions on how to get make to force fetch to do ftp in passive mode that I can get my stuff through the firewall? thanks :) -- Dan Langille The FreeBSD Diary http://www.FreeBSDDiary.com/freebsd To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message