Blame SOURCES/firewalld-0.4.4.6-doc-firewall-cmd-Document-query-options-return-codes.patch

843f86
From 136d2309988f7c379f6439363b53c14404738d7a Mon Sep 17 00:00:00 2001
843f86
From: Phil Sutter <psutter@redhat.com>
843f86
Date: Thu, 14 Sep 2017 11:43:41 +0200
843f86
Subject: [PATCH 4/5] doc: firewall-cmd: Document --query-* options return
843f86
 codes
843f86
843f86
The "EXIT CODES" section didn't cover the fact that all --query-*
843f86
options return 1 if no error occurred but the query itself was not
843f86
successful.
843f86
843f86
Fixes: RHBZ#1372716
843f86
Signed-off-by: Phil Sutter <psutter@redhat.com>
843f86
---
843f86
 doc/xml/firewall-cmd.xml | 3 +++
843f86
 1 file changed, 3 insertions(+)
843f86
843f86
diff --git a/doc/xml/firewall-cmd.xml b/doc/xml/firewall-cmd.xml
843f86
index bdb5767634aaa..0b54b0be999c8 100644
843f86
--- a/doc/xml/firewall-cmd.xml
843f86
+++ b/doc/xml/firewall-cmd.xml
843f86
@@ -2281,6 +2281,9 @@ firewall-cmd --permanent --add-port=443/tcp
843f86
 	</tgroup>
843f86
       </informaltable>
843f86
     </para>
843f86
+    <para>
843f86
+      Note that return codes of <command>--query-*</command> options are special: Successful queries return 0, unsuccessful ones return 1 unless an error occurred in which case the table above applies.
843f86
+    </para>
843f86
   </refsect1>
843f86
 
843f86
   &seealso;
843f86
-- 
843f86
2.13.1
843f86