diff options
| author | Denys Vlasenko <dvlasenk@redhat.com> | 2011-04-08 12:32:37 +0200 |
|---|---|---|
| committer | Denys Vlasenko <dvlasenk@redhat.com> | 2011-04-08 12:32:37 +0200 |
| commit | 11cda4235472caaa1fc015897ee4372a782555f5 (patch) | |
| tree | e0fc5fd532e547c86950390272489fdca7ce8187 /src/plugins | |
| parent | 19aa760f333cf93230acddcbb4c5a482df57a9d1 (diff) | |
| download | abrt-11cda4235472caaa1fc015897ee4372a782555f5.tar.gz abrt-11cda4235472caaa1fc015897ee4372a782555f5.tar.xz abrt-11cda4235472caaa1fc015897ee4372a782555f5.zip | |
kerneloops, mailx, rhtsupport: add a line to "reported_to" element on success
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'src/plugins')
| -rw-r--r-- | src/plugins/abrt-action-kerneloops.c | 9 | ||||
| -rw-r--r-- | src/plugins/abrt-action-mailx.c | 8 | ||||
| -rw-r--r-- | src/plugins/abrt-action-rhtsupport.c | 9 |
3 files changed, 26 insertions, 0 deletions
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); } |
