diff options
author | Gunter Knauf <gk@gknw.de> | 2007-01-27 12:14:02 +0000 |
---|---|---|
committer | Gunter Knauf <gk@gknw.de> | 2007-01-27 12:14:02 +0000 |
commit | a79e5d79250c6f431d8623748700b69d52683924 (patch) | |
tree | 7513290cc7bd959ad0ccebb8c6585a16a4352a62 /lib | |
parent | 82491d5c062bdc364992191a0e4d70cc3869b13b (diff) |
fix sftp directory listing so that it works without -v and is redirectable with -o/-O.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ssh.c | 3 |
1 files changed, 2 insertions, 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); } } |