Commit Graph

12 Commits

Author SHA1 Message Date
sin
d3709f91a2 the shell field in passwd is optional - fallback to /bin/sh 2014-06-05 12:18:27 +01:00
sin
8441c95a2f define -D_XOPEN_SOURCE in config.mk
Remove from su.c and login.c
2014-06-04 15:16:24 +01:00
sin
01fa8eec58 Fix login(1) -p semantincs once and for all 2014-06-03 18:57:37 +01:00
sin
916b7fed1e Set TERM to linux if needed for su and login 2014-06-03 18:21:05 +01:00
sin
323f6be8ef Use correction function name in error message 2014-06-03 12:34:32 +01:00
sin
2f10d16b9f Remove explicit_bzero() calls 2014-06-03 12:18:19 +01:00
sin
0de4f5fd9f I am stupid. 2014-06-03 11:03:25 +01:00
sin
bc709278b6 Add shadow support to login(1)
Also remember to really preserve the environment.
2014-06-03 11:00:44 +01:00
sin
c4c1feac2a Check if stdin is a tty
Some indentation changes as well.
2014-06-03 10:50:41 +01:00
FRIGN
af65094dbe Simplify login
Remove some unnecessary local values, simplify the exec-call at the end
(we don't need the separate array) and print clearer and more consistent
error-messages.
2014-06-02 17:15:36 +01:00
sin
aaea1e9ff7 Print getpass() errors on a newline 2014-06-02 17:06:38 +01:00
sin
0a3ed68d25 Add initial implementation of login(1)
No shadow support atm.
2014-06-02 16:17:33 +01:00