1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-09-20 11:24:12 +03:00

update busybox to v1.1.3, remove passwd_salt patch (fixed upstream).

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@3794 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nico 2006-05-18 08:32:07 +00:00
parent faa5f28154
commit 59e10adc2d
2 changed files with 2 additions and 15 deletions

View File

@ -13,11 +13,11 @@ PKG_SOURCE:=$(PKG_NAME)-snapshot.tar.bz2
PKG_SOURCE_URL:=http://www.busybox.net/downloads/snapshots
PKG_MD5SUM:=x
else
PKG_VERSION:=1.1.2
PKG_VERSION:=1.1.3
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=http://www.busybox.net/downloads
PKG_MD5SUM:=0b5d78072302fe687407956537bdb9e3
PKG_MD5SUM:=19a0b475169335f17e421cf644616fe7
endif
PKG_CAT:=bzcat

View File

@ -1,13 +0,0 @@
--- 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);