diff options
author | thomas <thomas@FreeBSD.org> | 2003-02-21 19:02:31 +0000 |
---|---|---|
committer | thomas <thomas@FreeBSD.org> | 2003-02-21 19:02:31 +0000 |
commit | 59150e3451a3ae85d335a192498a8c9c804b8447 (patch) | |
tree | 68c90e79ca9bc7889d5d192e5001a90d7ce35765 /usr.sbin | |
parent | 02e550fabbccfb3ee4ca8b767f672f042bce9239 (diff) | |
download | FreeBSD-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.c | 3 |
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++; } |