chiark / gitweb /
core: properly pass unit file state to clients via the bus
[elogind.git] / src / core / dbus-unit.c
index cc09a268c9d0d8cc4cbc436ad5395ee936f5cfea..b9680099384b951a64a5c34761ba2a42126f0a4c 100644 (file)
@@ -26,7 +26,7 @@
 #include "strv.h"
 #include "path-util.h"
 #include "fileio.h"
-#include "bus-errors.h"
+#include "bus-common-errors.h"
 #include "dbus.h"
 #include "dbus-manager.h"
 #include "dbus-unit.h"
@@ -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(