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

06486d
From c8973dcbf5048369f8e69bed23f4417cc0aba8cf Mon Sep 17 00:00:00 2001
06486d
From: Jakub Filak <jfilak@redhat.com>
06486d
Date: Wed, 8 Jul 2015 15:52:42 +0200
06486d
Subject: [PATCH] cli: do not notify root about Private Reports
06486d
06486d
The root user already sees all detected problems.
06486d
06486d
Related: #1224984
06486d
06486d
Signed-off-by: Jakub Filak <jfilak@redhat.com>
06486d
---
06486d
 src/cli/abrt-cli.c | 2 +-
06486d
 1 file changed, 1 insertion(+), 1 deletion(-)
06486d
06486d
diff --git a/src/cli/abrt-cli.c b/src/cli/abrt-cli.c
06486d
index 2e9e155..360e475 100644
06486d
--- a/src/cli/abrt-cli.c
06486d
+++ b/src/cli/abrt-cli.c
06486d
@@ -149,7 +149,7 @@ int main(int argc, const char **argv)
06486d
     {
06486d
         if (g_cli_authenticate)
06486d
             initialize_polkit_agent();
06486d
-        else if (g_settings_privatereports)
06486d
+        else if (geteuid() != 0 && g_settings_privatereports)
06486d
             log(_("Private Reports is enabled, use 'abrt-cli -a COMMAND' to get the detected problems."));
06486d
 
06486d
         handle_internal_command(argc, argv, commands);
06486d
-- 
06486d
2.4.3
06486d