commit | a79e5d79250c6f431d8623748700b69d52683924 | [log] [tgz] |
---|---|---|
author | Gunter Knauf <gk@gknw.de> | Sat Jan 27 12:14:02 2007 +0000 |
committer | Gunter Knauf <gk@gknw.de> | Sat Jan 27 12:14:02 2007 +0000 |
tree | 7513290cc7bd959ad0ccebb8c6585a16a4352a62 | |
parent | 82491d5c062bdc364992191a0e4d70cc3869b13b [diff] |
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 cad2f07..ed38802 100644 --- a/lib/ssh.c +++ b/lib/ssh.c
@@ -807,7 +807,8 @@ filename); } - infof(data, "%s\n", line); + currLen += snprintf(line+currLen, totalLen-currLen, "\n"); + res = Curl_client_write(conn, CLIENTWRITE_BOTH, line, 0); free(line); } }