Commit 1be45576 authored by James Housley's avatar James Housley
Browse files

ftp_list_only mode should list all file types, not just directories.

parent 6a217387
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -1487,12 +1487,8 @@ CURLcode Curl_sftp_do(struct connectdata *conn, bool *done)
          filename[len] = '\0';

          if (data->set.ftp_list_only) {
            if ((attrs.flags & LIBSSH2_SFTP_ATTR_PERMISSIONS) &&
                ((attrs.permissions & LIBSSH2_SFTP_S_IFMT) ==
                 LIBSSH2_SFTP_S_IFDIR)) {
            infof(data, "%s\n", filename);
          }
          }
          else {
            totalLen = 80 + len;
            line = (char *)malloc(totalLen);