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