DORMANTno replies REVIEWED: 1 (0M)

1 review trailer.

[PATCH] netfilter: ipset: print out warnings generated by commands

From: Vishwanath Pai <hidden>
Date: 2017-03-22 02:07:26
Also in: netfilter-devel
Subsystem: the rest · Maintainer: Linus Torvalds

Warnings are only printed out for IPSET_CMD_TEST. The user won't see
warnings from other commands.

Reviewed-by: Josh Hunt <redacted>
Signed-off-by: Vishwanath Pai <redacted>
---
 src/ipset.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/ipset.c b/src/ipset.c
index 2c4fa10..b0bef7b 100644
--- a/src/ipset.c
+++ b/src/ipset.c
@@ -812,8 +812,8 @@ parse_commandline(int argc, char *argv[])
 			"Unknown argument %s", argv[1]);
 	ret = ipset_cmd(session, cmd, restore_line);
 	D("ret %d", ret);
-	/* Special case for TEST and non-quiet mode */
-	if (cmd == IPSET_CMD_TEST && ipset_session_warning(session)) {
+
+	if (ipset_session_warning(session)) {
 		if (!ipset_envopt_test(session, IPSET_ENV_QUIET))
 			fprintf(stderr, "%s", ipset_session_warning(session));
 		ipset_session_report_reset(session);
-- 
1.9.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help