Subject: bin/13747: ftpd doesn't deal with LIST " "
To: None <>
From: John Hawkinson <>
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
>Originator:     John Hawkinson
>Release:        1.5.1
System: NetBSD 1.5W NetBSD 1.5W (ZORKMID-$Revision: 1.12 $) #104: Sun Jun 24 21:48:35 EDT 2001 i386

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

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 ftpd to accept " " or "" to mean the same as the default string.