From c87959dccf74c67b74e86beb38cff7f2c6d9f6ad Mon Sep 17 00:00:00 2001 From: manu Date: Thu, 13 Jul 2017 08:26:29 +0000 Subject: [PATCH] Fix route and netstat -r output when built with -DSMALL A missing \n caused the routing table to be printed all in one line if -DSMALL was used. --- sbin/route/rtutil.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sbin/route/rtutil.c b/sbin/route/rtutil.c index f846f154cd6c..595c063fee2a 100644 --- a/sbin/route/rtutil.c +++ b/sbin/route/rtutil.c @@ -1,4 +1,4 @@ -/* $NetBSD: rtutil.c,v 1.9 2017/06/28 04:14:53 ozaki-r Exp $ */ +/* $NetBSD: rtutil.c,v 1.10 2017/07/13 08:26:29 manu Exp $ */ /* $OpenBSD: show.c,v 1.1 2006/05/27 19:16:37 claudio Exp $ */ /* @@ -304,6 +304,8 @@ p_rtentry(struct rt_msghdr *rtm, int flags, int interesting) putchar('\n'); if (flags & RT_VFLAG) p_rtrmx(&rtm->rtm_rmx); +#else + putchar('\n'); #endif }