diff options
author | Glenn L McGrath | 2003-02-08 23:20:02 +0000 |
---|---|---|
committer | Glenn L McGrath | 2003-02-08 23:20:02 +0000 |
commit | 3aeaee33b6de00da1603a81fcebb15c5971b7c0a (patch) | |
tree | 9e26d3811bc41f79c95654c9ef0b74ab08331f3c | |
parent | b4f3d7f5948f94203687031a3cb0b123104a6516 (diff) | |
download | busybox-3aeaee33b6de00da1603a81fcebb15c5971b7c0a.zip busybox-3aeaee33b6de00da1603a81fcebb15c5971b7c0a.tar.gz |
Patch from Joshua Jackson, make md5 the default hash algorithm
-rw-r--r-- | loginutils/passwd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/loginutils/passwd.c b/loginutils/passwd.c index c875621..e02cc4b 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; } |