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

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