]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
Revert "main: Fix for misleading error with negative chain priority"
authorPhil Sutter <phil@nwl.cc>
Wed, 23 Oct 2019 11:27:25 +0000 (13:27 +0200)
committerPhil Sutter <phil@nwl.cc>
Wed, 23 Oct 2019 12:17:14 +0000 (14:17 +0200)
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 <phil@nwl.cc>
src/main.c
tests/shell/testcases/chains/0039negative_priority_0 [deleted file]

index ebd6d7c322d70ec4911026d76a6b5b22e3887334..952d5432ae007f4f54e388b5f857e6ce8def104d 100644 (file)
@@ -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 (executable)
index ba17b8c..0000000
+++ /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\; }