From: Glenn L McGrath Date: Sat, 8 Feb 2003 23:20:02 +0000 (-0000) Subject: Patch from Joshua Jackson, make md5 the default hash algorithm X-Git-Tag: 1_00_pre1~204 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3aeaee33b6de00da1603a81fcebb15c5971b7c0a;p=oweals%2Fbusybox.git Patch from Joshua Jackson, make md5 the default hash algorithm --- diff --git a/loginutils/passwd.c b/loginutils/passwd.c index c8756211a..e02cc4b81 100644 --- a/loginutils/passwd.c +++ b/loginutils/passwd.c @@ -23,10 +23,10 @@ static void set_filesize_limit(int blocks); 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; }