mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-23 01:30:29 +08:00
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:
parent
12050e4423
commit
834c81642a
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user