Date: Fri, 27 Nov 2015 03:48:02 +0000 (UTC) From: Hajimu UMEMOTO <ume@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r291381 - stable/10/usr.bin/netstat Message-ID: <201511270348.tAR3m2k5068569@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ume Date: Fri Nov 27 03:48:02 2015 New Revision: 291381 URL: https://svnweb.freebsd.org/changeset/base/291381 Log: MFC r291097: Don't truncate an interface name when -W option is specified. Modified: stable/10/usr.bin/netstat/route.c Directory Properties: stable/10/ (props changed) Modified: stable/10/usr.bin/netstat/route.c ============================================================================== --- stable/10/usr.bin/netstat/route.c Fri Nov 27 01:45:40 2015 (r291380) +++ stable/10/usr.bin/netstat/route.c Fri Nov 27 03:48:02 2015 (r291381) @@ -664,7 +664,10 @@ p_rtentry_sysctl(struct rt_msghdr *rtm) strlcpy(prettyname, "---", sizeof(prettyname)); } - printf("%*.*s", wid_if, wid_if, prettyname); + if (Wflag) + printf("%*s", wid_if, prettyname); + else + printf("%*.*s", wid_if, wid_if, prettyname); if (rtm->rtm_rmx.rmx_expire) { time_t expire_time;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201511270348.tAR3m2k5068569>