From 11cda4235472caaa1fc015897ee4372a782555f5 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Fri, 8 Apr 2011 12:32:37 +0200 Subject: kerneloops, mailx, rhtsupport: add a line to "reported_to" element on success Signed-off-by: Denys Vlasenko --- src/plugins/abrt-action-kerneloops.c | 9 +++++++++ src/plugins/abrt-action-mailx.c | 8 ++++++++ src/plugins/abrt-action-rhtsupport.c | 9 +++++++++ 3 files changed, 26 insertions(+) (limited to 'src/plugins') diff --git a/src/plugins/abrt-action-kerneloops.c b/src/plugins/abrt-action-kerneloops.c index 5d46d157..e9d3a574 100644 --- a/src/plugins/abrt-action-kerneloops.c +++ b/src/plugins/abrt-action-kerneloops.c @@ -115,6 +115,15 @@ static void report_to_kerneloops( * RemoteIP: 34192fd15e34bf60fac6a5f01bba04ddbd3f0558 * - no URL or bug ID apparently... */ + dd = dd_opendir(dump_dir_name, /*flags:*/ 0); + if (dd) + { + char *msg = xasprintf("kerneloops: URL=%s", submitURL); + add_reported_to(dd, msg); + free(msg); + dd_close(dd); + } + log("Kernel oops report was uploaded"); } diff --git a/src/plugins/abrt-action-mailx.c b/src/plugins/abrt-action-mailx.c index 5b5a377e..2efaad5c 100644 --- a/src/plugins/abrt-action-mailx.c +++ b/src/plugins/abrt-action-mailx.c @@ -118,6 +118,14 @@ static void create_and_send_email( free_crash_data(crash_data); + dd = dd_opendir(dump_dir_name, /*flags:*/ 0); + if (dd) + { + char *msg = xasprintf("email: %s", email_to); + add_reported_to(dd, msg); + free(msg); + dd_close(dd); + } log("Email was sent to: %s", email_to); } diff --git a/src/plugins/abrt-action-rhtsupport.c b/src/plugins/abrt-action-rhtsupport.c index 233b607f..df698ff0 100644 --- a/src/plugins/abrt-action-rhtsupport.c +++ b/src/plugins/abrt-action-rhtsupport.c @@ -226,7 +226,16 @@ static void report_to_rhtsupport( /* Use sanitized string as error message */ error_msg_and_die("%s", result); } + /* No error */ + dd = dd_opendir(dump_dir_name, /*flags:*/ 0); + if (dd) + { + char *msg = xasprintf("RHTSupport: %s", result); + add_reported_to(dd, msg); + free(msg); + dd_close(dd); + } log("%s", result); free(result); } -- cgit