From f3a9f7841ac1f85f324fc989eba07a2d4e672ef2 Mon Sep 17 00:00:00 2001 From: Thomas Quinot Date: Fri, 21 Feb 2003 19:02:31 +0000 Subject: [PATCH] Hostname specifications must allow commas in the value. They are used to separate multiple host names. Noted by: Dan Nelson Reviewed by: roberto --- usr.sbin/syslogd/syslogd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c index 92d1605c2a27..55a3572bb010 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++; }