041177be2c
- Resolves: #741255
33 lines
965 B
Diff
33 lines
965 B
Diff
From dcecc5b0c7384075cdd060efbcf80157f59bd4f5 Mon Sep 17 00:00:00 2001
|
|
From: Jakub Filak <jfilak@redhat.com>
|
|
Date: Tue, 14 Aug 2012 16:51:35 +0200
|
|
Subject: [LIBREPORT PATCH 18/19] trac#678: reporter-bugzilla: do not attach
|
|
empty files
|
|
|
|
Signed-off-by: Jakub Filak <jfilak@redhat.com>
|
|
---
|
|
src/plugins/rhbz.c | 7 +++++++
|
|
1 file changed, 7 insertions(+)
|
|
|
|
diff --git a/src/plugins/rhbz.c b/src/plugins/rhbz.c
|
|
index 9c9ea34..b1c6b76 100644
|
|
--- a/src/plugins/rhbz.c
|
|
+++ b/src/plugins/rhbz.c
|
|
@@ -841,6 +841,13 @@ int rhbz_attach_files(struct abrt_xmlrpc *ax, const char *bug_id,
|
|
if (is_in_string_list(name, (char**)g_not_attached_files))
|
|
continue;
|
|
|
|
+ /* Skip empty files */
|
|
+ if (strlen(value->content) == 0)
|
|
+ {
|
|
+ log(_("Not attaching empty file '%s'"), name);
|
|
+ continue;
|
|
+ }
|
|
+
|
|
if (value->flags & CD_FLAG_TXT)
|
|
{
|
|
const char *content = value->content;
|
|
--
|
|
1.7.11.2
|
|
|