Commit 834c8164 by Gary Benson Committed by Gary Benson

File.java (deleteOnExit): Fix security check.

2006-07-18  Gary Benson  <gbenson@redhat.com>

	* java/io/File.java (deleteOnExit): Fix security check.

From-SVN: r115551
parent 12050e44
2006-07-18 Gary Benson <gbenson@redhat.com>
* java/io/File.java (deleteOnExit): Fix security check.
2006-07-14 Anthony Green <green@redhat.com> 2006-07-14 Anthony Green <green@redhat.com>
* java/io/natFilePosix.cc (performSetLastModified): Return true on * java/io/natFilePosix.cc (performSetLastModified): Return true on
......
...@@ -1388,7 +1388,7 @@ public class File implements Serializable, Comparable ...@@ -1388,7 +1388,7 @@ public class File implements Serializable, Comparable
// Check the SecurityManager // Check the SecurityManager
SecurityManager sm = System.getSecurityManager(); SecurityManager sm = System.getSecurityManager();
if (sm != null) if (sm != null)
sm.checkDelete (getName()); sm.checkDelete (getPath());
DeleteFileHelper.add(this); DeleteFileHelper.add(this);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment