Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | xtables: Make 'iptables -S nonexisting' return non-zero | Phil Sutter | 2018-08-16 | 1 | -0/+64 |
To be consistent with legacy iptables, calling -S with a non-existing chain should lead to an error message. This is how some scripts find out whether a user-defined chain exists or not. Make sure doing the same for an existing chain does succeed, even if an invalid rule number was given. Signed-off-by: Phil Sutter <phil@nwl.cc> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> |