summaryrefslogtreecommitdiff
path: root/loginutils/cryptpw.c
diff options
context:
space:
mode:
authorDenis Vlasenko2007-07-20 21:28:41 +0000
committerDenis Vlasenko2007-07-20 21:28:41 +0000
commit21d1014b5b91d1a1319273945291b7a9f4717827 (patch)
treeb84eadba35d31f923ef62579652e4e5d76678c38 /loginutils/cryptpw.c
parent2f6ae43b9c74d393a139007377895e8c50b8af9a (diff)
downloadbusybox-21d1014b5b91d1a1319273945291b7a9f4717827.zip
busybox-21d1014b5b91d1a1319273945291b7a9f4717827.tar.gz
chpasswd: new applet by Alexander Shishkin <virtuoso@slind.org>
Diffstat (limited to 'loginutils/cryptpw.c')
-rw-r--r--loginutils/cryptpw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/loginutils/cryptpw.c b/loginutils/cryptpw.c
index dd73046..1c30591 100644
--- a/loginutils/cryptpw.c
+++ b/loginutils/cryptpw.c
@@ -17,9 +17,9 @@ int cryptpw_main(int argc, char **argv)
/* Too ugly, and needs even more magic to handle endianness: */
//((uint32_t*)&salt)[0] = '$' + '1'*0x100 + '$'*0x10000;
/* Hope one day gcc will do it itself (inlining strcpy) */
- crypt_make_salt(salt + 3, 4); /* md5 */
+ crypt_make_salt(salt + 3, 4, 0); /* md5 */
} else {
- crypt_make_salt(salt, 1); /* des */
+ crypt_make_salt(salt, 1, 0); /* des */
}
puts(pw_encrypt(argv[optind] ? argv[optind] : xmalloc_getline(stdin), salt));