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
4 bzero(orig, sizeof(orig));
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);
12 cp = pw_encrypt(pass, crypt_make_salt());
13 bzero(pass, sizeof pass);