From: James Housley Date: Tue, 26 Jun 2007 19:12:58 +0000 (+0000) Subject: ftp_list_only mode should list all file types, not just directories. X-Git-Tag: curl-7_16_4~53 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1be45576943b23e111481859076a131c25c8b8c2;p=thirdparty%2Fcurl.git ftp_list_only mode should list all file types, not just directories. --- diff --git a/lib/ssh.c b/lib/ssh.c index 484103f349..7993e12d3c 100644 --- a/lib/ssh.c +++ b/lib/ssh.c @@ -1487,11 +1487,7 @@ 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); - } + infof(data, "%s\n", filename); } else { totalLen = 80 + len;