NetBSD Problem Report #8781

Received: (qmail 23892 invoked from network); 11 Nov 1999 23:56:46 -0000
Message-Id: <199911112356.PAA00890@quest.redbacknetworks.com>
Date: Thu, 11 Nov 1999 15:56:15 -0800 (PST)
From: dogcow@redback.com
Reply-To: dogcow@redback.com
To: gnats-bugs@gnats.netbsd.org
Subject:
X-Send-Pr-Version: 3.95

>Number:         8781
>Category:       bin
>Synopsis:       
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    lukem
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 11 15:57:00 +0000 1999
>Closed-Date:    Sat Nov 13 00:28:07 +0000 1999
>Last-Modified:  Sat Nov 13 00:28:52 +0000 1999
>Originator:     Tom Spindler
>Release:        <NetBSD-current source date>1.4.1
>Organization:
Redback Networks

>Environment:

System: NetBSD quest.redbacknetworks.com 1.4.1 NetBSD 1.4.1 (GENERIC) #1: Tue Aug 10 00:03:09 MEST 1999 fvdl@struis:/usr/src/sys/arch/i386/compile/GENERIC i386


>Description:
ls on ftp.isc.org does not show any output unless given a flag.
I do not know whether this is vixie's fault or netbsd's.
it does not matter whether the passive flag is specified or not.
This same bug happens with stock 1.3.2 ftp.

>How-To-Repeat:
p3 dogcow@fartmangler: ~/src 255 % ftp -p -a ftp.isc.org
Connected to isrv4.pa.vix.com.
220 isrv4.pa.vix.com FTP server (Version wu-2.6.0(1) Thu Oct 21 13:38:35 PDT 1999) ready.
331 Guest login ok, send your complete e-mail address as password.
230 Guest login ok, access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
227 Entering Passive Mode (204,152,184,27,79,54)
550 No files found.
ftp> ls -C
227 Entering Passive Mode (204,152,184,27,208,179)
150 Opening ASCII mode data connection for /bin/ls.
bin      etc      isc      lynx     private  pub      usenet
226 Transfer complete.
ftp> bye


>Fix:
change the default flags sent for ls?

>Release-Note:
>Audit-Trail:

