From: Franck Bui Date: Wed, 8 Jun 2016 16:08:56 +0000 (+0200) Subject: logind: really handle *KeyIgnoreInhibited options in logind.conf X-Git-Tag: v231~203^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8121f4d209eca85dcb11830800483cdfafbef9b7;p=thirdparty%2Fsystemd.git logind: really handle *KeyIgnoreInhibited options in logind.conf --- diff --git a/src/login/logind-action.c b/src/login/logind-action.c index 9a8089f97c4..95a2a011732 100644 --- a/src/login/logind-action.c +++ b/src/login/logind-action.c @@ -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;