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

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