aboutsummaryrefslogtreecommitdiffstats
path: root/main/elfutils/musl-canonicalize_file_name.patch
blob: 60e22bb5bba046b1bb38f2e8bdc33f4bf30c9192 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- a/libdwfl/dwfl_build_id_find_elf.c	2015-10-12 12:22:58.000000000 +0200
+++ b/libdwfl/dwfl_build_id_find_elf.c	2015-11-20 05:13:10.972994172 +0100
@@ -94,7 +94,7 @@
 	{
 	  if (*file_name != NULL)
 	    free (*file_name);
-	  *file_name = canonicalize_file_name (name);
+	  *file_name = realpath (name, NULL);
 	  if (*file_name == NULL)
 	    {
 	      *file_name = name;
--- a/libdwfl/find-debuginfo.c	2015-10-12 12:22:58.000000000 +0200
+++ b/libdwfl/find-debuginfo.c	2015-11-20 05:18:56.990967176 +0100
@@ -372,7 +372,7 @@
       /* If FILE_NAME is a symlink, the debug file might be associated
 	 with the symlink target name instead.  */
 
-      char *canon = canonicalize_file_name (file_name);
+      char *canon = realpath (file_name, NULL);
       if (canon != NULL && strcmp (file_name, canon))
 	fd = find_debuginfo_in_path (mod, canon,
 				     debuglink_file, debuglink_crc,