diff options
author | Sven Eden <yamakuzure@gmx.net> | 2018-08-30 08:35:32 +0200 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2018-08-30 08:35:32 +0200 |
commit | 1c540d7e5fda3dae36dc36887cce2d5a914c5481 (patch) | |
tree | c79ee858c327208564896ce3fecc21d366a3bd20 /src/login/logind-dbus.c | |
parent | 564def2927f3ca556724d4777ce29bb59304f28c (diff) |
Prep v239: Only _HANDLE_ACTION_INVALID makes method_can_shutdown_or_sleep() answer 'no'
Diffstat (limited to 'src/login/logind-dbus.c')
-rw-r--r-- | src/login/logind-dbus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login/logind-dbus.c b/src/login/logind-dbus.c index 5178dd847..e75fb023b 100644 --- a/src/login/logind-dbus.c +++ b/src/login/logind-dbus.c @@ -2385,7 +2385,7 @@ static int method_can_shutdown_or_sleep( } } #else - if ( (handle <= HANDLE_IGNORE) || (handle >= _HANDLE_ACTION_MAX) ) { + if ( _HANDLE_ACTION_INVALID == handle ) { result = "no"; goto finish; } |