Re: [PATCH iptables v1] iptables-restore/save: exit when given an unknown option

2017-04-13 Thread Pablo Neira Ayuso
On Mon, Apr 03, 2017 at 08:49:18PM +0200, Vincent Bernat wrote: > When an unknown option is given, iptables-restore should exit instead of > continue its operation. For example, if `--table` was misspelled, this > could lead to an unwanted change. Moreover, exit with a status code of > 1. Make the

[PATCH iptables v1] iptables-restore/save: exit when given an unknown option

2017-04-03 Thread Vincent Bernat
When an unknown option is given, iptables-restore should exit instead of continue its operation. For example, if `--table` was misspelled, this could lead to an unwanted change. Moreover, exit with a status code of 1. Make the same change for iptables-save. OTOH, exit with a status code of 0 when