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

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