From 197db625a30850f4234eed5994bc0e6cd3e7242c Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 9 Sep 2020 19:17:31 +0200 Subject: [PATCH] logind: fix merge issue The two PRs #16664 and #16635 individually passed CI, but when combined cannot build. Since both are merged now, let's fix that. --- src/login/logind-inhibit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/login/logind-inhibit.c b/src/login/logind-inhibit.c index 14df9297ba..f52d5babd7 100644 --- a/src/login/logind-inhibit.c +++ b/src/login/logind-inhibit.c @@ -522,7 +522,7 @@ int inhibit_what_from_string(const char *s) { what |= INHIBIT_HANDLE_HIBERNATE_KEY; else if (streq(word, "handle-lid-switch")) what |= INHIBIT_HANDLE_LID_SWITCH; - else if (l == 17 && strneq(word, "handle-reboot-key", l)) + else if (streq(word, "handle-reboot-key")) what |= INHIBIT_HANDLE_REBOOT_KEY; else return _INHIBIT_WHAT_INVALID;