Allow the use of slashes in process names of RFC 3164 formatted messages.

Tools such as Postfix use slashes in process names for hierarchy
(postfix/qmgr). By allowing these slashes, syslogd is able to extract
the process name and process ID nicely, so that they can be stored in
RFC 5424 message fields.

MFC after:	1 week
This commit is contained in:
Ed Schouten 2018-07-07 11:53:39 +00:00
parent c556884f8e
commit 066a4ba169
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=336060

View File

@ -1120,7 +1120,7 @@ parsemsg_rfc3164_app_name_procid(char **msg, const char **app_name,
"abcdefghijklmnopqrstuvwxyz"
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"0123456789"
"_-");
"_-/");
if (app_name_length == 0)
goto bad;
m += app_name_length;