agetty: tty eol defaults to REPRINT
Adapting tty eol settings from defaults misbehaves as CTRL('r') aka
REPRINT is confused with CR. Consequently --skip-login does not set
tty CR<->NL translations and thus acts against advertised CR as eol
default.
[kzak@redhat.com:
It seems this issue has been introduced by commit f566447
where we
merged sulogin and agetty terminal initialization together to the file
include/ttyutils.h.
The original agetty has really used .eol=13 (aka CR) for the default.
The problem is invisible for sulogin(1) because it always asks for a
password and .eol= is set to NL/CR, the same agetty when it asks for
username.]
Addresses: https://github.com/karelzak/util-linux/pull/1247
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
78d43728b1
commit
ee978576b1
|
@ -73,7 +73,7 @@ struct chardata {
|
|||
#define INIT_CHARDATA(ptr) do { \
|
||||
(ptr)->erase = DEF_ERASE; \
|
||||
(ptr)->kill = DEF_KILL; \
|
||||
(ptr)->eol = CTRL('r'); \
|
||||
(ptr)->eol = CR; \
|
||||
(ptr)->parity = 0; \
|
||||
(ptr)->capslock = 0; \
|
||||
} while (0)
|
||||
|
|
Loading…
Reference in New Issue