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
@ -1120,7 +1120,7 @@ parsemsg_rfc3164_app_name_procid(char **msg, const char **app_name,
|
|||||||
"abcdefghijklmnopqrstuvwxyz"
|
"abcdefghijklmnopqrstuvwxyz"
|
||||||
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
||||||
"0123456789"
|
"0123456789"
|
||||||
"_-");
|
"_-/");
|
||||||
if (app_name_length == 0)
|
if (app_name_length == 0)
|
||||||
goto bad;
|
goto bad;
|
||||||
m += app_name_length;
|
m += app_name_length;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user