mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-07 17:17:44 +03:00
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.
This commit is contained in:
parent
adbb2b6afe
commit
197db625a3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user