Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Aug 2020 19:28:27 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r364461 - stable/12/sbin/ipfw
Message-ID:  <202008211928.07LJSR4O079386@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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, " ");
 		}
 	}
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202008211928.07LJSR4O079386>