summaryrefslogtreecommitdiffstats
path: root/iptables/tests/shell/testcases/ip6tables/0003-list-rules_0
Commit message (Collapse)AuthorAgeFilesLines
* xtables: Make 'iptables -S nonexisting' return non-zeroPhil Sutter2018-08-161-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>