ishcherb / rpms / abrt

Forked from rpms/abrt 6 years ago
Clone
1c0fa8c
From ca73b680ee3deaf3f5a476056848969c3433a537 Mon Sep 17 00:00:00 2001
1c0fa8c
From: Matej Habrnal <mhabrnal@redhat.com>
1c0fa8c
Date: Tue, 11 Aug 2015 16:17:40 +0200
1c0fa8c
Subject: [PATCH] ccpp: fix comment related to 'MakeCompatCore' option in
1c0fa8c
 CCpp.conf
1c0fa8c
1c0fa8c
The comment fits only on the default core_pattern template.
1c0fa8c
If the core_pattern is not default, the comment does not fit.
1c0fa8c
1c0fa8c
Related to rhbz#1252384
1c0fa8c
1c0fa8c
Signed-off-by: Matej Habrnal <mhabrnal@redhat.com>
1c0fa8c
---
1c0fa8c
 doc/abrt-CCpp.conf.txt | 9 +++++++--
1c0fa8c
 src/hooks/CCpp.conf    | 9 +++++++--
1c0fa8c
 2 files changed, 14 insertions(+), 4 deletions(-)
1c0fa8c
1c0fa8c
diff --git a/doc/abrt-CCpp.conf.txt b/doc/abrt-CCpp.conf.txt
1c0fa8c
index 498d53d..cf9b213 100644
1c0fa8c
--- a/doc/abrt-CCpp.conf.txt
1c0fa8c
+++ b/doc/abrt-CCpp.conf.txt
1c0fa8c
@@ -11,8 +11,13 @@ The configuration file consists of items in the format "Option = Value".
1c0fa8c
 Ithe following items are recognized:
1c0fa8c
 
1c0fa8c
 MakeCompatCore = 'yes' / 'no' ...::
1c0fa8c
-   If you also want to dump file named "core"
1c0fa8c
-   in crashed process' current dir, set to "yes".
1c0fa8c
+   CCpp hook writes its template to the "/proc/sys/kernel/core_pattern" file
1c0fa8c
+   and stores the original template in the "/var/run/abrt/saved_core_pattern"
1c0fa8c
+   file. If you want CCpp hook to create a core dump file named according to
1c0fa8c
+   the original template as well, set 'MakeCompatCore' to 'yes'.
1c0fa8c
+   If the original template string starts with "|", the string "core" is used
1c0fa8c
+   instead of the template.
1c0fa8c
+   For more information about naming core dump files see 'man 5 core'.
1c0fa8c
 
1c0fa8c
 SaveBinaryImage = 'yes' / 'no' ...::
1c0fa8c
    Do you want a copy of crashed binary be saved?
1c0fa8c
diff --git a/src/hooks/CCpp.conf b/src/hooks/CCpp.conf
1c0fa8c
index b1a0a22..b92b830 100644
1c0fa8c
--- a/src/hooks/CCpp.conf
1c0fa8c
+++ b/src/hooks/CCpp.conf
1c0fa8c
@@ -1,7 +1,12 @@
1c0fa8c
 # Configuration file for CCpp hook
1c0fa8c
 
1c0fa8c
-# If you also want to dump file named "core"
1c0fa8c
-# in crashed process' current dir, set to "yes"
1c0fa8c
+# CCpp hook writes its template to the "/proc/sys/kernel/core_pattern" file
1c0fa8c
+# and stores the original template in the "/var/run/abrt/saved_core_pattern"
1c0fa8c
+# file. If you want CCpp hook to create a core dump file named according to
1c0fa8c
+# the original template as well, set 'MakeCompatCore' to 'yes'.
1c0fa8c
+# If the original template string starts with "|", the string "core" is used
1c0fa8c
+# instead of the template.
1c0fa8c
+# For more information about naming core dump files see 'man 5 core'.
1c0fa8c
 MakeCompatCore = yes
1c0fa8c
 
1c0fa8c
 # Do you want a copy of crashed binary be saved?
1c0fa8c
-- 
1c0fa8c
2.4.3
1c0fa8c