From: Gunter Knauf Date: Sat, 27 Jan 2007 12:14:02 +0000 (+0000) Subject: fix sftp directory listing so that it works without -v and is redirectable with ... X-Git-Tag: curl-7_16_1~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a79e5d79250c6f431d8623748700b69d52683924;p=curl fix sftp directory listing so that it works without -v and is redirectable with -o/-O. --- diff --git a/lib/ssh.c b/lib/ssh.c index cad2f0705..ed38802e3 100644 --- a/lib/ssh.c +++ b/lib/ssh.c @@ -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); } }