# HG changeset patch # User Richard M. Stallman # Date 766097440 0 # Node ID 1f45c2d4ff2ca65ce1f8328a869d411f39f7d6e8 # Parent 2594f541e694f59bfcd1641abd84433b594e7f2d Comment change. diff -r 2594f541e694 -r 1f45c2d4ff2c src/sysdep.c --- a/src/sysdep.c Mon Apr 11 20:40:58 1994 +0000 +++ b/src/sysdep.c Mon Apr 11 20:50:40 1994 +0000 @@ -2009,6 +2009,8 @@ if (hp) { char *fqdn = hp->h_name; + char *p; + if (!index (fqdn, '.')) { /* We still don't have a fully qualified domain name. @@ -2021,6 +2023,18 @@ } hostname = (char *) xrealloc (hostname, strlen (fqdn) + 1); strcpy (hostname, fqdn); +#if 0 + /* Convert the host name to lower case. */ + /* Using ctype.h here would introduce a possible locale + dependence that is probably wrong for hostnames. */ + p = hostname + while (*p) + { + if (*p >= 'A' && *p <= 'Z') + *p += 'a' - 'A'; + p++; + } +#endif } } #endif /* HAVE_SOCKETS */