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
This commit is contained in:
Gary Benson 2006-07-18 11:23:39 +00:00 committed by Gary Benson
parent 12050e4423
commit 834c81642a
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2006-07-18 Gary Benson <gbenson@redhat.com>
* java/io/File.java (deleteOnExit): Fix security check.
2006-07-14 Anthony Green <green@redhat.com>
* java/io/natFilePosix.cc (performSetLastModified): Return true on

View File

@ -1388,7 +1388,7 @@ public class File implements Serializable, Comparable
// Check the SecurityManager
SecurityManager sm = System.getSecurityManager();
if (sm != null)
sm.checkDelete (getName());
sm.checkDelete (getPath());
DeleteFileHelper.add(this);
}