bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #59954] wget assumes ftp server of type UNIX knows LIST -a command


From: Arkadiusz Miskiewicz
Subject: [bug #59954] wget assumes ftp server of type UNIX knows LIST -a command while this is not always true
Date: Sun, 31 Jan 2021 13:28:21 -0500 (EST)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.96 Safari/537.36

Follow-up Comment #2, bug #59954 (project wget):

That ftp server interprets "-a" as file/directory argument and tries to list
that.

Doesn't seem to be uncommon for ftp servers to do not return error on LIST on
not existing files/directories.

But it is uncommon to not support "-a", that's why this problem doesn't occur
so often with wget.

ftp.ubuntu.com - returns success (226) but sends empty list when trying to
list not-existing directory
ftp.redhat.com - the same
ftp.pureftpd.org - the same
ftp.wayne.edu - the same
ftp.netbsd.org - the same

ftp.proftpd.com - returns error 450

so only one from above actually returns error. Fortunately all above support
"-a" which makes this problem "hidden".


Maybe wget could fallback to LIST (without -a) when there is no parsed result
in the output, too?


Don't have strong opinion about this but clearly almost no server returns
error on non existing file/directory (which is "-a" file/directory in reported
case as server doesn't support "-a" option).

 

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59954>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]