Cyberduck Mountain Duck CLI

#8342 closed defect (fixed)

Fails to list directory with symlinks

Reported by: qualaby . Owned by: dkocher
Priority: normal Milestone: 4.6
Component: sftp Version: 4.5.2
Severity: normal Keywords: sftp proftpd
Cc: Architecture:
Platform:

Description (last modified by dkocher)

I get an error when trying to enter a directory containing symlinks:

Cannot read file attibutes (/path/to/symlink)
39 OPENDIR
40 READDIR
41 READDIR
42 READLINK

Connection is SFTP. Server is proftpd with mod_sftp running on RHEL 6. I have tested this with half a dozen other sftp clients with no issue.

Change History (4)

comment:1 Changed on Nov 19, 2014 at 4:41:57 PM by dkocher

  • Component changed from core to sftp
  • Description modified (diff)
  • Owner set to dkocher

comment:2 Changed on Nov 20, 2014 at 10:57:25 AM by dkocher

  • Milestone set to 4.6
  • Status changed from new to assigned

comment:3 Changed on Nov 20, 2014 at 11:11:22 AM by dkocher

  • Resolution set to fixed
  • Status changed from assigned to closed

Possible fix in r15801. Please test with the latest snapshot build.

comment:4 Changed on Nov 20, 2014 at 11:14:06 AM by dkocher

The fix makes the assumption that the server is sending one of the SSH error status code [-1|4,5,8] when attempting to resolve the target of a symbolic link that does not exist. Previously only 3 (PERMISSION_DENIED) was handled which is what we get with the OpenSSH SFTP subsystem.

Note: See TracTickets for help on using tickets.
swiss made software