SOURCES: seamonkey-glueload-fix.patch (NEW) - fix realpath() call
sparky
sparky at pld-linux.org
Tue Sep 23 22:18:02 CEST 2008
Author: sparky Date: Tue Sep 23 20:18:02 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- fix realpath() call
---- Files affected:
SOURCES:
seamonkey-glueload-fix.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/seamonkey-glueload-fix.patch
diff -u /dev/null SOURCES/seamonkey-glueload-fix.patch:1.1
--- /dev/null Tue Sep 23 22:18:03 2008
+++ SOURCES/seamonkey-glueload-fix.patch Tue Sep 23 22:17:56 2008
@@ -0,0 +1,21 @@
+--- seamonkey-1.1.11/mozilla/xpcom/glue/standalone/nsGlueLinkingDlopen.cpp 2006-02-22 22:57:09.000000000 +0100
++++ seamonkey-1.1.11/mozilla/xpcom/glue/standalone/nsGlueLinkingDlopen.cpp.fixed 2008-09-23 21:15:21.000000000 +0200
+@@ -86,8 +86,8 @@
+ GetFrozenFunctionsFunc
+ XPCOMGlueLoad(const char *xpcomFile)
+ {
+- char xpcomDir[MAXPATHLEN];
+- if (realpath(xpcomFile, xpcomDir)) {
++ char * xpcomDir;
++ if (xpcomDir = realpath(xpcomFile, NULL)) {
+ char *lastSlash = strrchr(xpcomDir, '/');
+ if (lastSlash) {
+ *lastSlash = '\0';
+@@ -98,6 +98,7 @@
+
+ sXULLibHandle = dlopen(xpcomDir, RTLD_GLOBAL | RTLD_LAZY);
+ }
++ free( xpcomDir );
+ }
+
+ // RTLD_DEFAULT is not defined in non-GNU toolchains, and it is
================================================================
More information about the pld-cvs-commit
mailing list