diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-07-20 21:28:41 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-07-20 21:28:41 +0000 |
commit | 21d1014b5b91d1a1319273945291b7a9f4717827 (patch) | |
tree | b84eadba35d31f923ef62579652e4e5d76678c38 /loginutils/cryptpw.c | |
parent | 2f6ae43b9c74d393a139007377895e8c50b8af9a (diff) | |
download | busybox-w32-21d1014b5b91d1a1319273945291b7a9f4717827.tar.gz busybox-w32-21d1014b5b91d1a1319273945291b7a9f4717827.tar.bz2 busybox-w32-21d1014b5b91d1a1319273945291b7a9f4717827.zip |
chpasswd: new applet by Alexander Shishkin <virtuoso@slind.org>
Diffstat (limited to 'loginutils/cryptpw.c')
-rw-r--r-- | loginutils/cryptpw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/loginutils/cryptpw.c b/loginutils/cryptpw.c index dd7304613..1c3059198 100644 --- a/loginutils/cryptpw.c +++ b/loginutils/cryptpw.c | |||
@@ -17,9 +17,9 @@ int cryptpw_main(int argc, char **argv) | |||
17 | /* Too ugly, and needs even more magic to handle endianness: */ | 17 | /* Too ugly, and needs even more magic to handle endianness: */ |
18 | //((uint32_t*)&salt)[0] = '$' + '1'*0x100 + '$'*0x10000; | 18 | //((uint32_t*)&salt)[0] = '$' + '1'*0x100 + '$'*0x10000; |
19 | /* Hope one day gcc will do it itself (inlining strcpy) */ | 19 | /* Hope one day gcc will do it itself (inlining strcpy) */ |
20 | crypt_make_salt(salt + 3, 4); /* md5 */ | 20 | crypt_make_salt(salt + 3, 4, 0); /* md5 */ |
21 | } else { | 21 | } else { |
22 | crypt_make_salt(salt, 1); /* des */ | 22 | crypt_make_salt(salt, 1, 0); /* des */ |
23 | } | 23 | } |
24 | 24 | ||
25 | puts(pw_encrypt(argv[optind] ? argv[optind] : xmalloc_getline(stdin), salt)); | 25 | puts(pw_encrypt(argv[optind] ? argv[optind] : xmalloc_getline(stdin), salt)); |