From 1be45576943b23e111481859076a131c25c8b8c2 Mon Sep 17 00:00:00 2001 From: James Housley Date: Tue, 26 Jun 2007 19:12:58 +0000 Subject: ftp_list_only mode should list all file types, not just directories. --- lib/ssh.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'lib') diff --git a/lib/ssh.c b/lib/ssh.c index 484103f34..7993e12d3 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; -- cgit v1.2.3