]> git.ipfire.org Git - thirdparty/util-linux.git/commit
agetty: keep c_iflags unmodified on --autologin
authorKarel Zak <kzak@redhat.com>
Wed, 6 Jun 2018 13:57:24 +0000 (15:57 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 6 Jun 2018 13:57:24 +0000 (15:57 +0200)
commit2c4d86abdadab19be76abecb156da7f7dc284d81
treeb72b0b850f49e466bf4ee0869f3895d660f7c594
parent641af90dce51926d0fdb6f3635296a9a12d986b6
agetty: keep c_iflags unmodified on --autologin

agetty sets c_iflags according to interaction with serial line in
get_logname(). For --autologin it does not read from the line, so we
have no clue how to set the flags.

The current behavior is to zeroize the flags.  Unfortunately, it seems
like bad idea, because the line may be already properly initialized by
kernel (or systemd, etc.).

The new behavior is not touch the flags on --autologin.

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1252764
Signed-off-by: Karel Zak <kzak@redhat.com>
term-utils/agetty.8
term-utils/agetty.c