]> git.ipfire.org Git - thirdparty/util-linux.git/commit
agetty: tty eol defaults to REPRINT
authorSami Loone <sami@loone.fi>
Tue, 9 Feb 2021 09:46:36 +0000 (10:46 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 10 Feb 2021 16:48:46 +0000 (17:48 +0100)
commitee978576b10cf0d62d7ef2081fa627e21dbf9d88
tree59eaac90aee91bc859f4c64fc2f4ad670ffa52d3
parent78d43728b1af991ef72ce5a3e49861297dd9d065
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>
include/ttyutils.h