chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0410467
)
Revert "logind: really handle *KeyIgnoreInhibited options in logind.conf"
author
Mantas Mikulėnas
<grawity@gmail.com>
Mon, 8 Aug 2016 08:07:38 +0000
(11:07 +0300)
committer
Sven Eden
<yamakuzure@gmx.net>
Mon, 19 Jun 2017 07:40:51 +0000
(09:40 +0200)
This reverts commit
8121f4d209eca85dcb11830800483cdfafbef9b7
.
The special 'key handling' inhibitors should always work regardless of
any *IgnoreInhibited settings – otherwise they're nearly useless.
Reverts: #3470
Fixes: #3897
(cherry picked from commit
06a70b918d4d753769a727239f75af8896006467
)
src/login/logind-action.c
patch
|
blob
|
history
diff --git
a/src/login/logind-action.c
b/src/login/logind-action.c
index d50f6ebf6d628a799ba1571cdb03182869796595..6b1b64229e797f4e78e43472def41ff67dc806de 100644
(file)
--- a/
src/login/logind-action.c
+++ b/
src/login/logind-action.c
@@
-94,7
+94,7
@@
int manager_handle_action(
}
/* If the key handling is inhibited, don't do anything */
- if (
!ignore_inhibited &&
inhibit_key > 0) {
+ if (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;