Blame SOURCES/0002-_adcli_call_external_program-silence-noisy-debug-mes.patch

48b328
From 8cc4ef1cae7d4d753f2cf9aeb8021dd96cb75d36 Mon Sep 17 00:00:00 2001
48b328
From: Sumit Bose <sbose@redhat.com>
48b328
Date: Wed, 8 Aug 2018 12:17:18 +0200
48b328
Subject: [PATCH 2/4] _adcli_call_external_program: silence noisy debug message
48b328
48b328
---
48b328
 library/adutil.c | 2 +-
48b328
 1 file changed, 1 insertion(+), 1 deletion(-)
48b328
48b328
diff --git a/library/adutil.c b/library/adutil.c
48b328
index 6334b52..17d2caa 100644
48b328
--- a/library/adutil.c
48b328
+++ b/library/adutil.c
48b328
@@ -672,7 +672,7 @@ done:
48b328
 		if (wret == -1) {
48b328
 			_adcli_err ("No sure what happend to net command.");
48b328
 		} else {
48b328
-			if (WIFEXITED (status)) {
48b328
+			if (WIFEXITED (status) && WEXITSTATUS (status) != 0) {
48b328
 				_adcli_err ("net command failed with %d.",
48b328
 				            WEXITSTATUS (status));
48b328
 			}
48b328
-- 
48b328
2.17.1
48b328