gratuitously tacks on a trailing period to the hostname (at least it
does in Beta2). Deal with this brain-damage.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11102
dc483132-0cff-0310-8789-
dd5450dbe970
+Tue Jan 5 00:11:49 1999 Theodore Y. Ts'o <tytso@mit.edu>
+
+ * sn2princ.c (krb5_sname_to_principal): Windows NT5's broken
+ resolver gratuitously tacks on a trailing period to the
+ hostname (at least it does in Beta2). Deal with this
+ brain-damage.
+
Tue Dec 22 01:22:24 1998 Theodore Y. Ts'o <tytso@mit.edu>
* changepw.c: Add a test for _WIN16 as well as _WIN32 for sockets
if (isupper(*cp))
*cp = tolower(*cp);
+ /*
+ * Windows NT5's broken resolver gratuitously tacks on a
+ * trailing period to the hostname (at least it does in
+ * Beta2). Find and remove it.
+ */
+ if (remote_host[0]) {
+ cp = remote_host + strlen(remote_host)-1;
+ if (*cp == '.')
+ *cp = 0;
+ }
+
+
if (retval = krb5_get_host_realm(context, remote_host, &hrealms)) {
free(remote_host);
return retval;