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

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