diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-02-08 16:40:34 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-02-09 14:06:28 +0100 |
commit | 528f71c2ecdbb03117af226978804148d69a1007 (patch) | |
tree | 1345d18162135945aff7657f539071c6b4019437 /lib/vssh/libssh.c | |
parent | 115c9e27f53809a254fba44b023bea92f4d4dcd0 (diff) | |
download | curl-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/vssh/libssh.c')
-rw-r--r-- | lib/vssh/libssh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vssh/libssh.c b/lib/vssh/libssh.c index dfdef12af..1bb644eed 100644 --- a/lib/vssh/libssh.c +++ b/lib/vssh/libssh.c @@ -1413,7 +1413,7 @@ static CURLcode myssh_statemach_act(struct Curl_easy *data, bool *block) sshc->readdir_longentry = sshc->readdir_attrs->longname; sshc->readdir_len = strlen(sshc->readdir_filename); - if(data->set.ftp_list_only) { + if(data->set.list_only) { char *tmpLine; tmpLine = aprintf("%s\n", sshc->readdir_filename); |