aboutsummaryrefslogtreecommitdiffstats
path: root/main/librsvg/use-realpath.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/librsvg/use-realpath.patch')
-rw-r--r--main/librsvg/use-realpath.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/main/librsvg/use-realpath.patch b/main/librsvg/use-realpath.patch
new file mode 100644
index 0000000000..5e2588a9e2
--- /dev/null
+++ b/main/librsvg/use-realpath.patch
@@ -0,0 +1,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)