Load dependent libraries with their real path
authorChristoph Goehre <chris@sigxcpu.org>
Mon, 16 Sep 2013 18:40:57 +0000 (20:40 +0200)
committerCarsten Schoenert <c.schoenert@t-online.de>
Thu, 13 Oct 2022 14:09:50 +0000 (15:09 +0100)
Gbp-Pq: Topic fixes
Gbp-Pq: Name Load-dependent-libraries-with-their-real-path.patch

xpcom/glue/standalone/nsXPCOMGlue.cpp

index 2ed70cfa05d99541c69a16ac686b33cf3db6226b..d6abc2fd006cdcf14b69f73de13cf58e299e7802 100644 (file)
@@ -144,6 +144,9 @@ static ReadDependentCBResult ReadDependentCB(
     ReadAheadLib(aDependentLib);
   }
 #endif
+  char lib[MAXPATHLEN];
+  if (realpath(aDependentLib, lib))
+      aDependentLib = lib;
   LibHandleType libHandle;
   MOZ_TRY_VAR(libHandle, GetLibHandle(aDependentLib));