]> 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, 11 Jul 2018 14:08:38 +0000 (16:08 +0200)
commitd38eb373a687a14b09fc9db8ad94bcc9a30a71a2
tree1914c78f563c3ee7821082b01dad748037a418af
parent998f61f9340e32d2b39c55cd346222a6ae52ef76
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