Ticket #4036 (new defect)

Opened 13 days ago

"cd follows links" is partially broken (doesn't preserve the symbolic link dir on any command)

Reported by: stas Owned by:
Priority: major Milestone: Future Releases
Component: mc-core Version: master
Keywords: symlink Cc:
Blocked By: Blocking:
Branch state: no branch Votes for changeset:

Description

Hi,

starting with one of the recent releases "cd follows links" has become partially broken.

If I go to a symlinked dir and have "cd follows links" set to true, mc shows the symlinked directory and browsing works - i.e. I can go back and forth and it keeps the symlinked directory in place.

However, if I do any operation that refreshed the mc screen, e.g. a simple: ls, mc immediately resolves the directory and forgets the symlink, now displaying the resolved real directory.

To reproduce:

mkdir /tmp/real
ln -s /tmp/real /tmp/link
mc
cd /tmp/link # shows /tmp/link
ls # now shows /tmp/real, whereas it should still show /tmp/link
mc -V
GNU Midnight Commander 4.8.19
Built with GLib 2.53.4
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 and Linux console
With support for X11 events
With internationalization support
With multiple codepages support
Virtual File Systems: cpiofs, tarfs, sfs, extfs, ext2undelfs, ftpfs, sftpfs, fish
Data types: char: 8; int: 32; long: 64; void *: 64; size_t: 64; off_t: 64;

Thank you!

Note: See TracTickets for help on using tickets.