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

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