From: Lennart Poettering Date: Wed, 3 Feb 2010 11:39:44 +0000 (+0100) Subject: dbus: properly encode job type X-Git-Tag: v1~726 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=2b53c70b6429868029048244b8d21769148375e1 dbus: properly encode job type --- diff --git a/dbus-manager.c b/dbus-manager.c index 3ccf8de65..32d074502 100644 --- a/dbus-manager.c +++ b/dbus-manager.c @@ -180,7 +180,7 @@ DBusHandlerResult bus_manager_message_handler(DBusConnection *connection, DBusM goto oom; } - job_type = job_type_to_string(u->meta.job->state); + job_type = job_type_to_string(u->meta.job->type); } else { job_id = 0; job_path = unit_path; @@ -237,7 +237,7 @@ DBusHandlerResult bus_manager_message_handler(DBusConnection *connection, DBusM id = (uint32_t) j->id; unit = unit_id(j->unit); state = job_state_to_string(j->state); - type = job_type_to_string(j->state); + type = job_type_to_string(j->type); if (!(job_path = job_dbus_path(j))) goto oom;