chiark / gitweb /
logind: really handle *KeyIgnoreInhibited options in logind.conf
[elogind.git] / src / login / logind-action.c
index 4070405190724bb8030d97c8651420c440cce4b3..020815409724cf898a89cba22636ceaedfff9611 100644 (file)
@@ -94,7 +94,7 @@ int manager_handle_action(
         }
 
         /* If the key handling is inhibited, don't do anything */
-        if (inhibit_key > 0) {
+        if (!ignore_inhibited && inhibit_key > 0) {
                 if (manager_is_inhibited(m, inhibit_key, INHIBIT_BLOCK, NULL, true, false, 0, NULL)) {
                         log_debug("Refusing operation, %s is inhibited.", inhibit_what_to_string(inhibit_key));
                         return 0;