Load-dependent-libraries-with-their-real-path-to-avo
authorChristoph Goehre <chris@sigxcpu.org>
Mon, 16 Sep 2013 18:40:57 +0000 (20:40 +0200)
committerCarsten Schoenert <c.schoenert@t-online.de>
Wed, 27 Mar 2019 17:22:51 +0000 (17:22 +0000)
Gbp-Pq: Topic fixes
Gbp-Pq: Name Load-dependent-libraries-with-their-real-path-to-avo.patch

xpcom/glue/standalone/nsXPCOMGlue.cpp

index 60bc8ec28b8fe1b0aacc7228c13e51cde05225ae..069331165c78b81a3f8eb4f61f8d6e4d5606bf63 100644 (file)
@@ -127,6 +127,9 @@ static bool ReadDependentCB(pathstr_t aDependentLib) {
   // We do this unconditionally because of data in bug 771745
   ReadAheadLib(aDependentLib);
 #endif
+  char lib[MAXPATHLEN];
+  if (realpath(aDependentLib, lib))
+      aDependentLib = lib;
   LibHandleType libHandle = GetLibHandle(aDependentLib);
   if (libHandle) {
     AppendDependentLib(libHandle);