diff options
author | Ed Maste <emaste@FreeBSD.org> | 2020-08-17 18:53:23 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2020-08-17 18:53:23 +0000 |
commit | c1b355d378f73028c1f897b77088679f72b39644 (patch) | |
tree | e6fdfa20426eebb4aca2541fb7614278862c2ab6 /sbin | |
parent | e2ec07432d3910661450534042396ce433e5d537 (diff) | |
download | src-c1b355d378f73028c1f897b77088679f72b39644.tar.gz src-c1b355d378f73028c1f897b77088679f72b39644.zip |
ipfw: line up `ipfw -t list` with and without timestamp
From the PR:
When I run `ipfw -t list` on release/12 or current, I get misaligned
output between lines that do and do not have a last match timestamp,
like so:
00100 Tue Aug 11 03:03:26 2020 allow ip from any to any via lo0
00200 deny ip from any to 127.0.0.0/8
(specifically, the "allow" and "deny" strings do not line up)
PR: 248608
Submitted by: Taylor Stearns
MFC after: 3 days
Notes
Notes:
svn path=/head/; revision=364321
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/ipfw/ipfw2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/ipfw/ipfw2.c b/sbin/ipfw/ipfw2.c index 830b35d2f723..e0b5371adb91 100644 --- a/sbin/ipfw/ipfw2.c +++ b/sbin/ipfw/ipfw2.c @@ -2199,7 +2199,7 @@ show_static_rule(struct cmdline_opts *co, struct format_opts *fo, *strchr(timestr, '\n') = '\0'; bprintf(bp, "%s ", timestr); } else { - bprintf(bp, "%*s", twidth, " "); + bprintf(bp, "%*s", twidth + 1, " "); } } |