changeset 4716:4fdd1a44e846

Merge
author asaha
date Mon, 27 Jun 2011 12:35:31 -0700
parents 446b13a08aca d32b75c73389
children 3e42f7893861
files
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/windows/classes/java/lang/ProcessImpl.java	Mon Jun 27 12:30:30 2011 -0700
+++ b/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(