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