Skip to content

Commit

Permalink
traverse: use good old realpath() instead of g_canonicalize_filename(…
Browse files Browse the repository at this point in the history
…) because of Dinosaurus Debianus
  • Loading branch information
sahib committed Jan 12, 2019
1 parent 3cdfc03 commit 5ec7928
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/traverse.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,12 @@ static char *rm_traverse_rel_realpath(char *link_path, char *pointing_to) {

// Most links will already be absolute.
if(g_path_is_absolute(pointing_to)) {
return g_canonicalize_filename(pointing_to, NULL);
return realpath(pointing_to, NULL);
}

char *link_dir_path = g_path_get_dirname(link_path);
char *full_path = g_build_path(G_DIR_SEPARATOR_S, link_dir_path, pointing_to, NULL);
char *clean_path = g_canonicalize_filename(full_path, NULL);
char *clean_path = realpath(full_path, NULL);

g_free(link_dir_path);
g_free(full_path);
Expand Down

0 comments on commit 5ec7928

Please sign in to comment.