aboutsummaryrefslogtreecommitdiff
path: root/toys/pending/getty.c
AgeCommit message (Collapse)Author
2020-08-14cleanup: use FLAG() macros, inline parse_arguments(), STDIN_FILENO is 0.Rob Landley
2020-08-12getty: ensure utmp is updated.Elliott Hughes
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.
2018-11-19Eduardas Meile reported "The -Werror=format-security flag is applied byRob Landley
default in Yocto 2.6 Thud release" and identified several error_exit() and friends that should use the _raw versions.
2016-08-04Make xopen() skip stdin/stdout/stderr, add xopen_stdio() if you want stdout,Rob Landley
add xopenro() that takes one argument and understands "-" means stdin, and switch over lots of users.
2014-08-22getty needs fd 0 to stay open.Isaac Dunham
The O_CLOEXEC reversal resulted in login failing.
2014-06-24Glibc and uClibc provide CERASE from termios.h, but musl requies you to ↵Rob Landley
#include a non-posix header and the maintainer considers this a feature. So just use the constant directly.
2014-04-23usage: is lower case (the help generator looks for that, might as well be ↵Rob Landley
consistent).
2014-04-12getty: build fix, clean up messages, simplify codeIsaac Dunham
build fix: xmsprintf has been renamed shorten and lowercase the error messages use xexec() instead of execlp(); perror_exit(); remove redundant variable setting
2014-04-09A getty implementation from Sandeep Sharma and Kyungwan Han.Rob Landley