Blame SOURCES/0144-cli-do-not-notify-root-about-Private-Reports.patch

baab13
From c8973dcbf5048369f8e69bed23f4417cc0aba8cf Mon Sep 17 00:00:00 2001
baab13
From: Jakub Filak <jfilak@redhat.com>
baab13
Date: Wed, 8 Jul 2015 15:52:42 +0200
baab13
Subject: [PATCH] cli: do not notify root about Private Reports
baab13
baab13
The root user already sees all detected problems.
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, 1 insertion(+), 1 deletion(-)
baab13
baab13
diff --git a/src/cli/abrt-cli.c b/src/cli/abrt-cli.c
baab13
index 2e9e155..360e475 100644
baab13
--- a/src/cli/abrt-cli.c
baab13
+++ b/src/cli/abrt-cli.c
baab13
@@ -149,7 +149,7 @@ int main(int argc, const char **argv)
baab13
     {
baab13
         if (g_cli_authenticate)
baab13
             initialize_polkit_agent();
baab13
-        else if (g_settings_privatereports)
baab13
+        else if (geteuid() != 0 && 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
2.4.3
baab13