ubase

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

commit 2f10d16b9fc907a05a3b40573a614a561a40d68f
parent bd4b6f4e47ae91b9d9c7a47874be5f4847e6a63b
Author: sin <sin@2f30.org>
Date:   Tue,  3 Jun 2014 12:13:48 +0100

Remove explicit_bzero() calls

Diffstat:
Mlogin.c | 4----
Msu.c | 6------
2 files changed, 0 insertions(+), 10 deletions(-)

diff --git a/login.c b/login.c @@ -85,16 +85,12 @@ main(int argc, char *argv[]) eprintf("denied\n"); } cryptpass = crypt(pass, spw->sp_pwdp); - explicit_bzero(pass, strlen(pass)); if (!cryptpass) eprintf("crypt:"); if (strcmp(cryptpass, spw->sp_pwdp) != 0) eprintf("login failed\n"); - explicit_bzero(cryptpass, strlen(cryptpass)); - explicit_bzero(spw, sizeof *spw); } else { cryptpass = crypt(pass, pw->pw_passwd); - explicit_bzero(pass, strlen(pass)); if (!cryptpass) eprintf("crypt:"); if (strcmp(cryptpass, pw->pw_passwd) != 0) diff --git a/su.c b/su.c @@ -101,7 +101,6 @@ main(int argc, char *argv[]) if (strcmp(cryptpass, spw->sp_pwdp) != 0) eprintf(randreply()); } - explicit_bzero(spw, sizeof *spw); } else { if (uid) { cryptpass = crypt(pass, pw->pw_passwd); @@ -112,11 +111,6 @@ main(int argc, char *argv[]) } } - if (uid) { - explicit_bzero(pass, strlen(pass)); - explicit_bzero(cryptpass, strlen(cryptpass)); - } - dosu: if (initgroups(usr, pw->pw_gid) < 0) eprintf("initgroups:");