ubase

suckless linux base utils
git clone git://git.2f30.org/ubase.git
Log | Files | Refs | README | LICENSE

commit b6e4a367e2605da98d418bebcd44a2d0f913dab1
parent 5b9ea69b08a15dcad0ce2422289d86d459502197
Author: Jakob Kramer <jakob.kramer@gmx.de>
Date:   Wed Apr 30 14:15:26 +0200

su: zero out encrypted passwords

Diffstat:
su.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/su.c b/su.c @@ -86,6 +86,8 @@ main(int argc, char *argv[]) if (strcmp(cryptpass, spw->sp_pwdp) != 0) eprintf(randreply()); + explicit_bzero(cryptpass, strlen(cryptpass)); + explicit_bzero(spw, sizeof *spw); } errno = 0;