mirror of
https://github.com/curl/curl.git
synced 2026-07-25 04:57:15 +03:00
fix sftp directory listing so that it works without -v and is redirectable with -o/-O.
This commit is contained in:
parent
82491d5c06
commit
a79e5d7925
1 changed files with 2 additions and 1 deletions
|
|
@ -807,7 +807,8 @@ CURLcode Curl_sftp_do(struct connectdata *conn, bool *done)
|
|||
filename);
|
||||
}
|
||||
|
||||
infof(data, "%s\n", line);
|
||||
currLen += snprintf(line+currLen, totalLen-currLen, "\n");
|
||||
res = Curl_client_write(conn, CLIENTWRITE_BOTH, line, 0);
|
||||
free(line);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue