diff options
author | Phil Sutter <phil@nwl.cc> | 2018-08-15 12:34:24 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-08-16 19:43:47 +0200 |
commit | 7bccf30750cb7ad7d56921c220a95a7781316a7b (patch) | |
tree | 98c552dd0f1cf7b40ffe42fa52eb036c5e19b3f2 /m4/ax_check_linker_flags.m4 | |
parent | 3d9a13dda3d77f750ee755aa0909519240380251 (diff) |
ebtables: Fix for listing of non-existent chains
When trying to list a non-existent chain, ebtables-nft would just print
the table header and then exit with a code of zero. In order to be more
consistent with legacy ebtables, change the code to:
* Print table header only if chosen chain is found and
* propagate the error condition if chain was not found to print an error
message.
Note that this does not establish full parity with legacy ebtables due
to the error code being 1 instead of 255 and the error message differing
from the legacy one.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'm4/ax_check_linker_flags.m4')
0 files changed, 0 insertions, 0 deletions