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/0011-applet-don-t-notify-missing-ignored_problems-file.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

29 lines
995 B
Diff

From 85913f428fc4195dc26e1789c44985be718b2c7a Mon Sep 17 00:00:00 2001
From: Jakub Filak <jfilak@redhat.com>
Date: Thu, 16 Jan 2014 10:54:27 +0100
Subject: [ABRT PATCH 11/12] applet: don't notify missing ignored_problems file
Closes rhbz#1054291
Signed-off-by: Jakub Filak <jfilak@redhat.com>
---
src/lib/ignored_problems.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/lib/ignored_problems.c b/src/lib/ignored_problems.c
index 7ea84b4..df138d8 100644
--- a/src/lib/ignored_problems.c
+++ b/src/lib/ignored_problems.c
@@ -97,7 +97,8 @@ static bool ignored_problems_file_contains(ignored_problems_t *set,
FILE *fp = fopen(set->ign_set_file_path, mode);
if (!fp)
{
- pwarn_msg("Can't open ignored problems '%s' in mode '%s'", set->ign_set_file_path, mode);
+ if (errno != ENOENT)
+ pwarn_msg("Can't open ignored problems '%s' in mode '%s'", set->ign_set_file_path, mode);
goto ret_contains_end;
}
--
1.8.3.1