Subject: Re: ftpd and LIST command
To: None <tech-net@netbsd.org>
From: Richard Braun <syn@sceen.net>
List: tech-net
Date: 02/07/2005 08:49:05
--jI8keyz6grp/JLjh
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Feb 07, 2005 at 02:28:45PM +1100, Luke Mewburn wrote:
> On Sun, Feb 06, 2005 at 08:01:26PM +0100, Richard Braun wrote:
>   | It seems the netbsd ftpd doesn't handle LIST commands correctly. LIST=
 alone
>   | works right, but LIST <path> fails (returns no list at all). PR #12667
>   | is about this problem and is still open. Is it a bug or a missing fea=
ture ?
>=20
> Works for me, for "simple" filenames or directories:
>=20
> 	ftp> debug
> 	Debugging on (debug=3D1).
> 	ftp> dir bin
> 	---> EPSV
> 	229 Entering Extended Passive Mode (|||19251|)
> 	---> LIST bin
> 	150 Opening ASCII mode data connection for '/bin/ls'.
> 	total 608
> 	-r-xr-xr-x  1 0  0  289068 Nov  2  2000 ls.off
> 	226 Transfer complete.
>=20
> I haven't (recently) investigated the specific bug described in PR 12667.

Right. Actually, the problem rises when the command isn't strictly formatted
as "CMD ARG". For example, LIST / works, LIST  / doesn't... I don't think
the RFCs would forbid such commands.

--=20
Richard Braun

--jI8keyz6grp/JLjh
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (NetBSD)

iD8DBQFCBx1wBlWsEPLYRi8RAljXAJ44+hKqDC4wDMOD7TSGQ8qTAdkAQQCeJ8Hi
7kX2bFLhLKBwnmdLje+ayhQ=
=sMxb
-----END PGP SIGNATURE-----

--jI8keyz6grp/JLjh--