Commit a79e5d79 authored by Guenter Knauf's avatar Guenter Knauf
Browse files

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

parent 82491d5c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);
        }
      }