]> git.ipfire.org Git - thirdparty/iptables.git/commit
ebtables: Use xtables_exit_err()
authorPhil Sutter <phil@nwl.cc>
Fri, 23 Nov 2018 14:32:53 +0000 (15:32 +0100)
committerFlorian Westphal <fw@strlen.de>
Fri, 23 Nov 2018 14:53:38 +0000 (15:53 +0100)
commit2ed6c85f8743a83d2b302bf6bd8d16b5efa3bb14
treed708e964ad67641d65a2e6d300e3b42703c46014
parentb0466ae6fbc0a93b69591171c54aa79063e23f3d
ebtables: Use xtables_exit_err()

When e.g. ebtables-nft detects an incompatible table, a stray '.' was
printed as last line of output:

| # ebtables-nft -L
| table `filter' is incompatible, use 'nft' tool.
| .

This comes from ebtables' own exit_err callback. Instead use the common
one which also provides useful version information.

While being at it, align the final error message in xtables_eb_main()
with how the others print it.

Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/xtables-eb-standalone.c
iptables/xtables-eb.c