diff options
author | Gary Benson <gbenson@redhat.com> | 2006-07-18 11:23:39 +0000 |
---|---|---|
committer | Gary Benson <gary@gcc.gnu.org> | 2006-07-18 11:23:39 +0000 |
commit | 834c81642ad78338ac7048f4c183dc582bf7ca11 (patch) | |
tree | 9071ce4c10322f1d37059a1e6af2ba810b520215 | |
parent | 12050e44231e61cf3cf595deb7b828e8fa197cd7 (diff) | |
download | gcc-834c81642ad78338ac7048f4c183dc582bf7ca11.zip gcc-834c81642ad78338ac7048f4c183dc582bf7ca11.tar.gz gcc-834c81642ad78338ac7048f4c183dc582bf7ca11.tar.bz2 |
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
-rw-r--r-- | libjava/ChangeLog | 4 | ||||
-rw-r--r-- | libjava/java/io/File.java | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 667eeae..8d04595 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -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 diff --git a/libjava/java/io/File.java b/libjava/java/io/File.java index ed1ca94..33776ab 100644 --- a/libjava/java/io/File.java +++ b/libjava/java/io/File.java @@ -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); } |