Commit Graph

13 Commits

Author SHA1 Message Date
FRIGN 5a2f3c85b7 Bring back some C89/C90 elements
dmesg: don't use VLAs
getty, su: no need to use compound literals
2014-06-05 11:33:34 +01:00
sin f308a58740 Error out if dup2 doesn't return the fd we want 2014-04-10 11:21:44 +01:00
sin a6263b656e Use setenv() instead of putenv() in getty 2014-02-24 13:00:36 +00:00
sin d7ef6ea895 Preserve getty environment in login 2014-02-17 11:44:04 +00:00
sin ac57c4ab7f Remember to reset ownership and permissions on the tty device 2014-02-14 14:12:10 +00:00
Hiltjo Posthuma c5f17bd3dc remove some signed / unsigned type warnings
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-02-14 14:11:37 +00:00
sin 1f783e7d96 Print hostname as well in getty 2014-02-11 11:29:31 +00:00
sin 894be72e6b Use LOGIN_NAME_MAX instead of a hardcoded value
As far as I can tell LOGIN_NAME_MAX includes the null-terminator.
2014-02-11 11:02:02 +00:00
sin 5d06ac4688 Allow getty to execute another program instead of /bin/login 2014-02-11 10:47:02 +00:00
sin 48b505fad3 Don't die on vhangup() failure
We might be able to continue at this point.
2014-02-11 10:16:13 +00:00
sin deeeec8977 Don't put '\n' in getty
We can do this in the initscripts.
2014-02-10 15:50:16 +00:00
sin cb904446ec Ensure getty prompts for the username
As Eckehard Berns reported:

"On Slackware /bin/login times out after 60 seconds which will
clutter the vt after a couple of minutes with timeout messages and login
prompts. So it seems that getty should ask for the username first even
if login could do it as well."
2014-02-10 15:49:39 +00:00
sin adc7ff7d04 Add initial version of getty 2014-02-10 12:15:58 +00:00