[hackers] [ubase] Use explicit_bzero() in su || sin

From: <git_AT_suckless.org>
Date: Wed, 30 Apr 2014 13:30:19 +0200

commit 24d5c07d298d5681e2281e10d8a37106ee7f1eba
Author: sin <sin_AT_2f30.org>
Date: Wed Apr 30 12:26:27 2014 +0100

    Use explicit_bzero() in su

diff --git a/su.c b/su.c
index 9beb7d0..d51b1ae 100644
--- a/su.c
+++ b/su.c
_AT_@ -35,7 +35,6 @@ main(int argc, char *argv[])
         struct spwd *spw;
         struct passwd *pw;
         uid_t uid;
- int i;
 
         ARGBEGIN {
         case 'l':
_AT_@ -81,8 +80,7 @@ main(int argc, char *argv[])
                         eprintf("getpass:");
 
                 cryptpass = crypt(pass, spw->sp_pwdp);
- for (i = 0; pass[i]; i++)
- pass[i] = '
Received on Wed Apr 30 2014 - 13:30:19 CEST

This archive was generated by hypermail 2.3.0 : Wed Apr 30 2014 - 13:36:08 CEST