Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Jul 2018 13:50:01 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r336304 - stable/11/usr.sbin/syslogd
Message-ID:  <201807151350.w6FDo1Dq075982@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201807151350.w6FDo1Dq075982>