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

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