]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
xshared: do_parse: Skip option checking for CMD_DELETE_NUM
authorPhil Sutter <phil@nwl.cc>
Fri, 24 Nov 2023 19:54:28 +0000 (20:54 +0100)
committerPhil Sutter <phil@nwl.cc>
Tue, 5 Dec 2023 15:35:37 +0000 (16:35 +0100)
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 <phil@nwl.cc>
iptables/xshared.c

index dca744773d773bb798aa5a6defd8332ee2b07ec6..53e6720169950f4e3cd3675639f747ea507f872d 100644 (file)
@@ -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) {