diff options
author | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-01-05 03:41:49 (GMT) |
---|---|---|
committer | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-01-05 03:41:49 (GMT) |
commit | aaaed3a6a08206d2d16665695a622a48da869eaf (patch) | |
tree | ff54106ef2ad3b9f9a3220ed0e4251d76627b904 /abs/extra-testing/xulrunner/fix-mozilla-launcher.patch | |
parent | 7f42f55d022dc8ca818a76dccfc66fce7c8dea4f (diff) | |
download | linhes_pkgbuild-aaaed3a6a08206d2d16665695a622a48da869eaf.zip linhes_pkgbuild-aaaed3a6a08206d2d16665695a622a48da869eaf.tar.gz linhes_pkgbuild-aaaed3a6a08206d2d16665695a622a48da869eaf.tar.bz2 |
Additional packages needed for Miro. Latest LIRC PKGBUILD from Arch.
Diffstat (limited to 'abs/extra-testing/xulrunner/fix-mozilla-launcher.patch')
-rw-r--r-- | abs/extra-testing/xulrunner/fix-mozilla-launcher.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/abs/extra-testing/xulrunner/fix-mozilla-launcher.patch b/abs/extra-testing/xulrunner/fix-mozilla-launcher.patch new file mode 100644 index 0000000..de64e4c --- /dev/null +++ b/abs/extra-testing/xulrunner/fix-mozilla-launcher.patch @@ -0,0 +1,23 @@ +--- xulrunner/stub/nsXULStub.cpp 2008-07-17 21:43:11.000000000 +0200 ++++ xulrunner/stub/nsXULStub.cpp 2008-07-17 21:47:04.000000000 +0200 +@@ -208,8 +208,10 @@ + // 3) give up + + struct stat fileStat; ++ char *testp; + +- if (!realpath(argv[0], iniPath) || stat(iniPath, &fileStat)) { ++ testp = realpath(argv[0], iniPath); ++ if (!(testp != NULL && stat(iniPath, &fileStat) == 0 && S_ISREG(fileStat.st_mode) && fileStat.st_mode & S_IXUSR) || (testp != NULL && stat(iniPath, &fileStat))) { + const char *path = getenv("PATH"); + if (!path) + return 1; +@@ -222,7 +224,7 @@ + char *token = strtok(pathdup, ":"); + while (token) { + sprintf(tmpPath, "%s/%s", token, argv[0]); +- if (realpath(tmpPath, iniPath) && stat(iniPath, &fileStat) == 0) { ++ if (realpath(tmpPath, iniPath) && stat(iniPath, &fileStat) == 0 && S_ISREG(fileStat.st_mode) && fileStat.st_mode & S_IXUSR) { + found = PR_TRUE; + break; + } |