libreport/0034-problem_data-make-ks.cfg-file-editable.patch
2014-11-28 10:20:20 +01:00

46 lines
1.4 KiB
Diff

From a26eed565ac3fe0282e7fbff5a9a446d51a5ed32 Mon Sep 17 00:00:00 2001
From: Jakub Filak <jfilak@redhat.com>
Date: Thu, 6 Nov 2014 06:43:42 +0100
Subject: [PATCH] problem_data: make ks.cfg file editable
Otherwise the GUI will not highlight the forbidden words in that file.
Related to #1041558
Signed-off-by: Jakub Filak <jfilak@redhat.com>
---
src/include/internal_libreport.h | 4 ++++
src/lib/problem_data.c | 1 +
2 files changed, 5 insertions(+)
diff --git a/src/include/internal_libreport.h b/src/include/internal_libreport.h
index 585b807..2e75de0 100644
--- a/src/include/internal_libreport.h
+++ b/src/include/internal_libreport.h
@@ -910,6 +910,10 @@ struct dump_dir *open_directory_for_writing(
#define FILENAME_ABRT_VERSION "abrt_version"
#define FILENAME_EXPLOITABLE "exploitable"
+/* File names related to Anaconda problems
+ */
+#define FILENAME_KICKSTART_CFG "ks.cfg"
+
// Not stored as files, added "on the fly":
#define CD_DUMPDIR "Directory"
diff --git a/src/lib/problem_data.c b/src/lib/problem_data.c
index fc07288..c095f6c 100644
--- a/src/lib/problem_data.c
+++ b/src/lib/problem_data.c
@@ -261,6 +261,7 @@ static const char *const editable_files[] = {
//FILENAME_COUNT ,
//FILENAME_REPORTED_TO,
//FILENAME_EVENT_LOG ,
+ FILENAME_KICKSTART_CFG,
NULL
};
static bool is_editable_file(const char *file_name)
--
2.1.0