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
2 changed files with 6 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue