[BusyBox-cvs] busybox/loginutils passwd.c,1.3,1.4

Glenn McGrath bug1 at busybox.net
Sat Feb 8 23:20:08 UTC 2003


Update of /var/cvs/busybox/loginutils
In directory winder:/tmp/cvs-serv17690/loginutils

Modified Files:
	passwd.c 
Log Message:
Patch from Joshua Jackson, make md5 the default hash algorithm


Index: passwd.c
===================================================================
RCS file: /var/cvs/busybox/loginutils/passwd.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- passwd.c	19 Jul 2002 00:05:46 -0000	1.3
+++ passwd.c	8 Feb 2003 23:20:02 -0000	1.4
@@ -23,10 +23,10 @@
 
 int get_algo(char *a)
 {
-	int x = 0;					/* standart: DES */
+	int x = 1;					/* standard: MD5 */
 
-	if (strcasecmp(a, "md5") == 0)
-		x = 1;
+	if (strcasecmp(a, "des") == 0)
+		x = 0;
 	return x;
 }
 




More information about the busybox-cvs mailing list