Hi Alexander,

I am also seeing the described behavior here.  I went one step further
and disabled LIST my drftpd server.  Here is the following output (the
502 error use Stat -l instead is my customization):

Version:
LFTP | Version 3.6.1 | Copyright (c) 1996-2007 Alexander V. Lukyanov

Relevant Options:
set ftp:use-stat true
set ftp:use-stat-for-list yes
set ftp:list-options -la
set cmd:cls-completion-default -FB
set cmd:cls-default "-l --sort=date -r -h"

LS:
[email protected]:/-> cd STUFF
[email protected]:/STUFF-> ls
---> CWD /STUFF
<--- 250 CWD command successful.
---> STAT -la
<--- 213 End of Status
Status of -la:
total 0
drwxrwxrwx 3    user      group  368 Mar 30 16:50 file.txt


CLS and [TAB] completion and Mirror directory:

[email protected]:/-> cd STUFF
[email protected]:/STUFF-> cls
---> CWD /STUFF
<--- 250 CWD command successful.
---> STAT -la
<--- 213 End of Status
---> PRET NLST
<--- 502 This command has been disabled. Use STAT -l instead.
---> PASV
<--- 500 Bad command sequence, use PRET
---- Switching passive mode off
---> NLST
---> ABOR
---- Closing aborted data socket
---- Closing control socket

The PRET NLST is incorrect.

Sidenote is STAT appears to be using set ftp:list-options.  Don't know
if that is a problem but maybe we need a STAT-options if we want
different STAT options then LIST options.

Thanks!

On Fri, Sep 4, 2009 at 11:58 AM, Alexander V. Lukyanov<[email protected]> wrote:
> On Wed, Aug 26, 2009 at 06:32:25AM -0500, Kyle Thurow wrote:
>> Also, if you repeat the steps above but use "cls" instead of "ls" you will
>> see the following output:
>>
>> ---> STAT .
>> <--- 213 End of Status
>> ---> PROT P
>> <--- 200 Command okay
>> ---> PRET NLST
>> ---> PASV
>> ---> NLST
>> <--- 200 OK, will use master for upcoming transfer
>
> This means that lftp could not parse all lines of STAT output.
> Probably there are lines which do not fit into known UNIX ls format.
> Please send me output of "quote STAT ." command and I'll try to fix it.
>
> --
>   Alexander..
>

Reply via email to