Hostname specifications must allow commas in the value. They are

used to separate multiple host names.

Noted by:	Dan Nelson <dnelson@allantgroup.com>
Reviewed by:	roberto
This commit is contained in:
Thomas Quinot 2003-02-21 19:02:31 +00:00
parent 2c6b49f6af
commit f3a9f7841a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=111221

View File

@ -1487,7 +1487,8 @@ init(int signo)
if (*p == '@')
p = LocalHostName;
for (i = 1; i < MAXHOSTNAMELEN - 1; i++) {
if (!isalnum(*p) && *p != '.' && *p != '-')
if (!isalnum(*p) && *p != '.' && *p != '-'
&& *p != ',')
break;
host[i] = *p++;
}