id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking	branch_state	votes
3278	Info panel should follow symlinks	mcermak		"When an info panel is shown, the file system statistics are not correct after passing through a symlink. When one goes through a symlink (to a directory) crossing to a different file system, the statistics in the info panel won't change, still showing the original file system data.
Let's have a file system /home and file system /export/data. In /home/mcermak, there is a symlink my_work to /export/data/my_work. When a user goes from /home/mcermak through my_work symlink to /etc/data/my_work, the statistics in the info panel won't change and will keep showing data for /home.
One can easily get different information for /home/mcermak/my_work and /export/data/my_work even though those point a same directory.

# mc -V
GNU Midnight Commander 4.8.13
Built with GLib 2.28.6
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 support for X11 events
With internationalization support
With multiple codepages support
Virtual File Systems: cpiofs, tarfs, sfs, extfs, ftpfs, fish
Data types: char: 8; int: 32; long: 64; void *: 64; size_t: 64; off_t: 64;

This is because the statistics obtaining function my_statfs() in filemanager/mountlist.c is passed the current path which is /home/mcermak/my_work and searches through the mount point table using string matching.
To get the correct data, the path needs to be resolved to an absolute path (without dots or symlinks). On Solaris, realpath() library function can do the resolution."	defect	new	minor	Future Releases	mc-core	master						no branch	
