mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 03:49:02 +00:00
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:
parent
c556884f8e
commit
066a4ba169
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=336060
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user