aboutsummaryrefslogtreecommitdiffstats
path: root/main/librsvg/use-realpath.patch
blob: 5e2588a9e23b4ef911491b208a0e09fbcc54af5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- librsvg-2.39.0.orig/rsvg-base.c
+++ librsvg-2.39.0/rsvg-base.c
@@ -2190,8 +2190,7 @@
     dir = g_file_get_path (base);
     g_object_unref (base);
 
-    /* FIXME portability */
-    cdir = canonicalize_file_name (dir);
+    cdir = realpath (dir, NULL);
     g_free (dir);
     if (cdir == NULL)
         goto deny;
@@ -2200,8 +2199,7 @@
     if (path == NULL)
         goto deny;
 
-    /* FIXME portability */
-    cpath = canonicalize_file_name (path);
+    cpath = realpath (path, NULL);
     g_free (path);
 
     if (cpath == NULL)