doczkal / rpms / abrt

Forked from rpms/abrt 4 years ago
Clone

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

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