Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Nov 2017 19:25:02 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r326339 - head/usr.sbin/syslogd
Message-ID:  <201711281925.vASJP2cb038341@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: glebius
Date: Tue Nov 28 19:25:01 2017
New Revision: 326339
URL: https://svnweb.freebsd.org/changeset/base/326339

Log:
  Revert r325558 as it is incorrect.

Modified:
  head/usr.sbin/syslogd/syslogd.c

Modified: head/usr.sbin/syslogd/syslogd.c
==============================================================================
--- head/usr.sbin/syslogd/syslogd.c	Tue Nov 28 19:18:00 2017	(r326338)
+++ head/usr.sbin/syslogd/syslogd.c	Tue Nov 28 19:25:01 2017	(r326339)
@@ -1035,7 +1035,7 @@ static void
 logmsg(int pri, const char *msg, const char *from, int flags)
 {
 	struct filed *f;
-	int i, j, fac, msglen, prilev;
+	int i, fac, msglen, prilev;
 	const char *timestamp;
  	char prog[NAME_MAX+1];
 	char buf[MAXLINE+1];
@@ -1077,19 +1077,6 @@ logmsg(int pri, const char *msg, const char *from, int
 		return;
 
 	prilev = LOG_PRI(pri);
-
-	/* skip hostname, see RFC 3164 */
-	for (i = 0, j = 0; i < NAME_MAX; i++) {
-		if (isspace(msg[i])) {
-			j = i + 1;
-		}
-		if (msg[i] == ':')
-			break;
-	}
-	if (j <= msglen) {
-		msg += j;
-		msglen -= j;
-	}
 
 	/* extract program name */
 	for (i = 0; i < NAME_MAX; i++) {



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