mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-27 18:55:09 +03:00
dbus: properly encode job type
This commit is contained in:
parent
501c7d0b77
commit
2b53c70b64
@ -180,7 +180,7 @@ DBusHandlerResult bus_manager_message_handler(DBusConnection *connection, DBusM
|
|||||||
goto oom;
|
goto oom;
|
||||||
}
|
}
|
||||||
|
|
||||||
job_type = job_type_to_string(u->meta.job->state);
|
job_type = job_type_to_string(u->meta.job->type);
|
||||||
} else {
|
} else {
|
||||||
job_id = 0;
|
job_id = 0;
|
||||||
job_path = unit_path;
|
job_path = unit_path;
|
||||||
@ -237,7 +237,7 @@ DBusHandlerResult bus_manager_message_handler(DBusConnection *connection, DBusM
|
|||||||
id = (uint32_t) j->id;
|
id = (uint32_t) j->id;
|
||||||
unit = unit_id(j->unit);
|
unit = unit_id(j->unit);
|
||||||
state = job_state_to_string(j->state);
|
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)))
|
if (!(job_path = job_dbus_path(j)))
|
||||||
goto oom;
|
goto oom;
|
||||||
|
Loading…
Reference in New Issue
Block a user