projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4f3d7f
)
Patch from Joshua Jackson, make md5 the default hash algorithm
author
Glenn L McGrath
<bug1@ihug.co.nz>
Sat, 8 Feb 2003 23:20:02 +0000
(23:20 -0000)
committer
Glenn L McGrath
<bug1@ihug.co.nz>
Sat, 8 Feb 2003 23:20:02 +0000
(23:20 -0000)
loginutils/passwd.c
patch
|
blob
|
history
diff --git
a/loginutils/passwd.c
b/loginutils/passwd.c
index c8756211a7fac6467aa4a9a86809afdb4cef61a9..e02cc4b813439a70a905df16fd98453646725639 100644
(file)
--- 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;
}