summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Eden <yamakuzure@gmx.net>2018-08-30 08:35:32 +0200
committerSven Eden <yamakuzure@gmx.net>2018-08-30 08:35:32 +0200
commit1c540d7e5fda3dae36dc36887cce2d5a914c5481 (patch)
treec79ee858c327208564896ce3fecc21d366a3bd20
parent564def2927f3ca556724d4777ce29bb59304f28c (diff)
Prep v239: Only _HANDLE_ACTION_INVALID makes method_can_shutdown_or_sleep() answer 'no'
-rw-r--r--src/login/logind-dbus.c2
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;
}