summaryrefslogtreecommitdiff
path: root/src/login
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-09-19 15:29:24 +0200
committerLennart Poettering <lennart@poettering.net>2012-09-19 15:29:24 +0200
commitf981b9c5be32a199bce6335196d986f5b7e45ba6 (patch)
treeecf8b29f97bfa527ca459d777b5042b4f02e0d29 /src/login
parent12a1309e117972791a84f20483e981a42be0d9ac (diff)
logind: properly parse handle-lid-switch inhibitor
Diffstat (limited to 'src/login')
-rw-r--r--src/login/logind-inhibit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login/logind-inhibit.c b/src/login/logind-inhibit.c
index 6acc5c8276..fce2f4dd90 100644
--- 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 == 16 && strncmp(w, "handle-lid-switch", l) == 0)
+ else if (l == 17 && strncmp(w, "handle-lid-switch", l) == 0)
what |= INHIBIT_HANDLE_LID_SWITCH;
else
return _INHIBIT_WHAT_INVALID;