diff options
Diffstat (limited to 'src/login/logind-dbus.c')
-rw-r--r-- | src/login/logind-dbus.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/login/logind-dbus.c b/src/login/logind-dbus.c index 7706c408e..f9d0b1c9f 100644 --- a/src/login/logind-dbus.c +++ b/src/login/logind-dbus.c @@ -2367,6 +2367,7 @@ static int method_can_shutdown_or_sleep( const char *target; target = manager_target_for_action(handle); +#if 0 /// elogind does not support systemd units units. A valid handle is enough if (target) { _cleanup_free_ char *load_state = NULL; @@ -2375,9 +2376,14 @@ static int method_can_shutdown_or_sleep( return r; if (!streq(load_state, "loaded")) { +#else + if (NULL == target) { +#endif // 0 result = "no"; goto finish; +#if 0 /// one less with elogind... } +#endif // 0 } } |