Subject: bin/7976: ftp(1) EPSV support is broken
To: None <gnats-bugs@gnats.netbsd.org, itojun@iijlab.net>
From: Bernd Ernesti <bernd@arresum.inka.de>
List: netbsd-bugs
Date: 07/12/1999 23:35:45
>Number:         7976
>Category:       bin
>Synopsis:       ftp(1) EPSV support is broken
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 12 23:35:00 1999
>Last-Modified:
>Originator:     Bernd Ernesti
>Organization:
	
>Release:        NetBSD-current 13-Jul-1999 6:00 GMT
>Environment:
	
System: NetBSD arresum.inka.de 1.4F NetBSD 1.4F (ARRESUM) #357: Sat Jul 10 10:21:48 MEST 1999 bernd@arresum.inka.de:/home/work/obj_i386/src.i386/sys/arch/i386/compile/ARRESUM i386


>Description:
	Try to connect to 6bone.informatik.uni-leipzig.de and watch the error
	when you do a 'dir' or 'ls'.
>How-To-Repeat:

> ftp -d ftp://6bone.informatik.uni-leipzig.de/pub/ftp.kame.net/pub/kame/
isipv6addr: got 0 for ftp://6bone.informatik.uni-leipzig.de/pub/ftp.kame.net/pub/kame/
parse_url: user `<null>' pass `<null>' host 6bone.informatik.uni-leipzig.de:ftp path `pub/ftp.kame.net/pub/kame/'
fetch_ftp: user `<null>' pass `<null>' host 6bone.informatik.uni-leipzig.de:ftp path `pub/ftp.kame.net/pub/kame' dir `pub/ftp.kame.net/pub/kame' file `'
Connected to 6bone.informatik.uni-leipzig.de.
220 6bone FTP server (Version 6.00) ready.
---> USER anonymous
331 Guest login ok, send your e-mail address (user@host) as password.
---> PASS XXXX
230 Guest login ok, access restrictions apply.
---> SYST
215 UNIX Type: L8
Remote system type is UNIX.
Using binary mode to transfer files.
---> TYPE I
200 Type set to I.
dir `pub', nextpart `ftp.kame.net/pub/kame'
---> CWD pub
250 CWD command successful.
dir `ftp.kame.net', nextpart `pub/kame'
---> CWD ftp.kame.net
250 CWD command successful.
dir `pub', nextpart `kame'
---> CWD pub
250 CWD command successful.
dir `kame', nextpart `<null>'
---> CWD kame
250 CWD command successful.
ftp> ls
---> TYPE A
200 Type set to A.
---> EPSV
228 Entering Passive Mode (|||2342|)
parse error!
ftp> epsv4
EPSV/EPRT on IPv4 off.
ftp> ls
---> PASV
227 Entering Passive Mode (139,18,12,43,9,40)
---> NLST
150 Opening ASCII mode data connection for 'file list'.
snap
misc
release
stable
package
installer
.hidden
README
226 Transfer complete.
ftp> 

>Fix:
	Disable EPSV support or fix it.
>Audit-Trail:
>Unformatted: