mirror of
https://github.com/systemd/systemd.git
synced 2025-01-11 09:18:07 +03:00
core: properly pass unit file state to clients via the bus
This commit is contained in:
parent
b9f08b1ff4
commit
764458325e
@ -207,7 +207,7 @@ static int property_get_unit_file_state(
|
||||
assert(reply);
|
||||
assert(u);
|
||||
|
||||
return sd_bus_message_append(reply, "s", unit_file_state_to_string(unit_get_unit_file_preset(u)));
|
||||
return sd_bus_message_append(reply, "s", unit_file_state_to_string(unit_get_unit_file_state(u)));
|
||||
}
|
||||
|
||||
static int property_get_can_start(
|
||||
|
@ -538,7 +538,6 @@ static int find_symlinks_in_scope(
|
||||
assert(scope < _UNIT_FILE_SCOPE_MAX);
|
||||
assert(name);
|
||||
|
||||
|
||||
/* First look in runtime config path */
|
||||
r = get_config_path(scope, true, root_dir, &path);
|
||||
if (r < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user