svn commit: r336304 - stable/11/usr.sbin/syslogd

Ed Schouten ed at FreeBSD.org
Sun Jul 15 13:50:02 UTC 2018


Author: ed
Date: Sun Jul 15 13:50:01 2018
New Revision: 336304
URL: https://svnweb.freebsd.org/changeset/base/336304

Log:
  MFC r336060:
  
    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.

Modified:
  stable/11/usr.sbin/syslogd/syslogd.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/usr.sbin/syslogd/syslogd.c
==============================================================================
--- stable/11/usr.sbin/syslogd/syslogd.c	Sun Jul 15 09:14:30 2018	(r336303)
+++ stable/11/usr.sbin/syslogd/syslogd.c	Sun Jul 15 13:50:01 2018	(r336304)
@@ -1118,7 +1118,7 @@ parsemsg_rfc3164_app_name_procid(char **msg, const cha
 	    "abcdefghijklmnopqrstuvwxyz"
 	    "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
 	    "0123456789"
-	    "_-");
+	    "_-/");
 	if (app_name_length == 0)
 		goto bad;
 	m += app_name_length;


More information about the svn-src-all mailing list