Ticket #3656 (new defect)

Opened 8 years ago

incorrect handling of ftp symlinks

Reported by: ahauras Owned by:
Priority: minor Milestone: Future Releases
Component: mc-vfs Version:
Keywords: Cc:
Blocked By: Blocking:
Branch state: no branch Votes for changeset:

Description

What version of Midnight Commander is used?

GNU Midnight Commander 4.8.16
Built with GLib 2.44.1
Using the S-Lang library with terminfo database
With builtin Editor
With subshell support as default
With support for background operations
With mouse support on xterm
With internationalization support
With multiple codepages support
Virtual File Systems: cpiofs, tarfs, sfs, extfs, ext2undelfs, ftpfs, fish
Data types: char: 8; int: 32; long: 32; void *: 32; size_t: 32; off_t: 64;

What steps will reproduce the problem?

  1. create symlink with absolute path on ftp server (for example pointing to /home/ftp/dir)
  2. path must not exist on local system
  3. connect to ftp by MC vfs
  4. symlink is highlighed red, and you cannot open it
  5. manually "cd symlink" is working

What is the expected output?
Just allow cd to such symlink.

What do you see instead?
I cannot enter symlink, but manually entering "cd symlink" works.

Example listing of FTP client entering such symlink:
*cut*
230 Anonymous user logged in
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
200 PORT command successful
150 Connecting to port 52839
drwxr-xr-x 2 0 0 4096 Jun 12 21:53 confupdate
lrwxrwxrwx 1 0 0 21 Jun 11 01:48 packages -> /usr/portage/packages
226-Options: -l
226 2 matches total
ftp> cd packages
250 OK. Current directory is /packages
ftp> ls
200 PORT command successful
150 Connecting to port 58878
-rw-r--r-- 1 0 0 361297 Jun 11 01:04 Packages
drwxr-xr-x 2 0 0 4096 Jun 5 20:39 app-admin
drwxr-xr-x 2 0 0 4096 Jun 5 23:54 app-arch
*cut*

Note: See TracTickets for help on using tickets.