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

enh enh at google.com
Tue Aug 11 12:25:09 PDT 2020


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.
---
 toys/pending/getty.c | 59 +++++++++++++++++++++-----------------------
 1 file changed, 28 insertions(+), 31 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-getty-ensure-utmp-is-updated.patch
Type: text/x-patch
Size: 3572 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20200811/bba7ade7/attachment-0002.bin>


More information about the Toybox mailing list