[LIBREPORT PATCH 1/3] rhbz: do not try to attach empty files
Jakub Filak
jfilak at redhat.com
Thu May 16 15:52:30 UTC 2013
Related to rhbz#958961
Signed-off-by: Jakub Filak <jfilak at 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 bd78eef..a29de38 100644
--- a/src/plugins/rhbz.c
+++ b/src/plugins/rhbz.c
@@ -656,6 +656,13 @@ int rhbz_attach_blob(struct abrt_xmlrpc *ax, const char *bug_id,
{
func_entry();
+ if (strlen(data) == 0)
+ {
+ VERB1 log("not attaching an empty file: '%s'", filename);
+ /* Return SUCCESS */
+ return 0;
+ }
+
char *fn = xasprintf("File: %s", filename);
xmlrpc_value* result;
int nomail_notify = !!IS_NOMAIL_NOTIFY(flags);
--
1.8.1.4
More information about the Crash-catcher
mailing list