41 lines
1.3 KiB
Diff
41 lines
1.3 KiB
Diff
|
From ac9f6625886d5eb283335d88b45f4bdfccf8a226 Mon Sep 17 00:00:00 2001
|
||
|
From: Jakub Filak <jfilak@redhat.com>
|
||
|
Date: Wed, 8 Aug 2012 18:23:52 +0200
|
||
|
Subject: [PATCH 08/10] trac#660: report-cli asks for premission to send
|
||
|
sensitive data
|
||
|
|
||
|
* if the currently process event has configured 'sending-sensitive-data'
|
||
|
report-cli asks for permission to continue with processing of the
|
||
|
event
|
||
|
|
||
|
Signed-off-by: Jakub Filak <jfilak@redhat.com>
|
||
|
---
|
||
|
src/cli/cli-report.c | 11 +++++++++++
|
||
|
1 file changed, 11 insertions(+)
|
||
|
|
||
|
diff --git a/src/cli/cli-report.c b/src/cli/cli-report.c
|
||
|
index 77ae34a..2f988fa 100644
|
||
|
--- a/src/cli/cli-report.c
|
||
|
+++ b/src/cli/cli-report.c
|
||
|
@@ -1003,6 +1003,17 @@ int run_events_chain(const char *dump_dir_name, GList *chain)
|
||
|
|
||
|
if (config)
|
||
|
{
|
||
|
+ if (config->ec_sending_sensitive_data)
|
||
|
+ {
|
||
|
+ char *msg = xasprintf(_("Event '%s' requires permision to send possibly sensitive data."
|
||
|
+ " Do you want to continue?"),
|
||
|
+ config->screen_name ? config->screen_name : event);
|
||
|
+ const bool response = ask_yesno(msg);
|
||
|
+ free(msg);
|
||
|
+ if (!response)
|
||
|
+ break;
|
||
|
+ }
|
||
|
+
|
||
|
/* can't fail */
|
||
|
ask_for_missing_settings(event);
|
||
|
|
||
|
--
|
||
|
1.7.11.2
|
||
|
|