]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
ebtables: Align line number formatting with legacy
authorPhil Sutter <phil@nwl.cc>
Tue, 21 Nov 2023 21:58:47 +0000 (22:58 +0100)
committerPhil Sutter <phil@nwl.cc>
Thu, 23 Nov 2023 16:59:42 +0000 (17:59 +0100)
Legacy ebtables appends a dot to the number printed in first column if
--Ln flag was given.

Fixes: da871de2a6efb ("nft: bootstrap ebtables-compat")
Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/nft-bridge.c

index 772525e1b45a9c3683c11853e975f4869966167d..1fcdeaf2cad682b11c2a64aef93371237ee80d43 100644 (file)
@@ -354,7 +354,7 @@ static void nft_bridge_print_rule(struct nft_handle *h, struct nftnl_rule *r,
        struct iptables_command_state cs = {};
 
        if (format & FMT_LINENUMBERS)
-               printf("%d ", num);
+               printf("%d. ", num);
 
        nft_rule_to_ebtables_command_state(h, r, &cs);
        __nft_bridge_save_rule(&cs, format);