Commit Graph

555 Commits

Author SHA1 Message Date
sin
0daa5a8206 Update TODO 2014-06-03 12:42:15 +01:00
sin
604b5de69d Use -std=c99 and -pedantic in default config.mk 2014-06-03 12:39:22 +01:00
sin
da215823a3 Inform the user if exec*() fails 2014-06-03 12:34:39 +01:00
sin
323f6be8ef Use correction function name in error message 2014-06-03 12:34:32 +01:00
sin
b8dbf05ce7 Simplify dologin() in su(1)
Exec the user's shell with -l to fake a login.
2014-06-03 12:28:50 +01:00
sin
2f10d16b9f Remove explicit_bzero() calls 2014-06-03 12:18:19 +01:00
sin
bd4b6f4e47 Add /etc/passwd support to su(1) 2014-06-03 12:15:24 +01:00
sin
e5d539a76f Remove BUGS section from login.1 - we now have shadow support 2014-06-03 11:08:00 +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
sin
b6007ba92b Be consistent with login(1) usage 2014-06-02 17:38:12 +01:00
sin
c7b6aacb5c /bin is good enough 2014-06-02 17:18:51 +01:00
sin
3046b513fc use lowercase for errors 2014-06-02 17:15: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
9146cebd97 Add login(1) to README 2014-06-02 16:54:09 +01:00
sin
d068541779 Not all password entries start with '$'
Respect old DES :)
2014-06-02 16:51:11 +01:00
sin
1988901b7d Add login(1) manpage 2014-06-02 16:45:29 +01:00
sin
6f7995b65a Consistent error reporting 2014-06-02 16:20:02 +01:00
sin
e992efc8fb Remember to #define _XOPEN_SOURCE for crypt() 2014-06-02 16:19:52 +01:00
sin
0a3ed68d25 Add initial implementation of login(1)
No shadow support atm.
2014-06-02 16:17:33 +01:00
sin
5322e83da0 str* is in the reserved namespace, rename to replacestr() 2014-05-06 13:40:37 +01:00
sin
fffdb91ada First release of ubase! 2014-05-01 12:06:14 +01:00
Jakob Kramer
b6e4a367e2 su: zero out encrypted passwords 2014-04-30 13:25:33 +01:00
sin
5b9ea69b08 Sweep through code and replace malloc() with emalloc() etc. 2014-04-30 13:12:17 +01:00
sin
550b655d98 Add ealloc.c with wrappers for emalloc() and friends
Re-organize util.h as well.
2014-04-30 13:11:57 +01:00
sin
49f1dc0ebe Add LICENSE header in explicit_bzero.c 2014-04-30 12:32:22 +01:00
sin
24d5c07d29 Use explicit_bzero() in su 2014-04-30 12:30:15 +01:00
sin
1920516abf Add explicit_bzero() in util/ 2014-04-30 12:30:10 +01:00
sin
8f4c0f2a8e Add random replies for failed password attempts in su(1) 2014-04-22 16:40:16 +01:00
sin
0e6d7ca286 Implement fifo listener mode for respawn 2014-04-22 16:40:11 +01:00
dwts
053e63968d keep usage definition above main in ubase 2014-04-22 15:36:53 +01:00
sin
996c2d42a3 Remove -Os from config.mk
Tends to give false-positives with uninitialized variables.
2014-04-21 12:11:59 +01:00
sin
505bb70e89 Fix char **argv to char *argv[] 2014-04-18 11:52:31 +01:00
sin
36d6216455 Style fix for respawn 2014-04-18 11:37:18 +01:00
sin
ba764589ba For consistency with other similar constructs in ubase 2014-04-18 09:40:13 +01:00
sin
8d92201170 variable cannot be NULL so don't test for that 2014-04-18 09:31:35 +01:00
sin
2618410910 Use streplace() in setsysctl() as well 2014-04-17 19:05:49 +01:00
sin
87cb818ac0 No need for a temporary variable in streplace() 2014-04-17 17:18:55 +01:00
sin
edc39cef27 If at least one entry fails, return EXIT_FAILURE in sysctl 2014-04-17 17:08:52 +01:00
sin
3985929b6d Error out if there are multiple separators in sysctl 2014-04-17 17:05:13 +01:00
sin
0897d999e6 Implement streplace()
Restore variable as early as possible and in error conditions
2014-04-17 16:42:26 +01:00
sin
6ba9fe35f1 Remember to convert '/' back to '.' in sysctl before returning 2014-04-17 16:33:18 +01:00
sin
e4fa3f5c59 Don't leak `buf' if realloc fails
Not an issue in ubase but someone might want to re-use this
function elsewhere.
2014-04-17 16:27:06 +01:00
sin
3803adfd7e Don't hardcode the buffer size in sysctl 2014-04-17 16:21:55 +01:00
sin
8b32decb6f Add initial implementation of sysctl(8)
Needs a bit of cleanup (avoiding magic numbers etc.).
2014-04-17 15:31:42 +01:00
sin
c354e5e1d3 Add respawn to README 2014-04-17 14:13:07 +01:00
sin
c4ff95798c Add respawn 2014-04-17 14:08:35 +01:00
sin
e8b61e9b7e Add manpages to Makefile 2014-04-14 15:20:09 +01:00