2004-09-24 Casey Marshall <csm@gnu.org>
* java/util/PropertyPermissionCollection.java (implies): avoid infinite loop. From-SVN: r88033
This commit is contained in:
parent
54e075fe1e
commit
c80a4b7eec
@ -1,3 +1,8 @@
|
||||
2004-09-24 Casey Marshall <csm@gnu.org>
|
||||
|
||||
* java/util/PropertyPermissionCollection.java
|
||||
(implies): avoid infinite loop.
|
||||
|
||||
2004-09-24 Andrew John Hughes <gnu_andrew@member.fsf.org>
|
||||
|
||||
* javax/security/auth/PrivateCredentialPermission.java
|
||||
|
@ -147,7 +147,7 @@ class PropertyPermissionCollection extends PermissionCollection
|
||||
return true;
|
||||
}
|
||||
|
||||
prefixLength = name.lastIndexOf('.', prefixLength);
|
||||
prefixLength = name.lastIndexOf('.', prefixLength - 1);
|
||||
if (prefixLength < 0)
|
||||
return false;
|
||||
name = name.substring(0, prefixLength + 1) + '*';
|
||||
|
Loading…
Reference in New Issue
Block a user