Hostnames are case-insensitive

This commit is contained in:
Brian Somers 2000-12-22 15:21:06 +00:00
parent d8c616aedc
commit 3b93c7437b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=70272

View File

@ -366,7 +366,8 @@ main(argc, argv)
p = hp->h_name;
p += strlen(hp->h_name);
p -= strlen(domain);
if (p > hp->h_name && strcmp(p, domain) == 0)
if (p > hp->h_name &&
strcasecmp(p, domain) == 0)
*p = '\0';
}
p = hp->h_name;