openexr: make architecture independent
[oi-userland.git] / components / sysutils / mc / patches / 01-infopanel-follow-symlinks.patch
blob62a96d9419b3f766a90c864cb437dfc565c6f8db
1 Upstream bugID: #3278
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
11 + const char *rpath;
12 size_t len = 0;
13 struct mount_entry *entry = NULL;
14 GSList *temp;
15 struct fs_usage fs_use;
17 + rpath = realpath(path, NULL);
18 + if (rpath != NULL && path != rpath)
19 + 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
30 + if (rpath != path)
31 + free((void *) rpath);
32 +#endif /* HAVE_INFOMOUNT_LIST */
35 /* --------------------------------------------------------------------------------------------- */