load kernel modules in kmod- packages from postinst scripts at install.
[openwrt/svn-archive/archive.git] / openwrt / package / busybox / patches / 230-passwd_salt.patch
1 --- busybox-1.00/loginutils/passwd.c 2006-03-26 06:07:37 -05:00
2 +++ busybox-1.00/loginutils/passwd.c 2006-03-26 06:09:03 -05:00
3 @@ -386,7 +386,9 @@
4 bzero(orig, sizeof(orig));
5
6 if (algo == 1) {
7 - cp = pw_encrypt(pass, "$1$");
8 + char salt[6]="$1$\0\0\0";
9 + memcpy(salt+3,crypt_make_salt(),3);
10 + cp = pw_encrypt(pass, salt);
11 } else
12 cp = pw_encrypt(pass, crypt_make_salt());
13 bzero(pass, sizeof pass);