Blame SOURCES/0312-cli-load-config-file-at-the-beginning.patch

06486d
From 079ca6cf8774ce4b510daa9423a3785007c6c1d7 Mon Sep 17 00:00:00 2001
06486d
From: Matej Habrnal <mhabrnal@redhat.com>
06486d
Date: Mon, 17 Sep 2018 16:16:23 +0200
06486d
Subject: [PATCH] cli: load config file at the beginning
06486d
06486d
Resolves: #1618818
06486d
06486d
Signed-off-by: Matej Habrnal <mhabrnal@redhat.com>
06486d
---
06486d
 src/cli/abrt-cli.c | 1 +
06486d
 src/cli/list.c     | 1 -
06486d
 src/cli/report.c   | 1 -
06486d
 3 files changed, 1 insertion(+), 2 deletions(-)
06486d
06486d
diff --git a/src/cli/abrt-cli.c b/src/cli/abrt-cli.c
06486d
index 360e4757e..6660923d4 100644
06486d
--- a/src/cli/abrt-cli.c
06486d
+++ b/src/cli/abrt-cli.c
06486d
@@ -122,6 +122,7 @@ int main(int argc, const char **argv)
06486d
 #endif
06486d
 
06486d
     abrt_init((char **)argv);
06486d
+    load_abrt_conf();
06486d
 
06486d
     argv++;
06486d
     argc--;
06486d
diff --git a/src/cli/list.c b/src/cli/list.c
06486d
index e688d2f49..5af42fb01 100644
06486d
--- a/src/cli/list.c
06486d
+++ b/src/cli/list.c
06486d
@@ -206,7 +206,6 @@ int cmd_list(int argc, const char **argv)
06486d
     free_vector_of_problem_data(ci);
06486d
 
06486d
 #if SUGGEST_AUTOREPORTING != 0
06486d
-    load_abrt_conf();
06486d
     if (!g_settings_autoreporting)
06486d
     {
06486d
         if (output)
06486d
diff --git a/src/cli/report.c b/src/cli/report.c
06486d
index a76923f22..c98d8cbf8 100644
06486d
--- a/src/cli/report.c
06486d
+++ b/src/cli/report.c
06486d
@@ -116,7 +116,6 @@ int cmd_report(int argc, const char **argv)
06486d
 
06486d
     export_abrt_envvars(/*prog_prefix:*/ 0);
06486d
 
06486d
-    load_abrt_conf();
06486d
     free_abrt_conf_data();
06486d
 
06486d
     int report_flags = 0;
06486d
-- 
06486d
2.17.2
06486d