svn commit: r364461 - stable/12/sbin/ipfw

Ed Maste emaste at FreeBSD.org
Fri Aug 21 19:28:27 UTC 2020


Author: emaste
Date: Fri Aug 21 19:28:26 2020
New Revision: 364461
URL: https://svnweb.freebsd.org/changeset/base/364461

Log:
  MFC r364321: 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

Modified:
  stable/12/sbin/ipfw/ipfw2.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sbin/ipfw/ipfw2.c
==============================================================================
--- stable/12/sbin/ipfw/ipfw2.c	Fri Aug 21 18:31:57 2020	(r364460)
+++ stable/12/sbin/ipfw/ipfw2.c	Fri Aug 21 19:28:26 2020	(r364461)
@@ -2188,7 +2188,7 @@ show_static_rule(struct cmdline_opts *co, struct forma
 			*strchr(timestr, '\n') = '\0';
 			bprintf(bp, "%s ", timestr);
 		} else {
-			bprintf(bp, "%*s", twidth, " ");
+			bprintf(bp, "%*s", twidth + 1, " ");
 		}
 	}
 


More information about the svn-src-all mailing list