diff options
author | Sven Eden <yamakuzure@gmx.net> | 2018-08-14 18:39:33 +0200 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2018-08-24 16:47:08 +0200 |
commit | 1a7523a8c73ff91109c459da6f0af2fd3585e1e7 (patch) | |
tree | 0de40838449f2e1b051669c1360f5b7f959e20fc /src/login/logind-dbus.c | |
parent | 5df5d72136c7c0b4a45a76463cb3441404f29cb4 (diff) |
Prep v239: Add missing updates that evaded migration.
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 } } |