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>
Thu, 12 Aug 2021 18:17:02 +0000 (19:17 +0100)
Gbp-Pq: Topic fixes
Gbp-Pq: Name Load-dependent-libraries-with-their-real-path-to-avo.patch

xpcom/glue/standalone/nsXPCOMGlue.cpp

index cf8e2659215e7337cbb85060bb916ae5607dd09f..d1c5a85873d964a35901a76c97dc89b4640c0412 100644 (file)
@@ -132,6 +132,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);