aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGunter Knauf <gk@gknw.de>2007-01-27 12:14:02 +0000
committerGunter Knauf <gk@gknw.de>2007-01-27 12:14:02 +0000
commita79e5d79250c6f431d8623748700b69d52683924 (patch)
tree7513290cc7bd959ad0ccebb8c6585a16a4352a62 /lib
parent82491d5c062bdc364992191a0e4d70cc3869b13b (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.c3
1 files changed, 2 insertions, 1 deletions
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);
}
}