fix sftp directory listing so that it works without -v and is redirectable with ...
authorGunter Knauf <gk@gknw.de>
Sat, 27 Jan 2007 12:14:02 +0000 (12:14 +0000)
committerGunter Knauf <gk@gknw.de>
Sat, 27 Jan 2007 12:14:02 +0000 (12:14 +0000)
lib/ssh.c

index cad2f07..ed38802 100644 (file)
--- 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);
         }
       }