Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/rtadvd When sending log messages to stderr, append ...



details:   https://anonhg.NetBSD.org/src/rev/dc909a89df98
branches:  trunk
changeset: 357742:dc909a89df98
user:      kre <kre%NetBSD.org@localhost>
date:      Sat Nov 25 02:37:04 2017 +0000

description:
When sending log messages to stderr, append the \n that syslog does not need.

diffstat:

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

diffs (17 lines):

diff -r efec61bc6862 -r dc909a89df98 usr.sbin/rtadvd/rtadvd.c
--- a/usr.sbin/rtadvd/rtadvd.c  Fri Nov 24 23:42:36 2017 +0000
+++ b/usr.sbin/rtadvd/rtadvd.c  Sat Nov 25 02:37:04 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rtadvd.c,v 1.58 2017/11/06 19:12:23 joerg Exp $        */
+/*     $NetBSD: rtadvd.c,v 1.59 2017/11/25 02:37:04 kre Exp $  */
 /*     $KAME: rtadvd.c,v 1.92 2005/10/17 14:40:02 suz Exp $    */
 
 /*
@@ -1864,6 +1864,7 @@
                buf[cur] = '\0';
        }
        strlcat(buf, fmt, len);
+       strlcat(buf, "\n", len); /* syslog does not need \n, printf does */
        return buf;
 }
 



Home | Main Index | Thread Index | Old Index