Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-7]: src/usr.sbin/syslogd Pull up following revision(s) (requested...



details:   https://anonhg.NetBSD.org/src/rev/de0f8beb1986
branches:  netbsd-7
changeset: 800349:de0f8beb1986
user:      snj <snj%NetBSD.org@localhost>
date:      Mon Oct 23 18:52:08 2017 +0000

description:
Pull up following revision(s) (requested by ginsbach in ticket #1510):
        usr.sbin/syslogd/syslogd.c: revision 1.124
Use looked up remote host for remote message without a hostname
An incoming remote message may not necessarily have a hostname
between the timestamp and the message. The the source of the remote
sender is already looked up so use that hostname/IP address rather
than the local hostname.

diffstat:

 usr.sbin/syslogd/syslogd.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 8eb75a87e3fe -r de0f8beb1986 usr.sbin/syslogd/syslogd.c
--- a/usr.sbin/syslogd/syslogd.c        Mon Oct 23 18:50:40 2017 +0000
+++ b/usr.sbin/syslogd/syslogd.c        Mon Oct 23 18:52:08 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: syslogd.c,v 1.119.4.2 2017/09/04 06:30:38 snj Exp $    */
+/*     $NetBSD: syslogd.c,v 1.119.4.3 2017/10/23 18:52:08 snj Exp $    */
 
 /*
  * Copyright (c) 1983, 1988, 1993, 1994
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)syslogd.c  8.3 (Berkeley) 4/4/94";
 #else
-__RCSID("$NetBSD: syslogd.c,v 1.119.4.2 2017/09/04 06:30:38 snj Exp $");
+__RCSID("$NetBSD: syslogd.c,v 1.119.4.3 2017/10/23 18:52:08 snj Exp $");
 #endif
 #endif /* not lint */
 
@@ -1279,7 +1279,7 @@
                } else if (*p == '[' || (*p == ':'
                        && (*(p+1) == ' ' || *(p+1) == '\0'))) {
                        /* no host in message */
-                       buffer->host = LocalFQDN;
+                       buffer->host = strdup(hname);
                        buffer->prog = strndup(start, p - start);
                        break;
                } else {



Home | Main Index | Thread Index | Old Index