mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-08 05:58:38 +00:00
Merge
This commit is contained in:
commit
63f2c9dfc8
@ -60,10 +60,11 @@ final class ProcessImpl extends Process {
|
||||
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(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user