Blame SOURCES/0023-nft-Fix-for-non-verbose-check-command.patch

ff4a6b
From 5b88835a68a886f58c230599a82a6588f6fc5214 Mon Sep 17 00:00:00 2001
ff4a6b
From: Phil Sutter <phil@nwl.cc>
ff4a6b
Date: Tue, 3 Aug 2021 10:55:20 +0200
ff4a6b
Subject: [PATCH] nft: Fix for non-verbose check command
ff4a6b
ff4a6b
Check command was unconditionally verbose since v1.8.5. Make it respect
ff4a6b
--verbose option again.
ff4a6b
ff4a6b
Fixes: a7f1e208cdf9c ("nft: split parsing from netlink commands")
ff4a6b
Signed-off-by: Phil Sutter <phil@nwl.cc>
ff4a6b
(cherry picked from commit 57d1422dbbc41c36ed2e9f6c67aa040c65a429a0)
ff4a6b
---
ff4a6b
 iptables/nft.c | 2 +-
ff4a6b
 1 file changed, 1 insertion(+), 1 deletion(-)
ff4a6b
ff4a6b
diff --git a/iptables/nft.c b/iptables/nft.c
ff4a6b
index 83054e528cae1..a470939db54fb 100644
ff4a6b
--- a/iptables/nft.c
ff4a6b
+++ b/iptables/nft.c
ff4a6b
@@ -3126,7 +3126,7 @@ static int nft_prepare(struct nft_handle *h)
ff4a6b
 		case NFT_COMPAT_RULE_CHECK:
ff4a6b
 			assert_chain_exists(h, cmd->table, cmd->jumpto);
ff4a6b
 			ret = nft_rule_check(h, cmd->chain, cmd->table,
ff4a6b
-					     cmd->obj.rule, cmd->rulenum);
ff4a6b
+					     cmd->obj.rule, cmd->verbose);
ff4a6b
 			break;
ff4a6b
 		case NFT_COMPAT_RULE_ZERO:
ff4a6b
 			ret = nft_rule_zero_counters(h, cmd->chain, cmd->table,
ff4a6b
-- 
ff4a6b
2.33.0
ff4a6b