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

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