From: Manuel Bouyer <bouyer@antioche.lip6.fr>
To: dogcow@redback.com
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: bin/8781:
Date: Fri, 12 Nov 1999 10:21:09 +0100

 On Thu, Nov 11, 1999 at 03:56:15PM -0800, dogcow@redback.com wrote:
 > >Description:
 > ls on ftp.isc.org does not show any output unless given a flag.
 > I do not know whether this is vixie's fault or netbsd's.
 > it does not matter whether the passive flag is specified or not.
 > This same bug happens with stock 1.3.2 ftp.
 > 	
 > >How-To-Repeat:
 > p3 dogcow@fartmangler: ~/src 255 % ftp -p -a ftp.isc.org
 > Connected to isrv4.pa.vix.com.
 > 220 isrv4.pa.vix.com FTP server (Version wu-2.6.0(1) Thu Oct 21 13:38:35 PDT 1999) ready.
 > 331 Guest login ok, send your complete e-mail address as password.
 > 230 Guest login ok, access restrictions apply.
 > Remote system type is UNIX.
 > Using binary mode to transfer files.
 > ftp> ls
 > 227 Entering Passive Mode (204,152,184,27,79,54)
 > 550 No files found.
 > ftp> ls -C
 > 227 Entering Passive Mode (204,152,184,27,208,179)
 > 150 Opening ASCII mode data connection for /bin/ls.
 > bin      etc      isc      lynx     private  pub      usenet
 > 226 Transfer complete.
 > ftp> bye

 The same thing happens with the -current NetBSD ftp(1), the SunOS 4.1.4
 or the Soalris 2.5.1 one, but not with the Linux/mandrake6 one (maybe
 they're sending flags with ls by default). I don't think the problem is
 on the NetBSD side here.

From: Tom Spindler <dogcow@redback.com>
To: Manuel Bouyer <bouyer@antioche.lip6.fr>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: bin/8781:
Date: Fri, 12 Nov 1999 15:14:56 -0800

 > > >Description:
 > > ls on ftp.isc.org does not show any output unless given a flag.
 > > I do not know whether this is vixie's fault or netbsd's.
 > > it does not matter whether the passive flag is specified or not.
 > > This same bug happens with stock 1.3.2 ftp.
 > > 	
 > > >How-To-Repeat:
 > > p3 dogcow@fartmangler: ~/src 255 % ftp -p -a ftp.isc.org
 > > Connected to isrv4.pa.vix.com.
 > > 220 isrv4.pa.vix.com FTP server (Version wu-2.6.0(1) Thu Oct 21 13:38:35 PDT 1999) ready.
 > > 331 Guest login ok, send your complete e-mail address as password.
 > > 230 Guest login ok, access restrictions apply.
 > > Remote system type is UNIX.
 > > Using binary mode to transfer files.
 > > ftp> ls
 > > 227 Entering Passive Mode (204,152,184,27,79,54)
 > > 550 No files found.
 > > ftp> ls -C
 > > 227 Entering Passive Mode (204,152,184,27,208,179)
 > > 150 Opening ASCII mode data connection for /bin/ls.
 > > bin      etc      isc      lynx     private  pub      usenet
 > > 226 Transfer complete.
 > > ftp> bye
 > 
 > The same thing happens with the -current NetBSD ftp(1), the SunOS 4.1.4
 > or the Soalris 2.5.1 one, but not with the Linux/mandrake6 one (maybe
 > they're sending flags with ls by default). I don't think the problem is
 > on the NetBSD side here.

 isc agrees that the problem is on their server; I think this bug can be
 marked 'resolved'.

From: Luke Mewburn <lukem@goanna.cs.rmit.edu.au>
To: dogcow@redback.com
Cc: gnats-bugs@gnats.netbsd.org, lukem@wombat.cs.rmit.edu.au
Subject: Re: bin/8781: 
Date: Sat, 13 Nov 1999 11:26:02 +1100

 dogcow@redback.com writes:
 > ls on ftp.isc.org does not show any output unless given a flag.
 > I do not know whether this is vixie's fault or netbsd's.
 > it does not matter whether the passive flag is specified or not.
 > This same bug happens with stock 1.3.2 ftp.

 this is an interesting issue.

 technically, according to RFC959, the `NLST' command (which ftp's `ls'
 command uses):
 	``The server will return a stream of names of files and no
 	  other information.''

 `traditional' bsd ftpd's just called /bin/ls for `NLST', and
 `/bin/ls -l' for `LIST'. /bin/ls doesn't differentiate between files
 and other stuff (e.g, directories, symlinks, etc), so you would get a
 list of all files. this is also why `ls' style arguments to ftp's ls
 command work; the remote server's /bin/ls is interpreting them.

 it appears that the ftp server on ftp.isc.org has been changed to
 follow the letter of the law in RFC959, in that the `NLST' command
 only returns a list of filenames.

 there's not much we can do about this. all i can suggest is to use the
 `dir' command instead of `ls' command inside ftp(1).

 btw; i had considered doing this to netbsd's ftpd, but decided against it
 because the behaviour would have been counter intuitive to what users
 expect, and it breaks remote filename completion in netbsd's ftp :-)
State-Changed-From-To: open->closed 
State-Changed-By: lukem 
State-Changed-When: Fri Nov 12 16:28:07 PST 1999 
State-Changed-Why:  
because it's a remote server issue not a local client issue 


Responsible-Changed-From-To: bin-bug-people->lukem 
Responsible-Changed-By: lukem 
Responsible-Changed-When: Fri Nov 12 16:28:07 PST 1999 
Responsible-Changed-Why:  
i'm mr ftp it seems 
>Unformatted:
 ftp(1)'s "ls" does not show files on ftp.isc.org unless a flag is given

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.