Commit c80a4b7e by Casey Marshall Committed by Michael Koch

2004-09-24 Casey Marshall <csm@gnu.org>

	* java/util/PropertyPermissionCollection.java
	(implies): avoid infinite loop.

From-SVN: r88033
parent 54e075fe
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) + '*';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment