Blame SOURCES/0001-INI-sssctl-config-check-command-error-messages.patch

213fc2
From b626651847e188e89a332b8ac4bfaaa5047e1b3d Mon Sep 17 00:00:00 2001
213fc2
From: Tomas Halman <thalman@redhat.com>
213fc2
Date: Tue, 10 Dec 2019 16:30:32 +0100
213fc2
Subject: [PATCH] INI: sssctl config-check command error messages
213fc2
MIME-Version: 1.0
213fc2
Content-Type: text/plain; charset=UTF-8
213fc2
Content-Transfer-Encoding: 8bit
213fc2
213fc2
In case of parsing error sssctl config-check command does not give
213fc2
proper error messages with line number. With this patch the error
213fc2
message is printed again.
213fc2
213fc2
Resolves:
213fc2
https://pagure.io/SSSD/sssd/issue/4129
213fc2
213fc2
Reviewed-by: Michal Židek <mzidek@redhat.com>
213fc2
---
213fc2
 src/util/sss_ini.c | 1 +
213fc2
 1 file changed, 1 insertion(+)
213fc2
213fc2
diff --git a/src/util/sss_ini.c b/src/util/sss_ini.c
213fc2
index e3699805d..5d91602cd 100644
213fc2
--- a/src/util/sss_ini.c
213fc2
+++ b/src/util/sss_ini.c
213fc2
@@ -865,6 +865,7 @@ int sss_ini_read_sssd_conf(struct sss_ini *self,
213fc2
 
213fc2
     ret = sss_ini_parse(self);
213fc2
     if (ret != EOK) {
213fc2
+        sss_ini_config_print_errors(self->error_list);
213fc2
         DEBUG(SSSDBG_FATAL_FAILURE, "Failed to parse configuration.\n");
213fc2
         return ERR_INI_PARSE_FAILED;
213fc2
     }
213fc2
-- 
213fc2
2.20.1
213fc2