]> granicus.if.org Git - curl/commitdiff
ftp_list_only mode should list all file types, not just directories.
authorJames Housley <jim@thehousleys.net>
Tue, 26 Jun 2007 19:12:58 +0000 (19:12 +0000)
committerJames Housley <jim@thehousleys.net>
Tue, 26 Jun 2007 19:12:58 +0000 (19:12 +0000)
lib/ssh.c

index 484103f34985c848fecba9c96dde98c011fd40c0..7993e12d3c308e6462866cba691d214308145fed 100644 (file)
--- 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;