From afb30fe1502e9c45b722da3b5c09e292d589aa7f Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 4 Mar 2010 16:19:31 +0100 Subject: *: UID:UUID -> crash_id conversion This fixes at least three instances where we did not check whether user is even allowed to report or delete a crash. Also fixes a few cases when root might inadvertently act on (e.g. delete) mote than one crash. Renamed FILENAME_UID to CD_UID - makes more sense this way. Added COL_INFORMALL and CD_INFORMALL. Nuked UID == -1 hacks. Renamed getReport() to start_job on Python side. Dropped a few unused parameters from server -> client dbus signals. Fixed CLI's way of reverencing crashes (see updated help text). Run-tested (GUI and CLI). Signed-off-by: Denys Vlasenko Acked-by: Nikola Pajkovsky --- src/CLI/report.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/CLI/report.cpp') diff --git a/src/CLI/report.cpp b/src/CLI/report.cpp index 41ac6c2..68df2d7 100644 --- a/src/CLI/report.cpp +++ b/src/CLI/report.cpp @@ -523,11 +523,11 @@ static void get_reporter_plugin_settings(map_map_string_t &settings, bool ask_us } } -/* Reports the crash with corresponding uuid over DBus. */ -int report(const char *uuid, bool always) +/* Reports the crash with corresponding crash_id over DBus. */ +int report(const char *crash_id, bool always) { // Ask for an initial report. - map_crash_data_t cr = call_CreateReport(uuid); + map_crash_data_t cr = call_CreateReport(crash_id); if (cr.size() == 0) { return -1; -- cgit