From: Phil Sutter Date: Fri, 24 Nov 2023 19:54:28 +0000 (+0100) Subject: xshared: do_parse: Skip option checking for CMD_DELETE_NUM X-Git-Tag: v1.8.11~140 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=100b0d96c2852916d68b17aad198f45808191f52;p=thirdparty%2Fiptables.git xshared: do_parse: Skip option checking for CMD_DELETE_NUM This command will delete a rule by its number, not rule spec. No -i/-o options are expected on commandline. Signed-off-by: Phil Sutter --- diff --git a/iptables/xshared.c b/iptables/xshared.c index dca74477..53e67201 100644 --- a/iptables/xshared.c +++ b/iptables/xshared.c @@ -1837,7 +1837,6 @@ void do_parse(int argc, char *argv[], if (p->command == CMD_APPEND || p->command == CMD_DELETE || - p->command == CMD_DELETE_NUM || p->command == CMD_CHECK || p->command == CMD_INSERT || p->command == CMD_REPLACE) {