Skip site navigation (1)Skip section navigation (2)
Date:      Mon,  7 Aug 2000 15:01:47 -0700 (PDT)
From:      malachai@iname.com
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/20471: fetch(1) doesn't handle retrievals of unspecified length very well if FTP_PASSIVE_MODE is set
Message-ID:  <20000807220147.2275D37BD15@hub.freebsd.org>

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

>Number:         20471
>Category:       bin
>Synopsis:       fetch(1) doesn't handle retrievals of unspecified length very well if FTP_PASSIVE_MODE is set
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 07 15:10:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Shawn Halpenny
>Release:        4.1-STABLE
>Organization:
>Environment:
FreeBSD nightrain 4.1-STABLE FreeBSD 4.1-STABLE #0: Sat Aug  5 18:39:47 EDT 2000     root@nightrain.humb.nt.com:/usr/src/sys/compile/NIGHTRAIN  i386

HTTP_PROXY=proxy:8080
FTP_PASSIVE_MODE=yes  # this is set by the default login.conf
>Description:
When using fetch(1) to retrieve a file for which the server does not
specify the file's length, fetch reports retrieving 2^32-1 bytes.  It
will properly retrieve the file, but on completion it thinks the file
was truncated and then deletes it.

Note that unsetting FTP_PASSIVE_MODE causes fetch to work as expected.
>How-To-Repeat:
First noticed when fetching packages from ftp.freebsd.org:

% fetch ftp://ftp.freebsd.org/pub/FreeBSD/ports/packages/All/9e-1.0.tgz
Receiving 9e-1.0.tgz (4294967295 bytes): 0%
4343 bytes transferred in 3.4 seconds (1.25 kBps)
fetch: 9e-1.0.tgz appears to be truncated: 4343/4294967295 bytes

% fetch ftp://ftp.freebsd.org/pub/FreeBSD/ports/packages/All/amaterus-0.32.5.tgz
Receiving amaterus-0.32.5.tgz (4294967295 bytes): 0%
30558 bytes transferred in 10.2 seconds (2.93 kBps)
fetch: amaterus-0.32.5.tgz appears to be truncated: 30558/4294967295 bytes

% unset FTP_PASSIVE_MODE
% fetch ftp://ftp.freebsd.org/pub/FreeBSD/ports/packages/All/amaterus-0.32.5.tgz
Receiving amaterus-0.32.5.tgz (30558 bytes): 100%
30558 bytes transferred in 10.2 seconds (2.93 kBps)
>Fix:
Workaround:  make sure FTP_PASSIVE_MODE is not defined.

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000807220147.2275D37BD15>