1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

fix sftp directory listing so that it works without -v and is redirectable with -o/-O.

This commit is contained in:
Gunter Knauf 2007-01-27 12:14:02 +00:00
parent 82491d5c06
commit a79e5d7925

View File

@ -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);
}
}