summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorthomas <thomas@FreeBSD.org>2003-02-21 19:02:31 +0000
committerthomas <thomas@FreeBSD.org>2003-02-21 19:02:31 +0000
commit59150e3451a3ae85d335a192498a8c9c804b8447 (patch)
tree68c90e79ca9bc7889d5d192e5001a90d7ce35765 /usr.sbin
parent02e550fabbccfb3ee4ca8b767f672f042bce9239 (diff)
downloadFreeBSD-src-59150e3451a3ae85d335a192498a8c9c804b8447.zip
FreeBSD-src-59150e3451a3ae85d335a192498a8c9c804b8447.tar.gz
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
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/syslogd/syslogd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c
index 92d1605..55a3572 100644
--- a/usr.sbin/syslogd/syslogd.c
+++ b/usr.sbin/syslogd/syslogd.c
@@ -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++;
}
OpenPOWER on IntegriCloud