[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: |
Wed, 27 Jan 2021 05:03:26 -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 |
URL:
<https://savannah.gnu.org/bugs/?59954>
Summary: wget assumes ftp server of type UNIX knows LIST -a
command while this is not always true
Project: GNU Wget
Submitted by: arekm
Submitted on: Wed 27 Jan 2021 11:03:24 AM CET
Category: Protocol Issue
Severity: 3 - Normal
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Release: 1.20
Discussion Lock: Any
Operating System: None
Reproducibility: Every Time
Fixed Release: None
Planned Release: None
Regression: None
Work Required: None
Patch Included: None
_______________________________________________________
Details:
wget -d ftp://ftp.sudo.ws/pub/sudo/
and there is no listing returned
that's because server doesn't support LIST -a while wget insists on using LIST
-a
Server returns "ftpd: -a: No such file or directory" for LIST -a which wget
doesn't notice as error.
$ ./wget -d ftp://ftp.sudo.ws/pub/sudo/
DEBUG output created by Wget 1.21.1 on linux-gnu.
Reading HSTS entries from /home/users/arekm/.wget-hsts
URI encoding = ‘UTF-8’
Converted file name 'index.html' (UTF-8) -> 'index.html' (UTF-8)
Using ‘.listing’ as listing tmp file.
--2021-01-27 10:46:45-- ftp://ftp.sudo.ws/pub/sudo/
=> ‘.listing’
Resolving ftp.sudo.ws (ftp.sudo.ws)... 65.102.237.118
Caching ftp.sudo.ws => 65.102.237.118
Connecting to ftp.sudo.ws (ftp.sudo.ws)|65.102.237.118|:21... connected.
Created socket 3.
Releasing 0x000000000224f430 (new refcount 1).
220 xerxes.sudo.ws FTP server ready.
Logging in as anonymous ...
--> USER anonymous
331 Guest login ok, send your email address as password.
--> PASS -wget@
230- Welcome to ftp.sudo.ws in sunny Boulder, CO.
230- This is the master ftp site for the `sudo' sysadmin utility.
230-
230- For sudo, go to /pub/sudo
230- For the sudo web page, visit https://www.sudo.ws/
230-
230- All transfers are logged with your host and email address.
230- If you don't like this policy, disconnect now!
230-
230- Illegitimus Non Carborundum Est
230-
230 Guest login ok, access restrictions apply.
Logged in!
==> SYST ...
--> SYST
215 UNIX Type: L8
done.
UNIX TYPE L8: I know it and I will use "LIST -a" as standard list command
==> PWD ...
--> PWD
257 "/" is current directory.
done.
==> TYPE I ...
--> TYPE I
200 Type set to I.
done. changing working directory
Prepended initial PWD to relative path:
pwd: '/'
old: 'pub/sudo'
new: '/pub/sudo'
==> CWD (1) /pub/sudo ...
--> CWD /pub/sudo
250 CWD command successful.
done.
conaddr is: 65.102.237.118
==> PASV ...
--> PASV
227 Entering Passive Mode (65,102,237,118,231,91)
trying to connect to 65.102.237.118 port 59227
Created socket 4.
done. ==> LIST ...
--> LIST -a
150 Opening BINARY mode data connection for '-a'.
(skipping "LIST")done.
.listing [ <=>
] 36 --.-KB/s in 0s
Closed fd 4
226 Transfer complete.
2021-01-27 10:46:52 (4.17 MB/s) - ‘.listing’ saved [36]
LINIA: ftpd: -a: No such file or directory
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - it's my added printf("%s",
line) to see what is being returned
UNKNOWN; perms 0;
Skipping.
Removed ‘.listing’.
Converted file name 'index.html' (UTF-8) -> 'index.html' (UTF-8)
Wrote HTML-ized index to ‘index.html’ [212].
Closed fd 3
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?59954>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [bug #59954] wget assumes ftp server of type UNIX knows LIST -a command while this is not always true,
Arkadiusz Miskiewicz <=