2 Synopsis: Info panel should follow symlinks
3 Bug record: https://www.midnight-commander.org/ticket/3278
5 --- mc-4.8.17.orig/src/filemanager/mountlist.c 2016-05-09 10:42:34.560205317 +0300
6 +++ mc-4.8.17/src/filemanager/mountlist.c 2016-05-09 10:42:13.095772709 +0300
7 @@ -1702,11 +1702,16 @@
8 my_statfs (struct my_statfs *myfs_stats, const char *path)
10 #ifdef HAVE_INFOMOUNT_LIST
13 struct mount_entry *entry = NULL;
15 struct fs_usage fs_use;
17 + rpath = realpath(path, NULL);
18 + if (rpath != NULL && path != rpath)
21 for (temp = mc_mount_list; temp != NULL; temp = g_slist_next (temp))
23 struct mount_entry *me;
24 @@ -1779,6 +1784,11 @@
25 myfs_stats->nfree = 0;
26 myfs_stats->nodes = 0;
29 +#ifdef HAVE_INFOMOUNT_LIST
31 + free((void *) rpath);
32 +#endif /* HAVE_INFOMOUNT_LIST */
35 /* --------------------------------------------------------------------------------------------- */