diff options
author | Phil Sutter <phil@nwl.cc> | 2018-11-23 15:32:53 +0100 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-11-23 15:53:38 +0100 |
commit | 2ed6c85f8743a83d2b302bf6bd8d16b5efa3bb14 (patch) | |
tree | d708e964ad67641d65a2e6d300e3b42703c46014 /iptables/xtables-eb-standalone.c | |
parent | b0466ae6fbc0a93b69591171c54aa79063e23f3d (diff) |
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>
Diffstat (limited to 'iptables/xtables-eb-standalone.c')
-rw-r--r-- | iptables/xtables-eb-standalone.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/xtables-eb-standalone.c b/iptables/xtables-eb-standalone.c index 84ce0b60..fb3daba0 100644 --- a/iptables/xtables-eb-standalone.c +++ b/iptables/xtables-eb-standalone.c @@ -54,7 +54,7 @@ int xtables_eb_main(int argc, char *argv[]) ret = nft_commit(&h); if (!ret) - fprintf(stderr, "%s\n", nft_strerror(errno)); + fprintf(stderr, "ebtables: %s\n", nft_strerror(errno)); exit(!ret); } |