mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 12:28:58 +00:00
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:
parent
2c6b49f6af
commit
f3a9f7841a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=111221
@ -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++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user