|
Zbigniew Jędrzejewski-Szmek |
696e2f |
From 811a90e2de94c71bddf02cdab36c1a0560288695 Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
From: =?UTF-8?q?Mantas=20Mikul=C4=97nas?= <grawity@gmail.com>
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
Date: Mon, 8 Aug 2016 11:07:38 +0300
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
Subject: [PATCH] Revert "logind: really handle *KeyIgnoreInhibited options in
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
logind.conf"
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
MIME-Version: 1.0
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
Content-Type: text/plain; charset=UTF-8
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
Content-Transfer-Encoding: 8bit
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
This reverts commit 8121f4d209eca85dcb11830800483cdfafbef9b7.
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
The special 'key handling' inhibitors should always work regardless of
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
any *IgnoreInhibited settings – otherwise they're nearly useless.
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
Reverts: #3470
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
Fixes: #3897
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
(cherry picked from commit 06a70b918d4d753769a727239f75af8896006467)
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
---
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
src/login/logind-action.c | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
diff --git a/src/login/logind-action.c b/src/login/logind-action.c
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
index 8ef48dbaa1..a950409254 100644
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
--- a/src/login/logind-action.c
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
+++ b/src/login/logind-action.c
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
@@ -85,7 +85,7 @@ int manager_handle_action(
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
}
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
/* If the key handling is inhibited, don't do anything */
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
- if (!ignore_inhibited && inhibit_key > 0) {
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
+ if (inhibit_key > 0) {
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
if (manager_is_inhibited(m, inhibit_key, INHIBIT_BLOCK, NULL, true, false, 0, NULL)) {
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
log_debug("Refusing operation, %s is inhibited.", inhibit_what_to_string(inhibit_key));
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
return 0;
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
--
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
2.9.0
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
|