logind: really handle *KeyIgnoreInhibited options in logind.conf

This commit is contained in:
Franck Bui
2016-06-08 18:18:42 +02:00
parent 40652ca479
commit 8121f4d209
+1 -1
View File
@@ -85,7 +85,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;