From: Lennart Poettering Date: Wed, 10 Dec 2014 18:57:45 +0000 (+0100) Subject: core: properly pass unit file state to clients via the bus X-Git-Tag: v218~11 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=764458325ef3586229137694538bcf5e8bde8c48 core: properly pass unit file state to clients via the bus --- diff --git a/src/core/dbus-unit.c b/src/core/dbus-unit.c index 0850fb3d4..b96800993 100644 --- a/src/core/dbus-unit.c +++ b/src/core/dbus-unit.c @@ -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( diff --git a/src/shared/install.c b/src/shared/install.c index 5bb338598..efbe61e87 100644 --- a/src/shared/install.c +++ b/src/shared/install.c @@ -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)