mirror of
https://github.com/curl/curl.git
synced 2026-08-25 23:23:31 +03:00
ftp: add 'list_only' to the transfer state struct
and rename it from 'ftp_list_only' since it is also used for SSH and POP3. The state is updated internally for 'type=D' FTP URLs. Added test case 1570 to verify. Closes #6578
This commit is contained in:
parent
115c9e27f5
commit
528f71c2ec
10 changed files with 87 additions and 12 deletions
|
|
@ -571,7 +571,7 @@ static CURLcode pop3_perform_command(struct Curl_easy *data)
|
|||
const char *command = NULL;
|
||||
|
||||
/* Calculate the default command */
|
||||
if(pop3->id[0] == '\0' || data->set.ftp_list_only) {
|
||||
if(pop3->id[0] == '\0' || data->set.list_only) {
|
||||
command = "LIST";
|
||||
|
||||
if(pop3->id[0] != '\0')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue