arrfab / rpms / abrt

Forked from rpms/abrt 5 years ago
Clone

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

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