If you try to open a symlink to a folder, gdmap justs shows the size of the symlink (some bits) instead of the files in the linked folder.
I just did...
--- ./src/gui_main.c.orig 2008-05-23 15:54:28.000000000 +0100 +++ ./src/gui_main.c 2012-10-09 15:29:22.195801538 +0100 @@ -456,7 +456,12 @@
if (res) { - gui_tree_load_and_display(res); + char *realpath = realpath(res, NULL); + if (realpath) + { + gui_tree_load_and_display(realpath); + free(realpath); + } g_free(res); } }
Or, without the deliberate mistake...
if (res) { - gui_tree_load_and_display(res); + char *res_realpath = realpath(res, NULL); + if (res_realpath) + { + gui_tree_load_and_display(res_realpath); + free(res_realpath); + } g_free(res); } }
Log in to post a comment.
I just did...
--- ./src/gui_main.c.orig 2008-05-23 15:54:28.000000000 +0100
+++ ./src/gui_main.c 2012-10-09 15:29:22.195801538 +0100
@@ -456,7 +456,12 @@
if (res)
{
- gui_tree_load_and_display(res);
+ char *realpath = realpath(res, NULL);
+ if (realpath)
+ {
+ gui_tree_load_and_display(realpath);
+ free(realpath);
+ }
g_free(res);
}
}
Or, without the deliberate mistake...
--- ./src/gui_main.c.orig 2008-05-23 15:54:28.000000000 +0100
+++ ./src/gui_main.c 2012-10-09 15:29:22.195801538 +0100
@@ -456,7 +456,12 @@
if (res)
{
- gui_tree_load_and_display(res);
+ char *res_realpath = realpath(res, NULL);
+ if (res_realpath)
+ {
+ gui_tree_load_and_display(res_realpath);
+ free(res_realpath);
+ }
g_free(res);
}
}