arrfab / rpms / abrt

Forked from rpms/abrt 5 years ago
Clone

Blame SOURCES/0142-cli-warn-users-about-Private-Reports.patch

baab13
From 287977c966225108008effbe7eeae1d454836386 Mon Sep 17 00:00:00 2001
baab13
From: Jakub Filak <jfilak@redhat.com>
baab13
Date: Thu, 2 Jul 2015 15:34:38 +0200
baab13
Subject: [PATCH] cli: warn users about Private Reports
baab13
baab13
We should not make '--authenticate' default but we must inform users
baab13
about it.
baab13
baab13
Related: #1224984
baab13
baab13
Signed-off-by: Jakub Filak <jfilak@redhat.com>
baab13
---
baab13
 src/cli/abrt-cli.c | 2 ++
baab13
 1 file changed, 2 insertions(+)
baab13
baab13
diff --git a/src/cli/abrt-cli.c b/src/cli/abrt-cli.c
baab13
index f45523e..2e9e155 100644
baab13
--- a/src/cli/abrt-cli.c
baab13
+++ b/src/cli/abrt-cli.c
baab13
@@ -149,6 +149,8 @@ int main(int argc, const char **argv)
baab13
     {
baab13
         if (g_cli_authenticate)
baab13
             initialize_polkit_agent();
baab13
+        else if (g_settings_privatereports)
baab13
+            log(_("Private Reports is enabled, use 'abrt-cli -a COMMAND' to get the detected problems."));
baab13
 
baab13
         handle_internal_command(argc, argv, commands);
baab13
 
baab13
-- 
baab13
2.4.3
baab13