summaryrefslogtreecommitdiff
path: root/lib/pop3.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-02-08 16:40:34 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-02-09 14:06:28 +0100
commit528f71c2ecdbb03117af226978804148d69a1007 (patch)
tree1345d18162135945aff7657f539071c6b4019437 /lib/pop3.c
parent115c9e27f53809a254fba44b023bea92f4d4dcd0 (diff)
downloadcurl-528f71c2ecdbb03117af226978804148d69a1007.tar.gz
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
Diffstat (limited to 'lib/pop3.c')
-rw-r--r--lib/pop3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pop3.c b/lib/pop3.c
index b8e7698a4..ccfebd02a 100644
--- a/lib/pop3.c
+++ b/lib/pop3.c
@@ -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')