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>
Sat, 20 Apr 2024 17:35:18 +0000 (19:35 +0200)
Gbp-Pq: Topic fixes
Gbp-Pq: Name Load-dependent-libraries-with-their-real-path.patch

xpcom/glue/standalone/nsXPCOMGlue.cpp

index 09edef10ee91888437f10b0ff751cee5ab736fd1..69304177adbd112ab36e21c1e4fc360c8849faab 100644 (file)
@@ -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));