--- a/jdk/src/windows/classes/java/lang/ProcessImpl.java Mon Jun 27 12:30:30 2011 -0700
+++ b/jdk/src/windows/classes/java/lang/ProcessImpl.java Mon Jun 27 12:35:31 2011 -0700
@@ -60,10 +60,11 @@
throws IOException
{
if (append) {
+ String path = f.getPath();
SecurityManager sm = System.getSecurityManager();
if (sm != null)
- sm.checkWrite(f.getPath());
- long handle = openForAtomicAppend(f.getPath());
+ sm.checkWrite(path);
+ long handle = openForAtomicAppend(path);
final FileDescriptor fd = new FileDescriptor();
fdAccess.setHandle(fd, handle);
return AccessController.doPrivileged(