6740833: krb5.conf does not accept kdc=hostname (no spaces around =)
Reviewed-by: xuelei
--- a/jdk/src/share/classes/sun/security/krb5/Config.java Fri Sep 05 00:43:26 2008 -0700
+++ b/jdk/src/share/classes/sun/security/krb5/Config.java Mon Sep 08 14:17:22 2008 +0800
@@ -803,7 +803,7 @@
for (int j = 0; j < line.length(); j++) {
if (line.charAt(j) == '=') {
int index;
- key = line.substring(0, j - 1).trim();
+ key = line.substring(0, j).trim();
if (! exists(key, keyVector)) {
keyVector.addElement(key);
nameVector = new Vector<String> ();