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>
Fri, 22 May 2020 17:04:20 +0000 (18:04 +0100)
Gbp-Pq: Topic fixes
Gbp-Pq: Name Load-dependent-libraries-with-their-real-path-to-avo.patch

xpcom/glue/standalone/nsXPCOMGlue.cpp

index ffb3d9c7fddc63092305e6bd64375c7c3eb26505..77ead8d3774bbb7406f114d21546421fd43a1786 100644 (file)
@@ -133,6 +133,9 @@ static bool ReadDependentCB(pathstr_t aDependentLib,
     ReadAheadLib(aDependentLib);
   }
 #endif
+  char lib[MAXPATHLEN];
+  if (realpath(aDependentLib, lib))
+      aDependentLib = lib;
   LibHandleType libHandle = GetLibHandle(aDependentLib);
   if (libHandle) {
     AppendDependentLib(libHandle);