[Toybox] [PATCH] getty: ensure utmp is updated.

Rob Landley rob at landley.net
Thu Aug 13 08:02:45 PDT 2020


On 8/11/20 2:25 PM, enh via Toybox wrote:
> The key issues here turned out to be that getty is responsible for
> creating the file if it doesn't exist, and that the -H flag doesn't
> control whether utmp is updated, but whether or not to override the
> hostname within the utmp entry.
> 
> While I'm here switch to the more modern utx APIs that all the non-pending
> parts of toybox use, and remove the duplication.

Applied and pushed, but this reminds me I should really clean this up and
promote it.

The reason I haven't is I don't really have a test environment for it? (This
waits for a modem to dial in to a serial port, adjusts the baud rate, and calls
login. I got my first broadband connection in 2001 and haven't owned a modem since.)

Rob


More information about the Toybox mailing list