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>
This commit is contained in:
David Malone 2004-05-30 10:34:58 +00:00
parent 2c8aff0a04
commit 2b1071b296
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=129867

View File

@ -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];
}