diff options
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/syslogd/syslogd.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c index 1b4334e30cd..2fc4cfb0b22 100644 --- a/usr.sbin/syslogd/syslogd.c +++ b/usr.sbin/syslogd/syslogd.c @@ -1022,6 +1022,12 @@ cfline(line, f) if (*buf == '*') pri = LOG_PRIMASK + 1; else { + /* ignore trailing spaces */ + int i; + for (i=strlen(buf)-1; i >= 0 && buf[i] == ' '; i--) { + buf[i]='\0'; + } + pri = decode(buf, prioritynames); if (pri < 0) { (void)snprintf(ebuf, sizeof ebuf, |