Skip to content

Commit

Permalink
logind: really handle *KeyIgnoreInhibited options in logind.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
fbuihuu committed Jun 8, 2016
1 parent 40652ca commit 8121f4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/login/logind-action.c
Expand Up @@ -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;
Expand Down

0 comments on commit 8121f4d

Please sign in to comment.