Blame SOURCES/0322-hooks-ccpp-Honor-CreateCoreBacktrace.patch

06486d
From 9a5e0f22341e7461f5ec956291ff37dbc0d1f402 Mon Sep 17 00:00:00 2001
06486d
From: Ernestas Kulik <ekulik@redhat.com>
06486d
Date: Fri, 15 Feb 2019 09:48:52 +0100
06486d
Subject: [PATCH] hooks: ccpp: Honor CreateCoreBacktrace
06486d
06486d
Starting with 4f1770991a3b5da7dadd4c4e9b1a48c7d96f6808,
06486d
the CreateCoreBacktrace setting is no longer honored, as the setting
06486d
variable is assigned a value from an unrelated setting due to a thinko.
06486d
06486d
Fixes BZ#1677476
06486d
06486d
Signed-off-by: Ernestas Kulik <ekulik@redhat.com>
06486d
---
06486d
 src/hooks/abrt-hook-ccpp.c | 2 +-
06486d
 1 file changed, 1 insertion(+), 1 deletion(-)
06486d
06486d
diff --git a/src/hooks/abrt-hook-ccpp.c b/src/hooks/abrt-hook-ccpp.c
06486d
index ca4b61bf..60722ff8 100644
06486d
--- a/src/hooks/abrt-hook-ccpp.c
06486d
+++ b/src/hooks/abrt-hook-ccpp.c
06486d
@@ -867,6 +867,7 @@ int main(int argc, char** argv)
06486d
         value = get_map_string_item_or_NULL(settings, "SaveFullCore");
06486d
         setting_SaveFullCore = value ? string_to_bool(value) : true;
06486d
         value = get_map_string_item_or_NULL(settings, "CreateCoreBacktrace");
06486d
+        setting_CreateCoreBacktrace = value ? string_to_bool(value) : true;
06486d
         value = get_map_string_item_or_NULL(settings, "IgnoredPaths");
06486d
         if (value)
06486d
             setting_ignored_paths = parse_list(value);
06486d
@@ -890,7 +891,6 @@ int main(int argc, char** argv)
06486d
                 setting_MaxCoreFileSize = ul;
06486d
         }
06486d
 
06486d
-        setting_CreateCoreBacktrace = value ? string_to_bool(value) : true;
06486d
         value = get_map_string_item_or_NULL(settings, "VerboseLog");
06486d
         if (value)
06486d
             g_verbose = xatoi_positive(value);
06486d
-- 
06486d
2.21.0
06486d