diff options
author | James Housley <jim@thehousleys.net> | 2007-06-26 19:12:58 +0000 |
---|---|---|
committer | James Housley <jim@thehousleys.net> | 2007-06-26 19:12:58 +0000 |
commit | 1be45576943b23e111481859076a131c25c8b8c2 (patch) | |
tree | e9a0880097662c9224bd5dbe84a9cf636e51cd26 | |
parent | 6a217387044f5264c8ac9507be2d2b5edab5d29d (diff) |
ftp_list_only mode should list all file types, not just directories.
-rw-r--r-- | lib/ssh.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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; |