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/libssh2.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/libssh2.c')
-rw-r--r-- | lib/vssh/libssh2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vssh/libssh2.c b/lib/vssh/libssh2.c index dbbeb2322..0e7c2eb98 100644 --- a/lib/vssh/libssh2.c +++ b/lib/vssh/libssh2.c @@ -2143,7 +2143,7 @@ static CURLcode ssh_statemach_act(struct Curl_easy *data, bool *block) readdir_len = (size_t) rc; sshp->readdir_filename[readdir_len] = '\0'; - if(data->set.ftp_list_only) { + if(data->set.list_only) { result = Curl_client_write(data, CLIENTWRITE_BODY, sshp->readdir_filename, readdir_len); |