projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12a1309
)
logind: properly parse handle-lid-switch inhibitor
author
Lennart Poettering
<lennart@poettering.net>
Wed, 19 Sep 2012 13:29:24 +0000
(15:29 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 19 Sep 2012 13:29:24 +0000
(15:29 +0200)
src/login/logind-inhibit.c
patch
|
blob
|
history
diff --git
a/src/login/logind-inhibit.c
b/src/login/logind-inhibit.c
index
6acc5c8
..
fce2f4d
100644
(file)
--- a/
src/login/logind-inhibit.c
+++ b/
src/login/logind-inhibit.c
@@
-442,7
+442,7
@@
InhibitWhat inhibit_what_from_string(const char *s) {
what |= INHIBIT_HANDLE_POWER_KEY;
else if (l == 16 && strncmp(w, "handle-sleep-key", l) == 0)
what |= INHIBIT_HANDLE_SLEEP_KEY;
- else if (l == 1
6
&& strncmp(w, "handle-lid-switch", l) == 0)
+ else if (l == 1
7
&& strncmp(w, "handle-lid-switch", l) == 0)
what |= INHIBIT_HANDLE_LID_SWITCH;
else
return _INHIBIT_WHAT_INVALID;