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

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