This repository has been archived on 2026-01-16. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
abrt-addon-python3/0144-cli-do-not-notify-root-about-Private-Reports.patch
Matej Habrnal 69165ba9cc Introduce abrt-addon-python3 package
Signed-off-by: Matej Habrnal <mhabrnal@redhat.com>
2017-07-04 09:22:28 +02:00

30 lines
962 B
Diff

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