Menu

#10 Doesn't follow symlinks

open
nobody
None
5
2007-11-04
2007-11-04
No

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.

Discussion

  • Richard Fuller

    Richard Fuller - 2012-10-09

    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);
    }
    }

     
  • Richard Fuller

    Richard Fuller - 2012-10-09

    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);
    }
    }

     

Log in to post a comment.

MongoDB Logo MongoDB