From 57d9995e283488eab99de3ea984c38ff6935a939 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Wed, 23 Oct 2019 13:27:25 +0200 Subject: Revert "main: Fix for misleading error with negative chain priority" This reverts commit 9fc71bc6b602c8706d1214e0100bcd7638c257e3. Given that this change breaks typical commands like 'nft list ruleset -a' while on the other hand escaping of semicolons and (depending on shell) curly braces is still required, decision was made to not go with this solution. Signed-off-by: Phil Sutter --- src/main.c | 2 +- tests/shell/testcases/chains/0039negative_priority_0 | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) delete mode 100755 tests/shell/testcases/chains/0039negative_priority_0 diff --git a/src/main.c b/src/main.c index ebd6d7c3..952d5432 100644 --- a/src/main.c +++ b/src/main.c @@ -46,7 +46,7 @@ enum opt_vals { OPT_TERSE = 't', OPT_INVALID = '?', }; -#define OPTSTRING "+hvcf:iI:jvnsNaeSupypTt" +#define OPTSTRING "hvcf:iI:jvnsNaeSupypTt" static const struct option options[] = { { diff --git a/tests/shell/testcases/chains/0039negative_priority_0 b/tests/shell/testcases/chains/0039negative_priority_0 deleted file mode 100755 index ba17b8cc..00000000 --- a/tests/shell/testcases/chains/0039negative_priority_0 +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -# Test parsing of negative priority values - -set -e - -$NFT add table t -$NFT add chain t c { type filter hook input priority -30\; } -- cgit v1.2.3