summaryrefslogtreecommitdiffstats
path: root/package/busybox/patches/230-passwd_salt.patch
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-04-05 02:09:22 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-04-05 02:09:22 +0000
commit676c017ecfced2e37aeec176f8aa6b9df90024f3 (patch)
treef5913675e5868c535c007efb3e09a01ce6890287 /package/busybox/patches/230-passwd_salt.patch
parent71d39e274f5c2847a1b2eedd4afa8e298029f93d (diff)
large init script cleanup and merge of whiterussian changes, new dnsmasq config handling
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@3588 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/busybox/patches/230-passwd_salt.patch')
-rw-r--r--package/busybox/patches/230-passwd_salt.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/package/busybox/patches/230-passwd_salt.patch b/package/busybox/patches/230-passwd_salt.patch
new file mode 100644
index 000000000..0322a9843
--- /dev/null
+++ b/package/busybox/patches/230-passwd_salt.patch
@@ -0,0 +1,13 @@
+--- busybox-1.00/loginutils/passwd.c 2006-03-26 06:07:37 -05:00
++++ busybox-1.00/loginutils/passwd.c 2006-03-26 06:09:03 -05:00
+@@ -386,7 +386,9 @@
+ bzero(orig, sizeof(orig));
+
+ if (algo == 1) {
+- cp = pw_encrypt(pass, "$1$");
++ char salt[6]="$1$\0\0\0";
++ memcpy(salt+3,crypt_make_salt(),3);
++ cp = pw_encrypt(pass, salt);
+ } else
+ cp = pw_encrypt(pass, crypt_make_salt());
+ bzero(pass, sizeof pass);