Subject: bin/13747: ftpd doesn't deal with LIST " "
To: None <gnats-bugs@gnats.netbsd.org>
From: John Hawkinson <jhawk@mit.edu>
List: netbsd-bugs
Date: 08/18/2001 14:33:44
>Number:         13747
>Category:       bin
>Synopsis:       ftpd doesn't deal with LIST " "
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Aug 18 11:31:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     John Hawkinson
>Release:        1.5.1
>Organization:
MIT
>Environment:
	
System: NetBSD zorkmid.mit.edu 1.5W NetBSD 1.5W (ZORKMID-$Revision: 1.12 $) #104: Sun Jun 24 21:48:35 EDT 2001 jhawk@zorkmid.mit.edu:/usr/local/netbsd-current/src/sys/arch/i386/compile/ZORKMID i386


>Description:
NetBSD's ftpd does not deal with receiving a
    LIST " "
query. This makes it rather hard to get the paged default output.

>How-To-Repeat:
Under most ftpd's, the default output of LIST can be obtained by
telling a client:

	dir ""

this means that one can easily enough view the output in a paged
fashion with:

	dir "" |more

which is quite a handy idiom. But it seems that

	dir ""

doesn't work with lukemftpd, so there's no way to get

	dir "" |more

to work. Now, you can say

	dir * |more

but this is undesirable because:

a)	It behaves differently, descending into directories.
b)	It means there is not one-stop shopping for all ftpds -- dir * will
	not work on OSes that do not understand wildcards.

>Fix:
	Fix ftpd to accept " " or "" to mean the same as the default string.
>Release-Note:
>Audit-Trail:
>Unformatted: