chiark / gitweb /
Prep v239: Only _HANDLE_ACTION_INVALID makes method_can_shutdown_or_sleep() answer...
authorSven Eden <yamakuzure@gmx.net>
Thu, 30 Aug 2018 06:35:32 +0000 (08:35 +0200)
committerSven Eden <yamakuzure@gmx.net>
Thu, 30 Aug 2018 06:35:32 +0000 (08:35 +0200)
src/login/logind-dbus.c

index 5178dd8477f1476f5f0151e8b3568d905df1540c..e75fb023b2de7fb456d14a4cb07e3e75185c2eb9 100644 (file)
@@ -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;
         }