arrfab / rpms / abrt

Forked from rpms/abrt 5 years ago
Clone

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

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