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

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