From 04b4c1b60b3934ccd1d07a03f54890aea30a2bb0 Mon Sep 17 00:00:00 2001 From: Lars Müller Date: Sun, 29 Apr 2007 13:23:25 +0000 Subject: Updated busybox.i586 and busybox.config to version 1.4.2. busybox.i586 was compiled on a chrooted suse 10.1 system. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@953 95ad53e4-c205-0410-b2fa-d234c58c8868 --- tools/busybox-patches/busybox-1.3.1.shadow.patch | 232 ----------------------- tools/busybox-patches/bzip2-payload.diff | 18 +- tools/busybox-patches/networking_httpd.diff | 29 --- tools/busybox-patches/series | 2 - tools/busybox-patches/unionfs-run-init.diff | 6 +- tools/busybox.config | 18 +- tools/busybox.i586 | Bin 360864 -> 306824 bytes 7 files changed, 21 insertions(+), 284 deletions(-) delete mode 100644 tools/busybox-patches/busybox-1.3.1.shadow.patch delete mode 100644 tools/busybox-patches/networking_httpd.diff (limited to 'tools') diff --git a/tools/busybox-patches/busybox-1.3.1.shadow.patch b/tools/busybox-patches/busybox-1.3.1.shadow.patch deleted file mode 100644 index a7994d73..00000000 --- a/tools/busybox-patches/busybox-1.3.1.shadow.patch +++ /dev/null @@ -1,232 +0,0 @@ -Source: http://www.busybox.net/downloads/fixes-1.3.1/busybox-1.3.1.shadow.patch - ---- busybox-1.3.1/include/libbb.h Wed Dec 27 05:56:18 2006 -+++ busybox-1.3.1.shadow/include/libbb.h Sat Dec 30 15:24:07 2006 -@@ -46,11 +46,13 @@ - #ifdef CONFIG_LOCALE_SUPPORT - #include - #else --#define setlocale(x,y) -+#define setlocale(x,y) ((void)0) - #endif - - #include "pwd_.h" - #include "grp_.h" -+/* ifdef it out, because it may include */ -+/* and we may not even _have_ ! */ - #if ENABLE_FEATURE_SHADOWPASSWDS - #include "shadow_.h" - #endif -@@ -59,7 +61,7 @@ - #include - #include - #ifndef PATH_MAX --#define PATH_MAX 256 -+#define PATH_MAX 256 - #endif - - /* Tested to work correctly (IIRC :]) */ ---- busybox-1.3.1/libpwdgrp/pwd_grp.c Wed Dec 27 05:56:32 2006 -+++ busybox-1.3.1.shadow/libpwdgrp/pwd_grp.c Sat Dec 30 15:24:07 2006 -@@ -52,7 +52,9 @@ - - extern int __parsepwent(void *pw, char *line); - extern int __parsegrent(void *gr, char *line); -+#if ENABLE_USE_BB_SHADOW - extern int __parsespent(void *sp, char *line); -+#endif - - extern int __pgsreader(int (*__parserfunc)(void *d, char *line), void *data, - char *__restrict line_buff, size_t buflen, FILE *f); -@@ -103,6 +105,7 @@ - return rv; - } - -+#if ENABLE_USE_BB_SHADOW - int fgetspent_r(FILE *__restrict stream, struct spwd *__restrict resultbuf, - char *__restrict buffer, size_t buflen, - struct spwd **__restrict result) -@@ -117,6 +120,7 @@ - - return rv; - } -+#endif - - /**********************************************************************/ - /* For the various fget??ent funcs, return NULL on failure and a -@@ -144,6 +148,7 @@ - return result; - } - -+#if ENABLE_USE_BB_SHADOW - extern int fgetspent_r(FILE *__restrict stream, struct spwd *__restrict resultbuf, - char *__restrict buffer, size_t buflen, - struct spwd **__restrict result); -@@ -184,6 +189,7 @@ - DONE: - return rv; - } -+#endif - - /**********************************************************************/ - -@@ -207,6 +213,7 @@ - #define DO_GETXXKEY_R_PATHNAME _PATH_GROUP - #include "pwd_grp_internal.c" - -+#if ENABLE_USE_BB_SHADOW - #define GETXXKEY_R_FUNC getspnam_R - #define GETXXKEY_R_PARSER __parsespent - #define GETXXKEY_R_ENTTYPE struct spwd -@@ -214,6 +221,7 @@ - #define DO_GETXXKEY_R_KEYTYPE const char *__restrict - #define DO_GETXXKEY_R_PATHNAME _PATH_SHADOW - #include "pwd_grp_internal.c" -+#endif - - #define GETXXKEY_R_FUNC getpwuid_R - #define GETXXKEY_R_PARSER __parsepwent -@@ -253,6 +261,7 @@ - return result; - } - -+#if 0 //ENABLE_USE_BB_SHADOW - /* This function is non-standard and is currently not built. It seems - * to have been created as a reentrant version of the non-standard - * functions getspuid. Why getspuid was added, I do not know. */ -@@ -286,6 +295,7 @@ - getspuid_r(uid, &resultbuf, buffer, sizeof(buffer), &result); - return result; - } -+#endif - - struct passwd *getpwnam(const char *name) - { -@@ -307,6 +317,7 @@ - return result; - } - -+#if ENABLE_USE_BB_SHADOW - struct spwd *getspnam(const char *name) - { - static char buffer[PWD_BUFFER_SIZE]; -@@ -316,6 +327,7 @@ - getspnam_r(name, &resultbuf, buffer, sizeof(buffer), &result); - return result; - } -+#endif - - int getpw(uid_t uid, char *buf) - { -@@ -444,6 +456,7 @@ - return rv; - } - -+#if ENABLE_USE_BB_SHADOW - static FILE *spf /*= NULL*/; - void setspent(void) - { -@@ -488,6 +501,7 @@ - UNLOCK; - return rv; - } -+#endif - - struct passwd *getpwent(void) - { -@@ -509,6 +523,7 @@ - return result; - } - -+#if ENABLE_USE_BB_SHADOW - struct spwd *getspent(void) - { - static char line_buff[PWD_BUFFER_SIZE]; -@@ -528,6 +543,7 @@ - sgetspent_r(string, &spwd, line_buff, sizeof(line_buff), &result); - return result; - } -+#endif - - int initgroups(const char *user, gid_t gid) - { -@@ -643,6 +659,7 @@ - return rv; - } - -+#if ENABLE_USE_BB_SHADOW - static const unsigned char _sp_off[] = { - offsetof(struct spwd, sp_lstchg), /* 2 - not a char ptr */ - offsetof(struct spwd, sp_min), /* 3 - not a char ptr */ -@@ -688,6 +705,7 @@ - DO_UNLOCK: - return rv; - } -+#endif - - /**********************************************************************/ - /* Internal uClibc functions. */ -@@ -846,6 +864,7 @@ - - /**********************************************************************/ - -+#if ENABLE_USE_BB_SHADOW - static const unsigned char sp_off[] = { - offsetof(struct spwd, sp_namp), /* 0 */ - offsetof(struct spwd, sp_pwdp), /* 1 */ -@@ -900,6 +919,7 @@ - - return EINVAL; - } -+#endif - - /**********************************************************************/ - ---- busybox-1.3.1/loginutils/passwd.c Wed Dec 27 05:56:20 2006 -+++ busybox-1.3.1.shadow/loginutils/passwd.c Sat Dec 30 15:24:07 2006 -@@ -275,7 +275,8 @@ - } - - filename = bb_path_passwd_file; -- if (ENABLE_FEATURE_SHADOWPASSWDS) { -+#if ENABLE_FEATURE_SHADOWPASSWDS -+ { - struct spwd *sp = getspnam(name); - if (!sp) { - /* LOGMODE_BOTH */ -@@ -287,6 +288,7 @@ - pw->pw_passwd = sp->sp_pwdp; - } - } -+#endif - - /* Decide what the new password will be */ - newp = NULL; ---- busybox-1.3.1/loginutils/sulogin.c Wed Dec 27 05:56:20 2006 -+++ busybox-1.3.1.shadow/loginutils/sulogin.c Sat Dec 30 15:24:07 2006 -@@ -41,7 +41,6 @@ - char *timeout_arg; - const char * const *p; - struct passwd *pwd; -- struct spwd *spwd; - const char *shell; - - logmode = LOGMODE_BOTH; -@@ -75,13 +74,15 @@ - goto auth_error; - } - -- if (ENABLE_FEATURE_SHADOWPASSWDS) { -- spwd = getspnam(pwd->pw_name); -+#if ENABLE_FEATURE_SHADOWPASSWDS -+ { -+ struct spwd *spwd = getspnam(pwd->pw_name); - if (!spwd) { - goto auth_error; - } - pwd->pw_passwd = spwd->sp_pwdp; - } -+#endif - - while (1) { - /* cp points to a static buffer that is zeroed every time */ diff --git a/tools/busybox-patches/bzip2-payload.diff b/tools/busybox-patches/bzip2-payload.diff index 65863ad9..3f0aebc5 100644 --- a/tools/busybox-patches/bzip2-payload.diff +++ b/tools/busybox-patches/bzip2-payload.diff @@ -4,10 +4,10 @@ URL: http://www.busybox.net/lists/busybox/2004-May/011669.html CVS: http://www.busybox.net/cgi-bin/viewcvs.cgi/trunk/busybox/patches/rpm2cpio_bzip2.patch?rev=9001 BugID: 1141 -Index: busybox-1.3.1/archival/Config.in +Index: busybox-1.4.2/archival/Config.in =================================================================== ---- busybox-1.3.1.orig/archival/Config.in -+++ busybox-1.3.1/archival/Config.in +--- busybox-1.4.2.orig/archival/Config.in ++++ busybox-1.4.2/archival/Config.in @@ -127,6 +127,14 @@ config RPM2CPIO help Converts an RPM file into a CPIO archive. @@ -23,10 +23,10 @@ Index: busybox-1.3.1/archival/Config.in config RPM bool "rpm" default n -Index: busybox-1.3.1/archival/libunarchive/Kbuild +Index: busybox-1.4.2/archival/libunarchive/Kbuild =================================================================== ---- busybox-1.3.1.orig/archival/libunarchive/Kbuild -+++ busybox-1.3.1/archival/libunarchive/Kbuild +--- busybox-1.4.2.orig/archival/libunarchive/Kbuild ++++ busybox-1.4.2/archival/libunarchive/Kbuild @@ -48,6 +48,7 @@ lib-$(CONFIG_FEATURE_DEB_TAR_LZMA) += de lib-$(CONFIG_GUNZIP) += $(GUNZIP_FILES) lib-$(CONFIG_FEATURE_GUNZIP_UNCOMPRESS) += decompress_uncompress.o @@ -35,10 +35,10 @@ Index: busybox-1.3.1/archival/libunarchive/Kbuild lib-$(CONFIG_RPM) += $(GUNZIP_FILES) get_header_cpio.o lib-$(CONFIG_TAR) += get_header_tar.o lib-$(CONFIG_FEATURE_TAR_BZIP2) += decompress_bunzip2.o get_header_tar_bz2.o -Index: busybox-1.3.1/archival/rpm2cpio.c +Index: busybox-1.4.2/archival/rpm2cpio.c =================================================================== ---- busybox-1.3.1.orig/archival/rpm2cpio.c -+++ busybox-1.3.1/archival/rpm2cpio.c +--- busybox-1.4.2.orig/archival/rpm2cpio.c ++++ busybox-1.4.2/archival/rpm2cpio.c @@ -74,14 +74,24 @@ int rpm2cpio_main(int argc, char **argv) skip_header(rpm_fd); diff --git a/tools/busybox-patches/networking_httpd.diff b/tools/busybox-patches/networking_httpd.diff deleted file mode 100644 index 869c65a2..00000000 --- a/tools/busybox-patches/networking_httpd.diff +++ /dev/null @@ -1,29 +0,0 @@ -Author: Lars Mueller -Subject: Add missing defines to enable code for a particular -BugID: 1159 - -Index: busybox-1.3.1/networking/httpd.c -=================================================================== ---- busybox-1.3.1.orig/networking/httpd.c -+++ busybox-1.3.1/networking/httpd.c -@@ -1305,8 +1305,10 @@ static int checkPermIP(void) - - /* This could stand some work */ - for (cur = config->ip_a_d; cur; cur = cur->next) { -+#if ENABLE_FEATURE_HTTPD_CGI || DEBUG - if (DEBUG) - fprintf(stderr, "checkPermIP: '%s' ? ", config->rmt_ip_str); -+#endif - if (DEBUG) - fprintf(stderr, "'%u.%u.%u.%u/%u.%u.%u.%u'\n", - (unsigned char)(cur->ip >> 24), -@@ -1690,7 +1692,9 @@ static void handleIncoming(void) - config->ContentLength = -1; - } while (0); - -+#if ENABLE_FEATURE_HTTPD_CGI - bail_out: -+#endif - - if (DEBUG) - fprintf(stderr, "closing socket\n\n"); diff --git a/tools/busybox-patches/series b/tools/busybox-patches/series index d1f5d768..87dc1896 100644 --- a/tools/busybox-patches/series +++ b/tools/busybox-patches/series @@ -1,5 +1,3 @@ # series file useable by quilt -busybox-1.3.1.shadow.patch bzip2-payload.diff -networking_httpd.diff unionfs-run-init.diff diff --git a/tools/busybox-patches/unionfs-run-init.diff b/tools/busybox-patches/unionfs-run-init.diff index e7b102ef..a0cde9f2 100644 --- a/tools/busybox-patches/unionfs-run-init.diff +++ b/tools/busybox-patches/unionfs-run-init.diff @@ -3,10 +3,10 @@ root fs on top. We check if we have unionfs available to make the ro fs rw. Unfortunately the unionfs code is incomplete (mmap issue). Thus the original mount point of the ro fs part is not moved accordingly. -Index: busybox-1.3.1/util-linux/switch_root.c +Index: busybox-1.4.2/util-linux/switch_root.c =================================================================== ---- busybox-1.3.1.orig/util-linux/switch_root.c -+++ busybox-1.3.1/util-linux/switch_root.c +--- busybox-1.4.2.orig/util-linux/switch_root.c ++++ busybox-1.4.2/util-linux/switch_root.c @@ -103,6 +103,10 @@ int switch_root_main(int argc, char *arg // Overmount / with newdir and chroot into it. The chdir is needed to // recalculate "." and ".." links. diff --git a/tools/busybox.config b/tools/busybox.config index 8e6512a6..ee8178ba 100644 --- a/tools/busybox.config +++ b/tools/busybox.config @@ -1,7 +1,7 @@ # # Automatically generated make config: don't edit -# Linux kernel version: 1.3.1 -# Fri Jan 12 21:42:13 2007 +# Busybox version: 1.4.2 +# Sun Apr 29 15:14:42 2007 # CONFIG_HAVE_DOT_CONFIG=y @@ -51,7 +51,7 @@ CONFIG_BUSYBOX_EXEC_PATH="/proc/self/exe" # CONFIG_NO_DEBUG_LIB is not set # CONFIG_DMALLOC is not set # CONFIG_EFENCE is not set -# CONFIG_DEBUG_YANK_SUSv2 is not set +# CONFIG_INCLUDE_SUSv2 is not set # # Installation Options @@ -290,6 +290,7 @@ CONFIG_FEATURE_VI_READONLY=y CONFIG_FEATURE_VI_SET=y # CONFIG_FEATURE_VI_WIN_RESIZE is not set CONFIG_FEATURE_VI_OPTIMIZE_CURSOR=y +# CONFIG_FEATURE_ALLOW_EXEC is not set # # Finding Utilities @@ -344,8 +345,10 @@ CONFIG_GREP=y # CONFIG_LOGIN_SCRIPTS is not set # CONFIG_FEATURE_SECURETTY is not set # CONFIG_PASSWD is not set +# CONFIG_FEATURE_PASSWD_WEAK_CHECK is not set # CONFIG_SU is not set -# CONFIG_SU_SYSLOG is not set +# CONFIG_FEATURE_SU_SYSLOG is not set +# CONFIG_FEATURE_SU_CHECKS_SHELLS is not set # CONFIG_SULOGIN is not set # CONFIG_VLOCK is not set @@ -353,13 +356,8 @@ CONFIG_GREP=y # Linux Ext2 FS Progs # # CONFIG_CHATTR is not set -# CONFIG_E2FSCK is not set # CONFIG_FSCK is not set # CONFIG_LSATTR is not set -CONFIG_MKE2FS=y -# CONFIG_TUNE2FS is not set -# CONFIG_E2LABEL is not set -# CONFIG_FINDFS is not set # # Linux Module Utilities @@ -460,6 +458,7 @@ CONFIG_FEATURE_MOUNT_LOOP=y # CONFIG_EJECT is not set # CONFIG_LAST is not set # CONFIG_LESS is not set +CONFIG_FEATURE_LESS_MAXLINES= # CONFIG_FEATURE_LESS_BRACKETS is not set # CONFIG_FEATURE_LESS_FLAGS is not set # CONFIG_FEATURE_LESS_FLAGCS is not set @@ -493,6 +492,7 @@ CONFIG_TIME=y # Networking Utilities # # CONFIG_FEATURE_IPV6 is not set +# CONFIG_ARP is not set CONFIG_ARPING=y # CONFIG_DNSD is not set # CONFIG_ETHER_WAKE is not set diff --git a/tools/busybox.i586 b/tools/busybox.i586 index 3bbcdbb4..a6ae3918 100755 Binary files a/tools/busybox.i586 and b/tools/busybox.i586 differ -- cgit v1.2.3-55-g7522