]> git.ipfire.org Git - thirdparty/util-linux.git/commit
sulogin: fix KDGKBMODE ifdef
authorKarel Zak <kzak@redhat.com>
Tue, 2 May 2023 09:36:49 +0000 (11:36 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 2 May 2023 09:56:49 +0000 (11:56 +0200)
commit8efec058d7a513c18f5e5666e79006ded786221a
tree904e2c98cc09d25e6245c0abcd6ffd4be3121f56
parent5ac59dfd2d5b9074581570fe722930977ead6ae5
sulogin: fix KDGKBMODE ifdef

* remove ifdef-else for KDGKBMODE

* always call KDGKBMODE for virtual console to get K_UNICODE status

* use KDGKBMODE as a fallback to detect serial line

Fixes: https://github.com/util-linux/util-linux/issues/2185
Suggested-by: Marcos Mello
Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/sulogin.c