[hackers] [ubase] Allow the user to change from an empty password || sin

From: <git_AT_suckless.org>
Date: Thu, 05 Jun 2014 18:17:21 +0200

commit f628b72747a958c7fa3bffd3b57121787548025d
Author: sin <sin_AT_2f30.org>
Date: Thu Jun 5 17:12:21 2014 +0100

    Allow the user to change from an empty password
    
    Default to SHA-512.

diff --git a/passwd.c b/passwd.c
index 52e583b..8427e12 100644
--- a/passwd.c
+++ b/passwd.c
_AT_@ -21,7 +21,8 @@ usage(void)
 int
 main(int argc, char *argv[])
 {
- char *pass, *cryptpass1, *cryptpass2, *cryptpass3;
+ char *pass;
+ char *cryptpass1 = NULL, *cryptpass2 = NULL, *cryptpass3 = NULL;
         char *p;
         char template[] = "/tmp/pw.XXXXXX";
         struct passwd *pw;
_AT_@ -49,8 +50,11 @@ main(int argc, char *argv[])
                 eprintf("denied
");
         }
 
- if (pw->pw_passwd[0] == '
Received on Thu Jun 05 2014 - 18:17:21 CEST

This archive was generated by hypermail 2.3.0 : Thu Jun 05 2014 - 18:24:12 CEST