Package: sblim-wbemcli / 1.6.3-2

Report-failure-in-the-exit-code.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
From: =?utf-8?q?Ferenc_W=C3=A1gner?= <wferi@debian.org>
Date: Sun, 25 Dec 2016 17:15:31 +0100
Subject: Report failure in the exit code

---
 main.cpp             | 2 +-
 man/wbemcli.1.pre.in | 5 +++++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/main.cpp b/main.cpp
index 8a4c832..06a8081 100644
--- a/main.cpp
+++ b/main.cpp
@@ -653,5 +653,5 @@ fini:
    // These needs to be called once
    curl_global_cleanup();
 #endif
-   return 0;
+   return retval;
 }
diff --git a/man/wbemcli.1.pre.in b/man/wbemcli.1.pre.in
index f4e406b..989035a 100644
--- a/man/wbemcli.1.pre.in
+++ b/man/wbemcli.1.pre.in
@@ -564,6 +564,11 @@ The example in the previous section can then be specified as:
 .TP
 .I @CACERT@
 The default CA certificate file. Can be overridden with \-cacert.
+.SH EXIT CODES
+.IP 0
+Normal termination.
+.IP 16
+Abnormal termination, see diagnostics printed to the standard error.
 .SH AUTHOR
 Adrian Schuur <schuur@de.ibm.com>
 .SH BUGS