summaryrefslogtreecommitdiff
path: root/java/io
diff options
context:
space:
mode:
authorGary Benson <gbenson@redhat.com>2006-06-29 09:02:49 +0000
committerGary Benson <gbenson@redhat.com>2006-06-29 09:02:49 +0000
commitd8210adf6349ca16ba79d0969ddb55f0b828decb (patch)
tree1182aa1b934679cd1b8781c0f5567907fcfc96bb /java/io
parentea35e77296b64f57483c3f5df0647addc44fd4bb (diff)
downloadclasspath-d8210adf6349ca16ba79d0969ddb55f0b828decb.tar.gz
2006-06-29 Gary Benson <gbenson@redhat.com>
* java/io/FilePermission.java (implies): Work when path is "/".
Diffstat (limited to 'java/io')
-rw-r--r--java/io/FilePermission.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/java/io/FilePermission.java b/java/io/FilePermission.java
index 9a83efba6..0872a378b 100644
--- a/java/io/FilePermission.java
+++ b/java/io/FilePermission.java
@@ -274,12 +274,7 @@ public final class FilePermission extends Permission implements Serializable
break;
default:
- if (f2.charAt(f2.length() - 1) == File.separatorChar)
- {
- if (! f1.equals(f2.substring(0, f2.length() - 1)))
- return false;
- }
- else if (!f1.equals(f2))
+ if (!f1.equals(f2))
return false;
break;
}