summaryrefslogtreecommitdiffstats
path: root/debian/patches/fixes/Load-dependent-libraries-with-their-real-path.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-21 11:45:40 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-21 11:45:40 +0000
commitb9a2bf7b2ccc8190d38e44db120a92ca46c9fd1e (patch)
tree3cbe7aab712cf5a385e4aa0446b3766b7a17617f /debian/patches/fixes/Load-dependent-libraries-with-their-real-path.patch
parentAdding upstream version 1:115.7.0. (diff)
downloadthunderbird-b9a2bf7b2ccc8190d38e44db120a92ca46c9fd1e.tar.xz
thunderbird-b9a2bf7b2ccc8190d38e44db120a92ca46c9fd1e.zip
Adding debian version 1:115.7.0-1.debian/1%115.7.0-1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/fixes/Load-dependent-libraries-with-their-real-path.patch')
-rw-r--r--debian/patches/fixes/Load-dependent-libraries-with-their-real-path.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/debian/patches/fixes/Load-dependent-libraries-with-their-real-path.patch b/debian/patches/fixes/Load-dependent-libraries-with-their-real-path.patch
new file mode 100644
index 0000000000..088c79b0b8
--- /dev/null
+++ b/debian/patches/fixes/Load-dependent-libraries-with-their-real-path.patch
@@ -0,0 +1,22 @@
+From: Christoph Goehre <chris@sigxcpu.org>
+Date: Mon, 16 Sep 2013 20:40:57 +0200
+Subject: Load dependent libraries with their real path
+
+---
+ xpcom/glue/standalone/nsXPCOMGlue.cpp | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/xpcom/glue/standalone/nsXPCOMGlue.cpp b/xpcom/glue/standalone/nsXPCOMGlue.cpp
+index 09edef1..6930417 100644
+--- a/xpcom/glue/standalone/nsXPCOMGlue.cpp
++++ b/xpcom/glue/standalone/nsXPCOMGlue.cpp
+@@ -140,6 +140,9 @@ static ReadDependentCBResult ReadDependentCB(
+ ReadAheadLib(aDependentLib);
+ }
+ #endif
++ char lib[MAXPATHLEN];
++ if (realpath(aDependentLib, lib))
++ aDependentLib = lib;
+ LibHandleType libHandle;
+ MOZ_TRY_VAR(libHandle, GetLibHandle(aDependentLib));
+