Commit Graph

11 Commits

Author SHA1 Message Date
Hiltjo Posthuma
8fdc7d70bd passwd: fix /etc/passwd support, ...
... rewrite parts to use libc functions (supported by musl and glibc).
2014-07-14 11:14:36 +01:00
Hiltjo Posthuma
528f10be6c util/passwd.c: check errno only if spw is NULL
this is more reliable. there is a difference between glibc and musl
errno if /etc/tcb/<name>/shadow doesn't exist.
2014-07-09 15:07:19 +01:00
sin
86060b535c Fix includes across all tools 2014-06-30 19:04:47 +01:00
sin
924fc8449b Disable core dumps in case passwd(1) crashes
Avoids leaking the shadow db.
2014-06-10 11:44:33 +01:00
sin
60500e376a Print "incorrect password" when checking empty passwords as well 2014-06-09 13:08:18 +01:00
sin
d745889805 Fix pw_check() semantics and style - it is now similar to pw_copy() 2014-06-09 13:05:24 +01:00
sin
78192e87d9 Simplify a bit pw_check() 2014-06-09 12:57:45 +01:00
sin
4c38dffade If the user password is empty check it against the provided pass as well 2014-06-09 12:13:22 +01:00
sin
77a2f9f92c Add initial pw_check() 2014-06-09 11:12:53 +01:00
sin
abbb8fffc7 Remember to free the agetline() buffer 2014-06-05 17:00:39 +01:00
sin
1ec996439a Add initial implementation of passwd(1)
No shadow support yet.
2014-06-05 16:57:27 +01:00