chiark / gitweb /
logind: really handle *KeyIgnoreInhibited options in logind.conf
authorFranck Bui <fbui@suse.com>
Wed, 8 Jun 2016 16:08:56 +0000 (18:08 +0200)
committerSven Eden <yamakuzure@gmx.net>
Fri, 16 Jun 2017 08:12:59 +0000 (10:12 +0200)
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;