From a79e5d79250c6f431d8623748700b69d52683924 Mon Sep 17 00:00:00 2001 From: Gunter Knauf Date: Sat, 27 Jan 2007 12:14:02 +0000 Subject: fix sftp directory listing so that it works without -v and is redirectable with -o/-O. --- lib/ssh.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } } -- cgit v1.2.3