On Mon, 27 Mar 2017 15:08:04 +0200, Karel Zak wrote: > On Fri, Mar 17, 2017 at 01:10:55PM +0100, Karel Zak wrote: > > Maybe it would be better to remember already read bytes within > > agetty rather than use TIOCSTI. > > Implemented, please test: > > git clone > git://git.kernel.org/pub/scm/utils/util-linux/util-linux.git cd > util-linux ./autogen.sh > ./configure > make agetty > > sudo cp /sbin/agetty /sbin/agetty.org > sudo cp agetty /sbin/agetty > > .. you will probably need to stop already running agetty(s) before > the sudo commands, and start after cp(1). (for example "systemctl > stop/stop getty@tty*" on Fedora). Thanks. I tested master and it works now. The echoed user name is correct in the automated tests and my manual tests and the login was always successful. Michael > Thanks! > > Karel > -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html