Title: [130566] trunk/Source/WebKit2
- Revision
- 130566
- Author
- [email protected]
- Date
- 2012-10-05 15:59:41 -0700 (Fri, 05 Oct 2012)
Log Message
Set the current working directory to TMPDIR when entering the sandbox in the plug-in process.
Based on a patch by Ivan Krstić.
Reviewed by Anders Carlsson.
* WebProcess/Plugins/Netscape/mac/NetscapeSandboxFunctions.mm:
(enterSandbox):
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (130565 => 130566)
--- trunk/Source/WebKit2/ChangeLog 2012-10-05 22:56:38 UTC (rev 130565)
+++ trunk/Source/WebKit2/ChangeLog 2012-10-05 22:59:41 UTC (rev 130566)
@@ -1,3 +1,13 @@
+2012-10-05 Sam Weinig <[email protected]>
+
+ Set the current working directory to TMPDIR when entering the sandbox in the plug-in process.
+ Based on a patch by Ivan Krstić.
+
+ Reviewed by Anders Carlsson.
+
+ * WebProcess/Plugins/Netscape/mac/NetscapeSandboxFunctions.mm:
+ (enterSandbox):
+
2012-10-05 Tim Horton <[email protected]>
[cg] GraphicsContextCG should ask CG whether the shadow offset workaround is required
Modified: trunk/Source/WebKit2/WebProcess/Plugins/Netscape/mac/NetscapeSandboxFunctions.mm (130565 => 130566)
--- trunk/Source/WebKit2/WebProcess/Plugins/Netscape/mac/NetscapeSandboxFunctions.mm 2012-10-05 22:56:38 UTC (rev 130565)
+++ trunk/Source/WebKit2/WebProcess/Plugins/Netscape/mac/NetscapeSandboxFunctions.mm 2012-10-05 22:59:41 UTC (rev 130566)
@@ -109,6 +109,10 @@
exit(EX_NOPERM);
}
setenv("TMPDIR", temporaryDirectory, 1);
+ if (chdir(temporaryDirectory) == -1) {
+ WTFLogAlways("PluginProcess: couldn't change working directory to temporary path: %s, errno %d\n", temporaryDirectory, errno);
+ exit(EX_OSERR);
+ }
#endif
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes