changeset 583:bcb61dfc8514

6740833: krb5.conf does not accept kdc=hostname (no spaces around =) Reviewed-by: xuelei
author weijun
date Mon, 08 Sep 2008 14:17:22 +0800
parents d276b0716d13
children b0378bb50d83
files src/share/classes/sun/security/krb5/Config.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/security/krb5/Config.java	Fri Sep 05 00:43:26 2008 -0700
+++ b/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> ();