diff options
author | dwmalone <dwmalone@FreeBSD.org> | 2004-05-30 10:34:58 +0000 |
---|---|---|
committer | dwmalone <dwmalone@FreeBSD.org> | 2004-05-30 10:34:58 +0000 |
commit | 9236299be5a51fc8d127080ffa5d8cd0525be508 (patch) | |
tree | 7a99d6fdbafcd21af3e14cbfcc433201a61d3233 /usr.sbin | |
parent | 6671fde294dc610fc62a914cfd817384f8313e11 (diff) | |
download | FreeBSD-src-9236299be5a51fc8d127080ffa5d8cd0525be508.zip FreeBSD-src-9236299be5a51fc8d127080ffa5d8cd0525be508.tar.gz |
Also terminate program names if we hit a '/' - this is to be slightly
more friendly to postfix log messages.
PR: 50912
Submitted by: Stanislav Lapshansky <slapsh@slapsh.pp.ru>
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 44b8795..367901c 100644 --- a/usr.sbin/syslogd/syslogd.c +++ b/usr.sbin/syslogd/syslogd.c @@ -874,7 +874,8 @@ logmsg(int pri, const char *msg, const char *from, int flags) /* extract program name */ for (i = 0; i < NAME_MAX; i++) { - if (!isprint(msg[i]) || msg[i] == ':' || msg[i] == '[') + if (!isprint(msg[i]) || msg[i] == ':' || msg[i] == '[' || + msg[i] == '/') break; prog[i] = msg[i]; } |