Don't truncate an interface name when -W option is specified.
Spotted by: Jim Thompson <jim__at__netgate.com> MFC after: 1 week
This commit is contained in:
@@ -385,7 +385,11 @@ p_rtentry_sysctl(const char *name, struct rt_msghdr *rtm)
|
|||||||
strlcpy(prettyname, "---", sizeof(prettyname));
|
strlcpy(prettyname, "---", sizeof(prettyname));
|
||||||
}
|
}
|
||||||
|
|
||||||
xo_emit("{t:interface-name/%*.*s}", wid_if, wid_if, prettyname);
|
if (Wflag)
|
||||||
|
xo_emit("{t:interface-name/%*s}", wid_if, prettyname);
|
||||||
|
else
|
||||||
|
xo_emit("{t:interface-name/%*.*s}", wid_if, wid_if,
|
||||||
|
prettyname);
|
||||||
if (rtm->rtm_rmx.rmx_expire) {
|
if (rtm->rtm_rmx.rmx_expire) {
|
||||||
time_t expire_time;
|
time_t expire_time;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user