[ABRT PATCH] mark the problem as not reportable if FILENAME_TYPE is missing - rhbz#958968

Jiri Moskovcak jmoskovc at redhat.com
Wed Aug 21 11:02:21 UTC 2013


Signed-off-by: Jiri Moskovcak <jmoskovc at redhat.com>
---
 src/daemon/abrtd.c | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/src/daemon/abrtd.c b/src/daemon/abrtd.c
index 2af55a5..b7010f9 100644
--- a/src/daemon/abrtd.c
+++ b/src/daemon/abrtd.c
@@ -570,9 +570,16 @@ static void mark_unprocessed_dump_dirs_not_reportable(const char *path)
         struct dump_dir *dd = dd_opendir(full_name, /*flags*/0);
         if (dd)
         {
-            if (!dd_exist(dd, FILENAME_COUNT) && !dd_exist(dd, FILENAME_NOT_REPORTABLE))
+            if (!dd_exist(dd, FILENAME_NOT_REPORTABLE))
             {
-                log("Marking '%s' not reportable (no '"FILENAME_COUNT"' item)", full_name);
+                if (!dd_exist(dd, FILENAME_COUNT))
+                {
+                    log(_("Marking '%s' not reportable (no '"FILENAME_COUNT"' item)"), full_name);
+                }
+                if (!dd_exist(dd, FILENAME_TYPE))  //this should help with rhbz#958968
+                {
+                    log(_("Marking '%s' not reportable (no '"FILENAME_TYPE"' item)"), full_name);
+                }
 
                 dd_save_text(dd, FILENAME_NOT_REPORTABLE, _("The problem data are "
                             "incomplete. This usually happens when a problem "
-- 
1.8.3.1



More information about the Crash-catcher mailing list