[-]
[+]
|
Changed |
busybox.spec
|
|
[-]
[+]
|
Deleted |
busybox-1.16.0-POLLHUP.patch
^
|
@@ -1,93 +0,0 @@
-diff -urpN busybox-1.16.0/miscutils/microcom.c busybox-1.16.0-POLLHUP/miscutils/microcom.c
---- busybox-1.16.0/miscutils/microcom.c 2010-01-25 01:59:38.000000000 +0100
-+++ busybox-1.16.0-POLLHUP/miscutils/microcom.c 2010-03-02 23:53:28.000000000 +0100
-@@ -119,7 +119,7 @@ int microcom_main(int argc UNUSED_PARAM,
- nfd = 2;
- // Not safe_poll: we want to exit on signal
- while (!bb_got_signal && poll(pfd, nfd, timeout) > 0) {
-- if (nfd > 1 && (pfd[1].revents & POLLIN)) {
-+ if (nfd > 1 && pfd[1].revents) {
- char c;
- // read from stdin -> write to device
- if (safe_read(STDIN_FILENO, &c, 1) < 1) {
-@@ -143,7 +143,7 @@ int microcom_main(int argc UNUSED_PARAM,
- safe_poll(pfd, 1, delay);
- skip_write: ;
- }
-- if (pfd[0].revents & POLLIN) {
-+ if (pfd[0].revents) {
- #define iobuf bb_common_bufsiz1
- ssize_t len;
- // read from device -> write to stdout
-diff -urpN busybox-1.16.0/networking/httpd.c busybox-1.16.0-POLLHUP/networking/httpd.c
---- busybox-1.16.0/networking/httpd.c 2010-01-25 01:59:38.000000000 +0100
-+++ busybox-1.16.0-POLLHUP/networking/httpd.c 2010-03-02 23:53:28.000000000 +0100
-@@ -1167,7 +1167,7 @@ static NOINLINE void cgi_io_loop_and_exi
- break;
- }
-
-- if (pfd[TO_CGI].revents & POLLOUT) {
-+ if (pfd[TO_CGI].revents) {
- /* hdr_cnt > 0 here due to the way pfd[TO_CGI].events set */
- /* Have data from peer and can write to CGI */
- count = safe_write(toCgi_wr, hdr_ptr, hdr_cnt);
-@@ -1184,7 +1184,7 @@ static NOINLINE void cgi_io_loop_and_exi
- }
- }
-
-- if (pfd[0].revents & POLLIN) {
-+ if (pfd[0].revents) {
- /* post_len > 0 && hdr_cnt == 0 here */
- /* We expect data, prev data portion is eaten by CGI
- * and there *is* data to read from the peer
-@@ -1202,7 +1202,7 @@ static NOINLINE void cgi_io_loop_and_exi
- }
- }
-
-- if (pfd[FROM_CGI].revents & POLLIN) {
-+ if (pfd[FROM_CGI].revents) {
- /* There is something to read from CGI */
- char *rbuf = iobuf;
-
-diff -urpN busybox-1.16.0/networking/telnet.c busybox-1.16.0-POLLHUP/networking/telnet.c
---- busybox-1.16.0/networking/telnet.c 2010-01-25 01:59:38.000000000 +0100
-+++ busybox-1.16.0-POLLHUP/networking/telnet.c 2010-03-02 23:53:28.000000000 +0100
-@@ -618,7 +618,7 @@ int telnet_main(int argc UNUSED_PARAM, c
- default:
-
- #ifdef USE_POLL
-- if (ufds[0].revents & POLLIN)
-+ if (ufds[0].revents)
- #else
- if (FD_ISSET(STDIN_FILENO, &rfds))
- #endif
-@@ -631,7 +631,7 @@ int telnet_main(int argc UNUSED_PARAM, c
- }
-
- #ifdef USE_POLL
-- if (ufds[1].revents & POLLIN)
-+ if (ufds[1].revents)
- #else
- if (FD_ISSET(netfd, &rfds))
- #endif
-diff -urpN busybox-1.16.0/util-linux/script.c busybox-1.16.0-POLLHUP/util-linux/script.c
---- busybox-1.16.0/util-linux/script.c 2010-01-25 01:59:39.000000000 +0100
-+++ busybox-1.16.0-POLLHUP/util-linux/script.c 2010-03-02 23:53:28.000000000 +0100
-@@ -119,7 +119,7 @@ int script_main(int argc UNUSED_PARAM, c
- * for example, try "script -c true" */
- break;
- }
-- if (pfd[0].revents & POLLIN) {
-+ if (pfd[0].revents) {
- errno = 0;
- count = safe_read(pty, buf, sizeof(buf));
- if (count <= 0 && errno != EAGAIN) {
-@@ -143,7 +143,7 @@ int script_main(int argc UNUSED_PARAM, c
- }
- }
- }
-- if (pfd[1].revents & POLLIN) {
-+ if (pfd[1].revents) {
- count = safe_read(STDIN_FILENO, buf, sizeof(buf));
- if (count <= 0) {
- /* err/eof from stdin: don't read stdin anymore */
|
[-]
[+]
|
Deleted |
busybox-1.16.0-ash.patch
^
|
@@ -1,35 +0,0 @@
-diff -urpN busybox-1.16.0/shell/ash.c busybox-1.16.0-ash/shell/ash.c
---- busybox-1.16.0/shell/ash.c 2010-01-25 01:59:38.000000000 +0100
-+++ busybox-1.16.0-ash/shell/ash.c 2010-02-21 01:52:22.000000000 +0100
-@@ -4539,7 +4539,7 @@ forkchild(struct job *jp, union node *n,
- if (mode == FORK_NOJOB /* is it `xxx` ? */
- && n && n->type == NCMD /* is it single cmd? */
- /* && n->ncmd.args->type == NARG - always true? */
-- && strcmp(n->ncmd.args->narg.text, "trap") == 0
-+ && n->ncmd.args && strcmp(n->ncmd.args->narg.text, "trap") == 0
- && n->ncmd.args->narg.next == NULL /* "trap" with no arguments */
- /* && n->ncmd.args->narg.backquote == NULL - do we need to check this? */
- ) {
-@@ -4627,7 +4627,7 @@ forkchild(struct job *jp, union node *n,
- }
- #if JOBS
- if (n && n->type == NCMD
-- && strcmp(n->ncmd.args->narg.text, "jobs") == 0
-+ && n->ncmd.args && strcmp(n->ncmd.args->narg.text, "jobs") == 0
- ) {
- TRACE(("Job hack\n"));
- /* "jobs": we do not want to clear job list for it,
-diff -urpN busybox-1.16.0/shell/ash_test/ash-misc/nulltick1.right busybox-1.16.0-ash/shell/ash_test/ash-misc/nulltick1.right
---- busybox-1.16.0/shell/ash_test/ash-misc/nulltick1.right 1970-01-01 01:00:00.000000000 +0100
-+++ busybox-1.16.0-ash/shell/ash_test/ash-misc/nulltick1.right 2010-02-21 01:52:22.000000000 +0100
-@@ -0,0 +1,3 @@
-+Test 1
-+Test 2
-+Done
-diff -urpN busybox-1.16.0/shell/ash_test/ash-misc/nulltick1.tests busybox-1.16.0-ash/shell/ash_test/ash-misc/nulltick1.tests
---- busybox-1.16.0/shell/ash_test/ash-misc/nulltick1.tests 1970-01-01 01:00:00.000000000 +0100
-+++ busybox-1.16.0-ash/shell/ash_test/ash-misc/nulltick1.tests 2010-02-21 01:52:22.000000000 +0100
-@@ -0,0 +1,3 @@
-+echo Test ` ` 1
-+echo Test `</dev/null` 2
-+echo Done
|
[-]
[+]
|
Deleted |
busybox-1.16.0-beep.patch
^
|
@@ -1,17 +0,0 @@
-diff -urpN busybox-1.16.0/miscutils/beep.c busybox-1.16.0-beep/miscutils/beep.c
---- busybox-1.16.0/miscutils/beep.c 2010-01-25 01:59:38.000000000 +0100
-+++ busybox-1.16.0-beep/miscutils/beep.c 2010-03-14 15:27:24.000000000 +0100
-@@ -79,11 +79,11 @@ int beep_main(int argc, char **argv)
- }
- while (rep) {
- //bb_info_msg("rep[%d] freq=%d, length=%d, delay=%d", rep, freq, length, delay);
-- xioctl(speaker, KIOCSOUND, (void*)(long)tickrate_div_freq);
-+ xioctl(speaker, KIOCSOUND, (void*)(uintptr_t)tickrate_div_freq);
- usleep(1000 * length);
- ioctl(speaker, KIOCSOUND, (void*)0);
- if (--rep)
-- usleep(delay);
-+ usleep(1000 * delay);
- }
- }
-
|
[-]
[+]
|
Deleted |
busybox-1.16.0-compat.patch
^
|
@@ -1,317 +0,0 @@
-diff -urpN busybox-1.16.0/coreutils/fsync.c busybox-1.16.0-compat/coreutils/fsync.c
---- busybox-1.16.0/coreutils/fsync.c 2010-01-25 01:59:38.000000000 +0100
-+++ busybox-1.16.0-compat/coreutils/fsync.c 2010-02-21 01:54:07.000000000 +0100
-@@ -7,6 +7,9 @@
- * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
- */
- #include "libbb.h"
-+#ifndef O_NOATIME
-+# define O_NOATIME 0
-+#endif
-
- /* This is a NOFORK applet. Be very careful! */
-
-diff -urpN busybox-1.16.0/editors/diff.c busybox-1.16.0-compat/editors/diff.c
---- busybox-1.16.0/editors/diff.c 2010-01-25 01:59:38.000000000 +0100
-+++ busybox-1.16.0-compat/editors/diff.c 2010-02-21 01:54:07.000000000 +0100
-@@ -227,10 +227,12 @@ struct cand {
-
- static int search(const int *c, int k, int y, const struct cand *list)
- {
-+ int i, j;
-+
- if (list[c[k]].y < y) /* quick look for typical case */
- return k + 1;
-
-- for (int i = 0, j = k + 1;;) {
-+ for (i = 0, j = k + 1;;) {
- const int l = (i + j) >> 1;
- if (l > i) {
- const int t = list[c[l]].y;
-@@ -265,11 +267,13 @@ static void stone(const int *a, int n, c
- int clistlen = 100;
- int k = 0;
- struct cand *clist = xzalloc(clistlen * sizeof(clist[0]));
-+ struct cand cand;
-+ struct cand *q;
- int *klist = xzalloc((n + 2) * sizeof(klist[0]));
- /*clist[0] = (struct cand){0}; - xzalloc did it */
- /*klist[0] = 0; */
-
-- for (struct cand cand = {1}; cand.x <= n; cand.x++) {
-+ for (cand.x = 1; cand.x <= n; cand.x++) {
- int j = a[cand.x], oldl = 0;
- unsigned numtries = 0;
- if (j == 0)
-@@ -303,7 +307,7 @@ static void stone(const int *a, int n, c
- } while ((cand.y = b[++j]) > 0 && numtries < bound);
- }
- /* Unravel */
-- for (struct cand *q = clist + klist[k]; q->y; q = clist + q->pred)
-+ for (q = clist + klist[k]; q->y; q = clist + q->pred)
- J[q->x + pref] = q->y + pref;
- free(klist);
- free(clist);
-@@ -348,10 +352,11 @@ static void equiv(struct line *a, int n,
-
- static void unsort(const struct line *f, int l, int *b)
- {
-+ int i;
- int *a = xmalloc((l + 1) * sizeof(a[0]));
-- for (int i = 1; i <= l; i++)
-+ for (i = 1; i <= l; i++)
- a[f[i].serial] = f[i].value;
-- for (int i = 1; i <= l; i++)
-+ for (i = 1; i <= l; i++)
- b[i] = a[i];
- free(a);
- }
-@@ -370,12 +375,13 @@ static int line_compar(const void *a, co
-
- static void fetch(FILE_and_pos_t *ft, const off_t *ix, int a, int b, int ch)
- {
-- for (int i = a; i <= b; i++) {
-+ int i, j, col;
-+ for (i = a; i <= b; i++) {
- seek_ft(ft, ix[i - 1]);
- putchar(ch);
- if (option_mask32 & FLAG(T))
- putchar('\t');
-- for (int j = 0, col = 0; j < ix[i] - ix[i - 1]; j++) {
-+ for (j = 0, col = 0; j < ix[i] - ix[i - 1]; j++) {
- int c = fgetc(ft->ft_fp);
- if (c == EOF) {
- printf("\n\\ No newline at end of file\n");
-@@ -410,19 +416,20 @@ static NOINLINE int *create_J(FILE_and_p
- {
- int *J, slen[2], *class, *member;
- struct line *nfile[2], *sfile[2];
-- int pref = 0, suff = 0;
-+ int pref = 0, suff = 0, i, j, delta;
-
- /* Lines of both files are hashed, and in the process
- * their offsets are stored in the array ix[fileno]
- * where fileno == 0 points to the old file, and
- * fileno == 1 points to the new one.
- */
-- for (int i = 0; i < 2; i++) {
-+ for (i = 0; i < 2; i++) {
- unsigned hash;
- token_t tok;
- size_t sz = 100;
- nfile[i] = xmalloc((sz + 3) * sizeof(nfile[i][0]));
- /* ft gets here without the correct position, cant use seek_ft */
-+ ft[i].ft_pos = 0;
- fseeko(ft[i].ft_fp, 0, SEEK_SET);
-
- nlen[i] = 0;
-@@ -460,11 +467,11 @@ start:
- nlen[i]--;
- /* Now we copy the line offsets into ix */
- ix[i] = xmalloc((nlen[i] + 2) * sizeof(ix[i][0]));
-- for (int j = 0; j < nlen[i] + 1; j++)
-+ for (j = 0; j < nlen[i] + 1; j++)
- ix[i][j] = nfile[i][j].offset;
- }
-
-- /* lenght of prefix and suffix is calculated */
-+ /* length of prefix and suffix is calculated */
- for (; pref < nlen[0] && pref < nlen[1] &&
- nfile[0][pref + 1].value == nfile[1][pref + 1].value;
- pref++);
-@@ -475,10 +482,10 @@ start:
- * the result being sorted and stored in sfile[fileno],
- * and their sizes are stored in slen[fileno]
- */
-- for (int j = 0; j < 2; j++) {
-+ for (j = 0; j < 2; j++) {
- sfile[j] = nfile[j] + pref;
- slen[j] = nlen[j] - pref - suff;
-- for (int i = 0; i <= slen[j]; i++)
-+ for (i = 0; i <= slen[j]; i++)
- sfile[j][i].serial = i;
- qsort(sfile[j] + 1, slen[j], sizeof(*sfile[j]), line_compar);
- }
-@@ -494,7 +501,7 @@ start:
- free(nfile[1]);
-
- class = xmalloc((slen[0] + 1) * sizeof(class[0]));
-- for (int i = 1; i <= slen[0]; i++) /* Unsorting */
-+ for (i = 1; i <= slen[0]; i++) /* Unsorting */
- class[sfile[0][i].serial] = sfile[0][i].value;
- free(nfile[0]);
- #else
-@@ -512,7 +519,7 @@ start:
- * are initialized with 0 (no matches), so that function stone can
- * then assign them their right values
- */
-- for (int i = 0, delta = nlen[1] - nlen[0]; i <= nlen[0]; i++)
-+ for (i = 0, delta = nlen[1] - nlen[0]; i <= nlen[0]; i++)
- J[i] = i <= pref ? i :
- i > (nlen[0] - suff) ? (i + delta) : 0;
- /* Here the magic is performed */
-@@ -526,14 +533,14 @@ start:
- * which, due to limitations intrinsic to any hashing algorithm,
- * are different but ended up confounded as the same
- */
-- for (int i = 1; i <= nlen[0]; i++) {
-+ for (i = 1; i <= nlen[0]; i++) {
- if (!J[i])
- continue;
-
- seek_ft(&ft[0], ix[0][i - 1]);
- seek_ft(&ft[1], ix[1][J[i] - 1]);
-
-- for (int j = J[i]; i <= nlen[0] && J[i] == j; i++, j++) {
-+ for (j = J[i]; i <= nlen[0] && J[i] == j; i++, j++) {
- token_t tok0 = 0, tok1 = 0;
- do {
- tok0 = read_token(&ft[0], tok0);
-@@ -555,13 +562,18 @@ static bool diff(FILE* fp[2], char *file
- {
- int nlen[2];
- off_t *ix[2];
-- FILE_and_pos_t ft[2] = { { fp[0] }, { fp[1] } };
-- int *J = create_J(ft, nlen, ix);
--
-- bool anychange = false;
-+ FILE_and_pos_t ft[2];
- typedef struct { int a, b; } vec_t[2];
- vec_t *vec = NULL;
-- int i = 1, idx = -1;
-+ int i = 1, j, k, idx = -1;
-+ bool anychange = false;
-+ int *J;
-+
-+ ft[0].ft_fp = fp[0];
-+ ft[1].ft_fp = fp[1];
-+ /* note that ft[i].ft_pos is unintitalized, create_J()
-+ * must not assume otherwise */
-+ J = create_J(ft, nlen, ix);
-
- do {
- bool nonempty = false;
-@@ -596,8 +608,8 @@ static bool diff(FILE* fp[2], char *file
- break;
- }
-
-- for (int j = 0; j < 2; j++)
-- for (int k = v[j].a; k < v[j].b; k++)
|
[-]
[+]
|
Deleted |
busybox-1.16.0-defconfig.patch
^
|
@@ -1,438 +0,0 @@
-diff -urpN busybox-1.16.0/scripts/defconfig busybox-1.16.0-defconfig/scripts/defconfig
---- busybox-1.16.0/scripts/defconfig 2010-01-25 01:59:38.000000000 +0100
-+++ busybox-1.16.0-defconfig/scripts/defconfig 2010-02-21 01:53:15.000000000 +0100
-@@ -1,7 +1,7 @@
- #
- # Automatically generated make config: don't edit
--# Busybox version: 1.15.0.svn
--# Fri Aug 21 00:14:11 2009
-+# Busybox version: 1.16.0
-+# Wed Jan 27 20:00:00 2010
- #
- CONFIG_HAVE_DOT_CONFIG=y
-
-@@ -14,6 +14,8 @@ CONFIG_HAVE_DOT_CONFIG=y
- #
- # CONFIG_DESKTOP is not set
- # CONFIG_EXTRA_COMPAT is not set
-+CONFIG_INCLUDE_SUSv2=y
-+# CONFIG_USE_PORTABLE_CODE is not set
- CONFIG_FEATURE_BUFFERS_USE_MALLOC=y
- # CONFIG_FEATURE_BUFFERS_GO_ON_STACK is not set
- # CONFIG_FEATURE_BUFFERS_GO_IN_BSS is not set
-@@ -22,7 +24,7 @@ CONFIG_FEATURE_VERBOSE_USAGE=y
- CONFIG_FEATURE_COMPRESS_USAGE=y
- CONFIG_FEATURE_INSTALLER=y
- CONFIG_LOCALE_SUPPORT=y
--# CONFIG_FEATURE_ASSUME_UNICODE is not set
-+CONFIG_FEATURE_ASSUME_UNICODE=y
- # CONFIG_FEATURE_CHECK_UNICODE_IN_ENV is not set
- CONFIG_LONG_OPTS=y
- CONFIG_FEATURE_DEVPTS=y
-@@ -59,7 +61,6 @@ CONFIG_EXTRA_CFLAGS=""
- CONFIG_NO_DEBUG_LIB=y
- # CONFIG_DMALLOC is not set
- # CONFIG_EFENCE is not set
--CONFIG_INCLUDE_SUSv2=y
-
- #
- # Installation Options
-@@ -120,10 +121,11 @@ CONFIG_FEATURE_CPIO_P=y
- # CONFIG_FEATURE_DPKG_DEB_EXTRACT_ONLY is not set
- CONFIG_GUNZIP=y
- CONFIG_GZIP=y
-+CONFIG_FEATURE_GZIP_LONG_OPTIONS=y
- CONFIG_LZOP=y
- # CONFIG_LZOP_COMPR_HIGH is not set
--# CONFIG_RPM2CPIO is not set
--# CONFIG_RPM is not set
-+CONFIG_RPM2CPIO=y
-+CONFIG_RPM=y
- CONFIG_TAR=y
- CONFIG_FEATURE_TAR_CREATE=y
- CONFIG_FEATURE_TAR_AUTODETECT=y
-@@ -133,6 +135,7 @@ CONFIG_FEATURE_TAR_OLDSUN_COMPATIBILITY=
- CONFIG_FEATURE_TAR_GNU_EXTENSIONS=y
- CONFIG_FEATURE_TAR_LONG_OPTIONS=y
- CONFIG_FEATURE_TAR_UNAME_GNAME=y
-+CONFIG_FEATURE_TAR_NOPRESERVE_TIME=y
- CONFIG_UNCOMPRESS=y
- CONFIG_UNLZMA=y
- CONFIG_FEATURE_LZMA_FAST=y
-@@ -148,15 +151,19 @@ CONFIG_CATV=y
- CONFIG_CHGRP=y
- CONFIG_CHMOD=y
- CONFIG_CHOWN=y
-+CONFIG_FEATURE_CHOWN_LONG_OPTIONS=y
- CONFIG_CHROOT=y
- CONFIG_CKSUM=y
- CONFIG_COMM=y
- CONFIG_CP=y
-+CONFIG_FEATURE_CP_LONG_OPTIONS=y
- CONFIG_CUT=y
- CONFIG_DATE=y
- CONFIG_FEATURE_DATE_ISOFMT=y
-+CONFIG_FEATURE_DATE_COMPAT=y
- CONFIG_DD=y
- CONFIG_FEATURE_DD_SIGNAL_HANDLING=y
-+CONFIG_FEATURE_DD_THIRD_STATUS_LINE=y
- CONFIG_FEATURE_DD_IBS_OBS=y
- CONFIG_DF=y
- CONFIG_FEATURE_DF_FANCY=y
-@@ -271,7 +278,7 @@ CONFIG_FEATURE_AUTOWIDTH=y
- CONFIG_FEATURE_HUMAN_READABLE=y
-
- #
--# Common options for md5sum, sha1sum
-+# Common options for md5sum, sha1sum, sha256sum, sha512sum
- #
- CONFIG_FEATURE_MD5_SHA1_SUM_CHECK=y
-
-@@ -318,9 +325,8 @@ CONFIG_AWK=y
- CONFIG_FEATURE_AWK_LIBM=y
- CONFIG_CMP=y
- CONFIG_DIFF=y
--CONFIG_FEATURE_DIFF_BINARY=y
-+CONFIG_FEATURE_DIFF_LONG_OPTIONS=y
- CONFIG_FEATURE_DIFF_DIR=y
--CONFIG_FEATURE_DIFF_MINIMAL=y
- CONFIG_ED=y
- CONFIG_PATCH=y
- CONFIG_SED=y
-@@ -364,6 +370,7 @@ CONFIG_FEATURE_FIND_DELETE=y
- CONFIG_FEATURE_FIND_PATH=y
- CONFIG_FEATURE_FIND_REGEX=y
- # CONFIG_FEATURE_FIND_CONTEXT is not set
-+CONFIG_FEATURE_FIND_LINKS=y
- CONFIG_GREP=y
- CONFIG_FEATURE_GREP_EGREP_ALIAS=y
- CONFIG_FEATURE_GREP_FGREP_ALIAS=y
-@@ -453,6 +460,7 @@ CONFIG_FEATURE_MODPROBE_SMALL_CHECK_ALRE
- # Options common to multiple modutils
- #
- # CONFIG_FEATURE_2_4_MODULES is not set
-+# CONFIG_FEATURE_INSMOD_TRY_MMAP is not set
- # CONFIG_FEATURE_INSMOD_VERSION_CHECKING is not set
- # CONFIG_FEATURE_INSMOD_KSYMOOPS_SYMBOLS is not set
- # CONFIG_FEATURE_INSMOD_LOADINKMEM is not set
-@@ -467,8 +475,8 @@ CONFIG_DEFAULT_DEPMOD_FILE="modules.dep"
- #
- # Linux System Utilities
- #
--# CONFIG_ACPID is not set
--# CONFIG_FEATURE_ACPID_COMPAT is not set
-+CONFIG_ACPID=y
-+CONFIG_FEATURE_ACPID_COMPAT=y
- CONFIG_BLKID=y
- CONFIG_DMESG=y
- CONFIG_FEATURE_DMESG_PRETTY=y
-@@ -488,12 +496,14 @@ CONFIG_FEATURE_FDISK_ADVANCED=y
- CONFIG_FINDFS=y
- CONFIG_FREERAMDISK=y
- CONFIG_FSCK_MINIX=y
-+CONFIG_MKFS_EXT2=y
- CONFIG_MKFS_MINIX=y
-
- #
- # Minix filesystem support
- #
- CONFIG_FEATURE_MINIX2=y
-+# CONFIG_MKFS_REISER is not set
- CONFIG_MKFS_VFAT=y
- CONFIG_GETOPT=y
- CONFIG_FEATURE_GETOPT_LONG=y
-@@ -506,6 +516,8 @@ CONFIG_FEATURE_HWCLOCK_ADJTIME_FHS=y
- CONFIG_IPCRM=y
- CONFIG_IPCS=y
- CONFIG_LOSETUP=y
-+CONFIG_LSPCI=y
-+CONFIG_LSUSB=y
- CONFIG_MDEV=y
- CONFIG_FEATURE_MDEV_CONF=y
- CONFIG_FEATURE_MDEV_RENAME=y
-@@ -518,6 +530,7 @@ CONFIG_MORE=y
- CONFIG_FEATURE_USE_TERMIOS=y
- CONFIG_VOLUMEID=y
- CONFIG_FEATURE_VOLUMEID_EXT=y
-+CONFIG_FEATURE_VOLUMEID_BTRFS=y
- CONFIG_FEATURE_VOLUMEID_REISERFS=y
- CONFIG_FEATURE_VOLUMEID_FAT=y
- CONFIG_FEATURE_VOLUMEID_HFS=y
-@@ -595,11 +608,12 @@ CONFIG_DEVMEM=y
- CONFIG_EJECT=y
- CONFIG_FEATURE_EJECT_SCSI=y
- CONFIG_FBSPLASH=y
--# CONFIG_FLASH_LOCK is not set
--# CONFIG_FLASH_UNLOCK is not set
--# CONFIG_FLASH_ERASEALL is not set
-+CONFIG_FLASHCP=y
-+CONFIG_FLASH_LOCK=y
-+CONFIG_FLASH_UNLOCK=y
-+CONFIG_FLASH_ERASEALL=y
- CONFIG_IONICE=y
--# CONFIG_INOTIFYD is not set
-+CONFIG_INOTIFYD=y
- CONFIG_LAST=y
- # CONFIG_FEATURE_LAST_SMALL is not set
- CONFIG_FEATURE_LAST_FANCY=y
-@@ -632,8 +646,8 @@ CONFIG_RUNLEVEL=y
- CONFIG_RX=y
- CONFIG_SETSID=y
- CONFIG_STRINGS=y
--# CONFIG_TASKSET is not set
--# CONFIG_FEATURE_TASKSET_FANCY is not set
-+CONFIG_TASKSET=y
-+CONFIG_FEATURE_TASKSET_FANCY=y
- CONFIG_TIME=y
- CONFIG_TIMEOUT=y
- CONFIG_TTYSIZE=y
-@@ -658,6 +672,7 @@ CONFIG_ETHER_WAKE=y
- CONFIG_FAKEIDENTD=y
- CONFIG_FTPD=y
- CONFIG_FEATURE_FTP_WRITE=y
-+CONFIG_FEATURE_FTPD_ACCEPT_BROKEN_LIST=y
- CONFIG_FTPGET=y
- CONFIG_FTPPUT=y
- CONFIG_FEATURE_FTPGETPUT_LONG_OPTIONS=y
-@@ -723,6 +738,8 @@ CONFIG_NETSTAT=y
- CONFIG_FEATURE_NETSTAT_WIDE=y
- CONFIG_FEATURE_NETSTAT_PRG=y
|
[-]
[+]
|
Deleted |
busybox-1.16.0-dhcpd.patch
^
|
@@ -1,12 +0,0 @@
-diff -urpN busybox-1.16.0/networking/udhcp/dhcpd.c busybox-1.16.0-dhcpd/networking/udhcp/dhcpd.c
---- busybox-1.16.0/networking/udhcp/dhcpd.c 2010-01-25 01:59:38.000000000 +0100
-+++ busybox-1.16.0-dhcpd/networking/udhcp/dhcpd.c 2010-03-27 20:07:58.000000000 +0100
-@@ -61,7 +61,7 @@ int udhcpd_main(int argc UNUSED_PARAM, c
- logmode |= LOGMODE_SYSLOG;
- }
- #if ENABLE_FEATURE_UDHCP_PORT
-- if (opt & 4) { /* -P */
-+ if (opt & 8) { /* -P */
- SERVER_PORT = xatou16(str_P);
- CLIENT_PORT = SERVER_PORT + 1;
- }
|
[-]
[+]
|
Deleted |
busybox-1.16.0-fbsplash.patch
^
|
@@ -1,142 +0,0 @@
-diff -urpN busybox-1.16.0/miscutils/fbsplash.c busybox-1.16.0-fbsplash/miscutils/fbsplash.c
---- busybox-1.16.0/miscutils/fbsplash.c 2010-01-25 01:59:38.000000000 +0100
-+++ busybox-1.16.0-fbsplash/miscutils/fbsplash.c 2010-03-14 23:59:21.000000000 +0100
-@@ -84,7 +84,7 @@ static void fb_open(const char *strfb_de
- // map the device in memory
- G.addr = mmap(NULL,
- G.scr_var.xres * G.scr_var.yres
-- * BYTES_PER_PIXEL /*(G.scr_var.bits_per_pixel / 8)*/ ,
-+ * BYTES_PER_PIXEL /*(G.scr_var.bits_per_pixel / 8)*/,
- PROT_WRITE, MAP_SHARED, fbfd, 0);
- if (G.addr == MAP_FAILED)
- bb_perror_msg_and_die("mmap");
-@@ -121,7 +121,7 @@ static void fb_drawrectangle(void)
- // vertical lines
- ptr1 = (DATA*)(G.addr + (G.nbar_posy * G.scr_var.xres + G.nbar_posx) * BYTES_PER_PIXEL);
- ptr2 = (DATA*)(G.addr + (G.nbar_posy * G.scr_var.xres + G.nbar_posx + G.nbar_width - 1) * BYTES_PER_PIXEL);
-- cnt = G.nbar_height - 1 /* HUH?! G.nbar_posy + G.nbar_height - 1 - G.nbar_posy*/;
-+ cnt = G.nbar_height - 1;
- do {
- *ptr1 = thispix; ptr1 += G.scr_var.xres;
- *ptr2 = thispix; ptr2 += G.scr_var.xres;
-@@ -216,70 +216,69 @@ static void fb_drawprogressbar(unsigned
- */
- static void fb_drawimage(void)
- {
-- char *head, *ptr;
- FILE *theme_file;
-+ char *read_ptr;
- unsigned char *pixline;
- unsigned i, j, width, height, line_size;
-
-- if (LONE_DASH(G.image_filename))
-+ if (LONE_DASH(G.image_filename)) {
- theme_file = stdin;
-- else {
-+ } else {
- int fd = open_zipped(G.image_filename);
- if (fd < 0)
- bb_simple_perror_msg_and_die(G.image_filename);
- theme_file = xfdopen_for_read(fd);
- }
-- head = xmalloc(256);
-
-- /* parse ppm header
-- * - A ppm image’s magic number is the two characters "P6".
-+ /* Parse ppm header:
-+ * - Magic: two characters "P6".
- * - Whitespace (blanks, TABs, CRs, LFs).
- * - A width, formatted as ASCII characters in decimal.
- * - Whitespace.
-- * - A height, again in ASCII decimal.
-+ * - A height, ASCII decimal.
- * - Whitespace.
-- * - The maximum color value (Maxval), again in ASCII decimal. Must be
-- * less than 65536.
-+ * - The maximum color value, ASCII decimal, in 0..65535
- * - Newline or other single whitespace character.
-+ * (we support newline only)
- * - A raster of Width * Height pixels in triplets of rgb
-- * in pure binary by 1 (or not implemented 2) bytes.
-+ * in pure binary by 1 or 2 bytes. (we support only 1 byte)
- */
-+#define concat_buf bb_common_bufsiz1
-+ read_ptr = concat_buf;
- while (1) {
-- if (fgets(head, 256, theme_file) == NULL
-- /* do not overrun the buffer */
-- || strlen(bb_common_bufsiz1) >= sizeof(bb_common_bufsiz1) - 256)
-+ int w, h, max_color_val;
-+ int rem = concat_buf + sizeof(concat_buf) - read_ptr;
-+ if (rem < 2
-+ || fgets(read_ptr, rem, theme_file) == NULL
-+ ) {
- bb_error_msg_and_die("bad PPM file '%s'", G.image_filename);
--
-- ptr = memchr(skip_whitespace(head), '#', 256);
-- if (ptr != NULL)
-- *ptr = 0; /* ignore comments */
-- strcat(bb_common_bufsiz1, head);
-- // width, height, max_color_val
-- if (sscanf(bb_common_bufsiz1, "P6 %u %u %u", &width, &height, &i) == 3
-- && i <= 255)
-+ }
-+ read_ptr = strchrnul(read_ptr, '#');
-+ *read_ptr = '\0'; /* ignore #comments */
-+ if (sscanf(concat_buf, "P6 %u %u %u", &w, &h, &max_color_val) == 3
-+ && max_color_val <= 255
-+ ) {
-+ width = w; /* w is on stack, width may be in register */
-+ height = h;
- break;
-- /* If we do not find a signature throughout the whole file then
-- we will diagnose this via EOF on read in the head of the loop. */
-+ }
- }
-
-- if (ENABLE_FEATURE_CLEAN_UP)
-- free(head);
-- if (width != G.scr_var.xres || height != G.scr_var.yres)
-- bb_error_msg_and_die("PPM %dx%d does not match screen %dx%d",
-- width, height, G.scr_var.xres, G.scr_var.yres);
- line_size = width*3;
-+ pixline = xmalloc(line_size);
-+
- if (width > G.scr_var.xres)
- width = G.scr_var.xres;
- if (height > G.scr_var.yres)
- height = G.scr_var.yres;
--
-- pixline = xmalloc(line_size);
- for (j = 0; j < height; j++) {
-- unsigned char *pixel = pixline;
-- DATA *src = (DATA *)(G.addr + j * G.scr_fix.line_length);
-+ unsigned char *pixel;
-+ DATA *src;
-
- if (fread(pixline, 1, line_size, theme_file) != line_size)
- bb_error_msg_and_die("bad PPM file '%s'", G.image_filename);
-+ pixel = pixline;
-+ src = (DATA *)(G.addr + j * G.scr_fix.line_length);
- for (i = 0; i < width; i++) {
- unsigned thispix;
- thispix = (((unsigned)pixel[0] << 8) & 0xf800)
-@@ -289,8 +288,7 @@ static void fb_drawimage(void)
- pixel += 3;
- }
- }
-- if (ENABLE_FEATURE_CLEAN_UP)
-- free(pixline);
-+ free(pixline);
- fclose(theme_file);
- }
-
-@@ -312,7 +310,7 @@ static void init(const char *cfg_filenam
- char *token[2];
- parser_t *parser = config_open2(cfg_filename, xfopen_stdin);
- while (config_read(parser, token, 2, 2, "#=",
-- (PARSE_NORMAL | PARSE_MIN_DIE) & ~(PARSE_TRIM | PARSE_COLLAPSE))) {
-+ (PARSE_NORMAL | PARSE_MIN_DIE) & ~(PARSE_TRIM | PARSE_COLLAPSE))) {
- unsigned val = xatoi_u(token[1]);
- int i = index_in_strings(param_names, token[0]);
- if (i < 0)
|
[-]
[+]
|
Deleted |
busybox-1.16.0-hush.patch
^
|
@@ -1,14 +0,0 @@
-diff -urpN busybox-1.16.0/shell/hush.c busybox-1.16.0-hush/shell/hush.c
---- busybox-1.16.0/shell/hush.c 2010-01-25 17:51:24.000000000 +0100
-+++ busybox-1.16.0-hush/shell/hush.c 2010-03-22 01:46:39.000000000 +0100
-@@ -3568,7 +3568,9 @@ static void execvp_or_die(char **argv)
- {
- debug_printf_exec("execing '%s'\n", argv[0]);
- sigprocmask(SIG_SETMASK, &G.inherited_set, NULL);
-- execvp(argv[0], argv);
-+ /* if FEATURE_SH_STANDALONE, "exec <applet_name>" should work,
-+ * therefore we should use BB_EXECVP, not execvp */
-+ BB_EXECVP(argv[0], argv);
- bb_perror_msg("can't execute '%s'", argv[0]);
- _exit(127); /* bash compat */
- }
|
[-]
[+]
|
Deleted |
busybox-1.16.0-linux_swap.patch
^
|
@@ -1,16 +0,0 @@
-diff -urpN busybox-1.16.0/util-linux/volume_id/linux_swap.c busybox-1.16.0-linux_swap/util-linux/volume_id/linux_swap.c
---- busybox-1.16.0/util-linux/volume_id/linux_swap.c 2010-01-25 01:59:39.000000000 +0100
-+++ busybox-1.16.0-linux_swap/util-linux/volume_id/linux_swap.c 2010-02-21 01:53:21.000000000 +0100
-@@ -52,7 +52,11 @@ int FAST_FUNC volume_id_probe_linux_swap
- goto found;
- }
-
-- if (memcmp(buf, "SWAPSPACE2", 10) == 0) {
-+ if (memcmp(buf, "SWAPSPACE2", 10) == 0
-+ || memcmp(buf, "S1SUSPEND", 9) == 0
-+ || memcmp(buf, "S2SUSPEND", 9) == 0
-+ || memcmp(buf, "ULSUSPEND", 9) == 0
-+ ) {
- sw = volume_id_get_buffer(id, off, sizeof(struct swap_header_v1_2));
- if (sw == NULL)
- return -1;
|
[-]
[+]
|
Deleted |
busybox-1.16.0-md5_sha_compat.patch
^
|
@@ -1,16 +0,0 @@
-diff -urpN busybox-1.16.0/coreutils/md5_sha1_sum.c busybox-1.16.0-md5_sha_compat/coreutils/md5_sha1_sum.c
---- busybox-1.16.0/coreutils/md5_sha1_sum.c 2010-01-25 01:59:38.000000000 +0100
-+++ busybox-1.16.0-md5_sha_compat/coreutils/md5_sha1_sum.c 2010-02-21 01:53:28.000000000 +0100
-@@ -101,8 +101,10 @@ int md5_sha1_sum_main(int argc UNUSED_PA
- unsigned flags;
- /*hash_algo_t hash_algo = applet_name[3];*/
-
-- if (ENABLE_FEATURE_MD5_SHA1_SUM_CHECK)
-- flags = getopt32(argv, "scw");
-+ if (ENABLE_FEATURE_MD5_SHA1_SUM_CHECK) {
-+ /* -b "binary", -t "text" are ignored (shaNNNsum compat) */
-+ flags = getopt32(argv, "scwbt");
-+ }
- else optind = 1;
- argv += optind;
- //argc -= optind;
|
[-]
[+]
|
Deleted |
busybox-1.16.0-standalone_single.patch
^
|
@@ -1,78 +0,0 @@
-diff -urpN busybox-1.16.0/applets/applet_tables.c busybox-1.16.0-standalone_single/applets/applet_tables.c
---- busybox-1.16.0/applets/applet_tables.c 2010-01-25 01:59:38.000000000 +0100
-+++ busybox-1.16.0-standalone_single/applets/applet_tables.c 2010-03-21 19:44:06.000000000 +0100
-@@ -79,6 +79,7 @@ int main(int argc, char **argv)
- }
- printf("\n");
-
-+ printf("#ifndef SKIP_definitions\n");
- printf("const char applet_names[] ALIGN1 = \"\"\n");
- for (i = 0; i < NUM_APPLETS; i++) {
- printf("\"%s\" \"\\0\"\n", applets[i].name);
-@@ -120,9 +121,10 @@ int main(int argc, char **argv)
- printf("0x%02x,\n", v);
- i++;
- }
-- printf("};\n\n");
-+ printf("};\n");
- #endif
--
-+ printf("#endif /* SKIP_definitions */\n");
-+ printf("\n");
- printf("#define MAX_APPLET_NAME_LEN %u\n", MAX_APPLET_NAME_LEN);
-
- return 0;
-diff -urpN busybox-1.16.0/shell/ash.c busybox-1.16.0-standalone_single/shell/ash.c
---- busybox-1.16.0/shell/ash.c 2010-01-25 01:59:38.000000000 +0100
-+++ busybox-1.16.0-standalone_single/shell/ash.c 2010-03-21 19:44:06.000000000 +0100
-@@ -43,8 +43,6 @@
- #endif
-
- #include "busybox.h" /* for applet_names */
--//TODO: pull in some .h and find out do we have SINGLE_APPLET_MAIN?
--//#include "applet_tables.h" doesn't work
- #include <paths.h>
- #include <setjmp.h>
- #include <fnmatch.h>
-@@ -58,12 +56,15 @@
- # define CLEAR_RANDOM_T(rnd) ((void)0)
- #endif
-
--#if defined SINGLE_APPLET_MAIN
-+#define SKIP_definitions 1
-+#include "applet_tables.h"
-+#undef SKIP_definitions
-+#if NUM_APPLETS == 1
- /* STANDALONE does not make sense, and won't compile */
- # undef CONFIG_FEATURE_SH_STANDALONE
- # undef ENABLE_FEATURE_SH_STANDALONE
- # undef IF_FEATURE_SH_STANDALONE
--# undef IF_NOT_FEATURE_SH_STANDALONE(...)
-+# undef IF_NOT_FEATURE_SH_STANDALONE
- # define ENABLE_FEATURE_SH_STANDALONE 0
- # define IF_FEATURE_SH_STANDALONE(...)
- # define IF_NOT_FEATURE_SH_STANDALONE(...) __VA_ARGS__
-diff -urpN busybox-1.16.0/shell/hush.c busybox-1.16.0-standalone_single/shell/hush.c
---- busybox-1.16.0/shell/hush.c 2010-01-25 17:51:24.000000000 +0100
-+++ busybox-1.16.0-standalone_single/shell/hush.c 2010-03-21 19:44:06.000000000 +0100
-@@ -125,14 +125,18 @@
- # define USE_FOR_MMU(...)
- #endif
-
--#if defined SINGLE_APPLET_MAIN
-+#define SKIP_definitions 1
-+#include "applet_tables.h"
-+#undef SKIP_definitions
-+#if NUM_APPLETS == 1
- /* STANDALONE does not make sense, and won't compile */
- # undef CONFIG_FEATURE_SH_STANDALONE
- # undef ENABLE_FEATURE_SH_STANDALONE
- # undef IF_FEATURE_SH_STANDALONE
-+# undef IF_NOT_FEATURE_SH_STANDALONE
-+# define ENABLE_FEATURE_SH_STANDALONE 0
- # define IF_FEATURE_SH_STANDALONE(...)
- # define IF_NOT_FEATURE_SH_STANDALONE(...) __VA_ARGS__
--# define ENABLE_FEATURE_SH_STANDALONE 0
- #endif
-
- #if !ENABLE_HUSH_INTERACTIVE
|
[-]
[+]
|
Deleted |
busybox-1.16.0-syslogd.patch
^
|
@@ -1,12 +0,0 @@
-diff -urpN busybox-1.16.0/sysklogd/syslogd.c busybox-1.16.0-syslogd/sysklogd/syslogd.c
---- busybox-1.16.0/sysklogd/syslogd.c 2010-01-25 01:59:38.000000000 +0100
-+++ busybox-1.16.0-syslogd/sysklogd/syslogd.c 2010-02-21 01:53:33.000000000 +0100
-@@ -698,7 +698,7 @@ int syslogd_main(int argc UNUSED_PARAM,
- if (!(opts & OPT_nofork)) {
- bb_daemonize_or_rexec(DAEMON_CHDIR_ROOT, argv);
- }
-- umask(0);
-+ //umask(0); - why??
- write_pidfile("/var/run/syslogd.pid");
- do_syslogd();
- /* return EXIT_SUCCESS; */
|
[-]
[+]
|
Deleted |
busybox-1.16.0-tail.patch
^
|
@@ -1,13 +0,0 @@
-diff -urpN busybox-1.16.0/coreutils/tail.c busybox-1.16.0-tail/coreutils/tail.c
---- busybox-1.16.0/coreutils/tail.c 2010-03-08 22:49:32.000000000 +0100
-+++ busybox-1.16.0-tail/coreutils/tail.c 2010-03-12 22:16:07.105943986 +0100
-@@ -241,7 +241,8 @@ int tail_main(int argc, char **argv)
- } while (nwrite);
- }
- }
-- xwrite(STDOUT_FILENO, buf + nread - nwrite, nwrite);
-+ if (nwrite > 0)
-+ xwrite(STDOUT_FILENO, buf + nread - nwrite, nwrite);
- } else if (count) {
- if (COUNT_BYTES) {
- taillen += nread;
|
[-]
[+]
|
Deleted |
busybox-1.16.0-tftp.patch
^
|
@@ -1,12 +0,0 @@
-diff -urpN busybox-1.16.0/networking/tftp.c busybox-1.16.0-tftp/networking/tftp.c
---- busybox-1.16.0/networking/tftp.c 2010-01-25 01:59:38.000000000 +0100
-+++ busybox-1.16.0-tftp/networking/tftp.c 2010-02-21 01:53:41.000000000 +0100
-@@ -308,7 +308,7 @@ static int tftp_protocol(
-
- if (!ENABLE_TFTP || our_lsa) { /* tftpd */
- /* Open file (must be after changing user) */
-- local_fd = open(local_file, open_mode);
-+ local_fd = open(local_file, open_mode, 0666);
- if (local_fd < 0) {
- error_pkt_reason = ERR_NOFILE;
- strcpy((char*)error_pkt_str, "can't open file");
|
[-]
[+]
|
Deleted |
busybox-1.16.0-touch.patch
^
|
@@ -1,21 +0,0 @@
-diff -urpN busybox-1.16.0/coreutils/touch.c busybox-1.16.0-touch/coreutils/touch.c
---- busybox-1.16.0/coreutils/touch.c 2010-01-25 01:59:38.000000000 +0100
-+++ busybox-1.16.0-touch/coreutils/touch.c 2010-03-21 13:05:34.000000000 +0100
-@@ -104,7 +104,7 @@ int touch_main(int argc UNUSED_PARAM, ch
- }
-
- do {
-- if (utimes(*argv, reference_file ? timebuf : NULL) != 0) {
-+ if (utimes(*argv, (reference_file || date_str) ? timebuf : NULL) != 0) {
- if (errno == ENOENT) { /* no such file */
- if (opts) { /* creation is disabled, so ignore */
- continue;
-@@ -113,7 +113,7 @@ int touch_main(int argc UNUSED_PARAM, ch
- fd = open(*argv, O_RDWR | O_CREAT, 0666);
- if (fd >= 0) {
- xclose(fd);
-- if (reference_file)
-+ if (reference_file || date_str)
- utimes(*argv, timebuf);
- continue;
- }
|
[-]
[+]
|
Deleted |
busybox-1.16.0-udhcp-services.patch
^
|
@@ -1,24 +0,0 @@
---- networking/udhcp/options.c.orig 2009-06-22 00:40:29.000000000 +0200
-+++ networking/udhcp/options.c 2009-08-02 13:40:59.000000000 +0200
-@@ -45,6 +45,10 @@
- { OPTION_STRING , 0x42 }, /* tftp */
- { OPTION_STRING , 0x43 }, /* bootfile */
- { OPTION_STRING , 0x4D }, /* userclass */
-+ { OPTION_IP | OPTION_LIST , 0x45 }, /* DHCP_SMTP_SERVER */
-+ { OPTION_IP | OPTION_LIST , 0x46 }, /* DHCP_POP3_SERVER */
-+ { OPTION_IP | OPTION_LIST , 0x4a }, /* DHCP_IRC_SERVER */
-+ { OPTION_IP | OPTION_LIST , 0x48 }, /* DHCP_WWW_SERVER */
- #if ENABLE_FEATURE_UDHCP_RFC3397
- { OPTION_STR1035 | OPTION_LIST , 0x77 }, /* search */
- #endif
-@@ -94,6 +98,10 @@
- "tftp" "\0"
- "bootfile" "\0"
- "userclass" "\0"
-+ "smtpsrv" "\0" /* DHCP_SMTP_SERVER */
-+ "pop3srv" "\0" /* DHCP_POP3_SERVER */
-+ "ircsrv" "\0" /* DHCP_IRC_SERVER */
-+ "wwwsrv" "\0" /* DHCP_WWW_SERVER */
- #if ENABLE_FEATURE_UDHCP_RFC3397
- "search" "\0"
- #endif
|
[-]
[+]
|
Deleted |
busybox-1.16.0-usage.patch
^
|
@@ -1,1141 +0,0 @@
-diff -urpN busybox-1.16.0/include/usage.h busybox-1.16.0-usage/include/usage.h
---- busybox-1.16.0/include/usage.h 2010-01-25 01:59:38.000000000 +0100
-+++ busybox-1.16.0-usage/include/usage.h 2010-02-21 01:53:47.000000000 +0100
-@@ -16,7 +16,7 @@
- #define NOUSAGE_STR "\b"
-
- #define acpid_trivial_usage \
-- "[-d] [-c CONFDIR] [-l LOGFILE] [-e PROC_EVENT_FILE] [EVDEV_EVENT_FILE...]"
-+ "[-d] [-c CONFDIR] [-l LOGFILE] [-e PROC_EVENT_FILE] [EVDEV_EVENT_FILE]..."
- #define acpid_full_usage "\n\n" \
- "Listen to ACPI events and spawn specific helpers on event arrival\n" \
- "\nOptions:" \
-@@ -33,7 +33,7 @@
- "# acpid -d /dev/input/event*\n"
-
- #define addgroup_trivial_usage \
-- "[-g GID] " IF_FEATURE_ADDUSER_TO_GROUP("[user_name] ") "group_name"
-+ "[-g GID] " IF_FEATURE_ADDUSER_TO_GROUP("[USER] ") "GROUP"
- #define addgroup_full_usage "\n\n" \
- "Add a group " IF_FEATURE_ADDUSER_TO_GROUP("or add a user to a group") "\n" \
- "\nOptions:" \
-@@ -41,7 +41,7 @@
- "\n -S Create a system group" \
-
- #define adduser_trivial_usage \
-- "[OPTIONS] user_name"
-+ "[OPTIONS] USER"
- #define adduser_full_usage "\n\n" \
- "Add a user\n" \
- "\nOptions:" \
-@@ -55,16 +55,16 @@
- "\n -u UID User id" \
-
- #define adjtimex_trivial_usage \
-- "[-q] [-o offset] [-f frequency] [-p timeconstant] [-t tick]"
-+ "[-q] [-o OFF] [-f FREQ] [-p TCONST] [-t TICK]"
- #define adjtimex_full_usage "\n\n" \
-- "Read and optionally set system timebase parameters. See adjtimex(2).\n" \
-+ "Read and optionally set system timebase parameters. See adjtimex(2)\n" \
- "\nOptions:" \
-- "\n -q Quiet" \
-- "\n -o offset Time offset, microseconds" \
-- "\n -f frequency Frequency adjust, integer kernel units (65536 is 1ppm)" \
-- "\n (positive values make clock run faster)" \
-- "\n -t tick Microseconds per tick, usually 10000" \
-- "\n -p timeconstant" \
-+ "\n -q Quiet" \
-+ "\n -o OFF Time offset, microseconds" \
-+ "\n -f FREQ Frequency adjust, integer kernel units (65536 is 1ppm)" \
-+ "\n (positive values make clock run faster)" \
-+ "\n -t TICK Microseconds per tick, usually 10000" \
-+ "\n -p TCONST" \
-
- #define ar_trivial_usage \
- "[-o] [-v] [-p] [-t] [-x] ARCHIVE FILES"
-@@ -78,11 +78,11 @@
- "\n -v Verbose" \
-
- #define arp_trivial_usage \
-- "\n[-vn] [-H type] [-i if] -a [hostname]" \
-- "\n[-v] [-i if] -d hostname [pub]" \
-- "\n[-v] [-H type] [-i if] -s hostname hw_addr [temp]" \
-- "\n[-v] [-H type] [-i if] -s hostname hw_addr [netmask nm] pub" \
-- "\n[-v] [-H type] [-i if] -Ds hostname ifa [netmask nm] pub"
-+ "\n[-vn] [-H HWTYPE] [-i IF] -a [HOSTNAME]" \
-+ "\n[-v] [-i IF] -d HOSTNAME [pub]" \
-+ "\n[-v] [-H HWTYPE] [-i IF] -s HOSTNAME HWADDR [temp]" \
-+ "\n[-v] [-H HWTYPE] [-i IF] -s HOSTNAME HWADDR [netmask MASK] pub" \
-+ "\n[-v] [-H HWTYPE] [-i IF] -Ds HOSTNAME IFACE [netmask MASK] pub"
- #define arp_full_usage "\n\n" \
- "Manipulate ARP cache\n" \
- "\nOptions:" \
-@@ -97,7 +97,7 @@
- "\n -H HWTYPE Hardware address type" \
-
- #define arping_trivial_usage \
-- "[-fqbDUA] [-c count] [-w timeout] [-I dev] [-s sender] target"
-+ "[-fqbDUA] [-c CNT] [-w TIMEOUT] [-I IFACE] [-s SRC_IP] DST_IP"
- #define arping_full_usage "\n\n" \
- "Send ARP requests/replies\n" \
- "\nOptions:" \
-@@ -108,10 +108,10 @@
- "\n -U Unsolicited ARP mode, update your neighbors" \
- "\n -A ARP answer mode, update your neighbors" \
- "\n -c N Stop after sending N ARP requests" \
-- "\n -w timeout Time to wait for ARP reply, in seconds" \
-- "\n -I dev Interface to use (default eth0)" \
-- "\n -s sender Sender IP address" \
-- "\n target Target IP address" \
-+ "\n -w TIMEOUT Time to wait for ARP reply, seconds" \
-+ "\n -I IFACE Interface to use (default eth0)" \
-+ "\n -s SRC_IP Sender IP address" \
-+ "\n DST_IP Target IP address" \
-
- #define sh_trivial_usage NOUSAGE_STR
- #define sh_full_usage ""
-@@ -191,19 +191,19 @@
- ) \
-
- #define bunzip2_trivial_usage \
-- "[OPTIONS] [FILE]"
-+ "[OPTIONS] [FILE]..."
- #define bunzip2_full_usage "\n\n" \
-- "Uncompress FILE (or standard input)\n" \
-+ "Uncompress FILEs (or stdin)\n" \
- "\nOptions:" \
-- "\n -c Write to standard output" \
-+ "\n -c Write to stdout" \
- "\n -f Force" \
-
- #define bzip2_trivial_usage \
- "[OPTIONS] [FILE]..."
- #define bzip2_full_usage "\n\n" \
-- "Compress FILEs (or standard input) with bzip2 algorithm.\n" \
-+ "Compress FILEs (or stdin) with bzip2 algorithm\n" \
- "\nOptions:" \
-- "\n -c Write to standard output" \
-+ "\n -c Write to stdout" \
- "\n -d Decompress" \
- "\n -f Force" \
- "\n -1..-9 Compression level" \
-@@ -214,7 +214,7 @@
- #define lzop_trivial_usage \
- "[-cfvd123456789CF] [FILE]..."
- #define lzop_full_usage "\n\n" \
-- " -c Write to standard output" \
-+ " -c Write to stdout" \
- "\n -f Force" \
- "\n -v Verbose" \
- "\n -d Decompress" \
-@@ -231,7 +231,7 @@
- #define unlzop_trivial_usage \
- "[-cfvCF] [FILE]..."
- #define unlzop_full_usage "\n\n" \
-- " -c Write to standard output" \
-+ " -c Write to stdout" \
- "\n -f Force" \
- "\n -v Verbose" \
- "\n -F Don't store or verify checksum" \
-@@ -242,11 +242,11 @@
- "Uncompress to stdout"
-
- #define unlzma_trivial_usage \
-- "[OPTIONS] [FILE]"
-+ "[OPTIONS] [FILE]..."
- #define unlzma_full_usage "\n\n" \
-- "Uncompress FILE (or standard input)\n" \
-+ "Uncompress FILE (or stdin)\n" \
- "\nOptions:" \
-- "\n -c Write to standard output" \
-+ "\n -c Write to stdout" \
- "\n -f Force" \
-
- #define lzmacat_trivial_usage \
-@@ -255,7 +255,7 @@
- "Uncompress to stdout"
-
- #define cal_trivial_usage \
-- "[-jy] [[month] year]"
-+ "[-jy] [[MONTH] YEAR]"
- #define cal_full_usage "\n\n" \
- "Display a calendar\n" \
- "\nOptions:" \
-@@ -436,21 +436,21 @@
- "\n -c BYTES Limit core file size" \
- "\n -v Verbose" \
- "\n -P Create new process group" \
-- "\n -0 Close standard input" \
-- "\n -1 Close standard output" \
-- "\n -2 Close standard error" \
-+ "\n -0 Close stdin" \
-+ "\n -1 Close stdout" \
-+ "\n -2 Close stderr" \
-
- #define setuidgid_trivial_usage \
-- "account prog args"
-+ "USER PROG ARGS"
- #define setuidgid_full_usage "\n\n" \
-- "Set uid and gid to account's uid and gid, removing all supplementary\n" \
-+ "Set uid and gid to USER's uid and gid, removing all supplementary\n" \
- "groups and run PROG"
- #define envuidgid_trivial_usage \
-- "account prog args"
-+ "USER PROG ARGS"
- #define envuidgid_full_usage "\n\n" \
-- "Set $UID to account's uid and $GID to account's gid and run PROG"
-+ "Set $UID to USER's uid and $GID to USER's gid and run PROG"
- #define envdir_trivial_usage \
-- "dir prog args"
-+ "DIR PROG ARGS"
- #define envdir_full_usage "\n\n" \
- "Set various environment variables as specified by files\n" \
- "in the directory dir and run PROG"
-@@ -477,7 +477,7 @@
- "\n a SIGXCPU after N seconds" \
-
- #define chroot_trivial_usage \
-- "NEWROOT [PROG [ARGS]]"
-+ "NEWROOT [PROG ARGS]"
|
[-]
[+]
|
Deleted |
busybox-1.16.0-wc.patch
^
|
@@ -1,12 +0,0 @@
-diff -urpN busybox-1.16.0/coreutils/wc.c busybox-1.16.0-wc/coreutils/wc.c
---- busybox-1.16.0/coreutils/wc.c 2010-03-08 22:49:32.000000000 +0100
-+++ busybox-1.16.0-wc/coreutils/wc.c 2010-03-08 22:51:29.310086707 +0100
-@@ -88,6 +88,8 @@ int wc_main(int argc UNUSED_PARAM, char
- if (!argv[0]) {
- *--argv = (char *) bb_msg_standard_input;
- fname_fmt = "\n";
-+ }
-+ if (!argv[1]) { /* zero or one filename? */
- if (!((print_type-1) & print_type)) /* exactly one option? */
- start_fmt = "%"COUNT_FMT;
- }
|
[-]
[+]
|
Deleted |
busybox-1.16.0-wget.patch
^
|
@@ -1,20 +0,0 @@
-diff -urpN busybox-1.16.0/networking/wget.c busybox-1.16.0-wget/networking/wget.c
---- busybox-1.16.0/networking/wget.c 2010-01-25 01:59:38.000000000 +0100
-+++ busybox-1.16.0-wget/networking/wget.c 2010-02-21 01:53:53.000000000 +0100
-@@ -546,6 +546,8 @@ int wget_main(int argc UNUSED_PARAM, cha
- "passive-ftp\0" No_argument "\xff"
- "header\0" Required_argument "\xfe"
- "post-data\0" Required_argument "\xfd"
-+ /* Ignored (we don't do ssl) */
-+ "no-check-certificate\0" No_argument "\xfc"
- ;
- #endif
-
-@@ -590,6 +592,7 @@ int wget_main(int argc UNUSED_PARAM, cha
- if (use_proxy) {
- proxy = getenv(target.is_ftp ? "ftp_proxy" : "http_proxy");
- if (proxy && proxy[0]) {
-+ server.user = NULL;
- parse_url(proxy, &server);
- } else {
- use_proxy = 0;
|
[-]
[+]
|
Deleted |
busybox-1.16.1-ash.patch
^
|
@@ -1,15 +0,0 @@
-diff -urpN busybox-1.16.1/shell/ash.c busybox-1.16.1-ash/shell/ash.c
---- busybox-1.16.1/shell/ash.c 2010-03-28 19:44:04.000000000 +0200
-+++ busybox-1.16.1-ash/shell/ash.c 2010-04-26 14:18:36.000000000 +0200
-@@ -5424,7 +5424,11 @@ rmescapes(char *str, int flag)
- size_t fulllen = len + strlen(p) + 1;
-
- if (flag & RMESCAPE_GROW) {
-+ int strloc = str - (char *)stackblock();
- r = makestrspace(fulllen, expdest);
-+ /* p and str may be invalidated by makestrspace */
-+ str = (char *)stackblock() + strloc;
-+ p = str + len;
- } else if (flag & RMESCAPE_HEAP) {
- r = ckmalloc(fulllen);
- } else {
|
[-]
[+]
|
Deleted |
busybox-1.16.1-cpio.patch
^
|
@@ -1,51 +0,0 @@
-diff -urpN busybox-1.16.1/archival/cpio.c busybox-1.16.1-cpio/archival/cpio.c
---- busybox-1.16.1/archival/cpio.c 2010-03-20 03:58:07.000000000 +0100
-+++ busybox-1.16.1-cpio/archival/cpio.c 2010-04-27 08:15:37.000000000 +0200
-@@ -424,7 +424,7 @@ int cpio_main(int argc UNUSED_PARAM, cha
- if (archive_handle->cpio__blocks != (off_t)-1
- && !(opt & CPIO_OPT_QUIET)
- ) {
-- printf("%"OFF_FMT"u blocks\n", archive_handle->cpio__blocks);
-+ fprintf(stderr, "%"OFF_FMT"u blocks\n", archive_handle->cpio__blocks);
- }
-
- return EXIT_SUCCESS;
-diff -urpN busybox-1.16.1/testsuite/cpio.tests busybox-1.16.1-cpio/testsuite/cpio.tests
---- busybox-1.16.1/testsuite/cpio.tests 2010-03-28 19:59:59.000000000 +0200
-+++ busybox-1.16.1-cpio/testsuite/cpio.tests 2010-04-27 08:15:37.000000000 +0200
-@@ -32,7 +32,7 @@ rm -rf cpio.testdir cpio.testdir2 2>/dev
- # testing "test name" "command" "expected result" "file input" "stdin"
-
- testing "cpio extracts zero-sized hardlinks" \
--"$ECHO -ne '$hexdump' | bzcat | cpio -i; echo \$?;
-+"$ECHO -ne '$hexdump' | bzcat | cpio -i 2>&1; echo \$?;
- ls -ln cpio.testdir | $FILTER_LS" \
- "\
- 1 blocks
-@@ -45,7 +45,7 @@ ls -ln cpio.testdir | $FILTER_LS" \
-
- test x"$SKIP_KNOWN_BUGS" = x"" && {
- # Currently fails. Numerous buglets: "1 blocks" versus "1 block",
--# "1 block" must go to stderr, does not list cpio.testdir/x and cpio.testdir/y
-+# does not list cpio.testdir/x and cpio.testdir/y
- testing "cpio lists hardlinks" \
- "$ECHO -ne '$hexdump' | bzcat | cpio -t 2>&1; echo \$?" \
- "\
-@@ -70,7 +70,7 @@ ln cpio.testdir/nonempty cpio.testdir/no
- mkdir cpio.testdir2
-
- testing "cpio extracts zero-sized hardlinks 2" \
--"find cpio.testdir | cpio -H newc --create | (cd cpio.testdir2 && cpio -i); echo \$?;
-+"find cpio.testdir | cpio -H newc --create | (cd cpio.testdir2 && cpio -i 2>&1); echo \$?;
- ls -ln cpio.testdir2/cpio.testdir | $FILTER_LS" \
- "\
- 2 blocks
-@@ -87,7 +87,7 @@ ls -ln cpio.testdir2/cpio.testdir | $FIL
- # Was trying to create "/usr/bin", correct is "usr/bin".
- rm -rf cpio.testdir
- testing "cpio -p with absolute paths" \
--"echo /usr/bin | cpio -dp cpio.testdir; echo \$?;
-+"echo /usr/bin | cpio -dp cpio.testdir 2>&1; echo \$?;
- ls cpio.testdir" \
- "\
- 1 blocks
|
[-]
[+]
|
Deleted |
busybox-1.16.1-dhcpd.patch
^
|
@@ -1,12 +0,0 @@
-diff -urpN busybox-1.16.1/networking/udhcp/leases.c busybox-1.16.1-dhcpd/networking/udhcp/leases.c
---- busybox-1.16.1/networking/udhcp/leases.c 2010-03-28 19:43:36.000000000 +0200
-+++ busybox-1.16.1-dhcpd/networking/udhcp/leases.c 2010-05-15 20:47:08.000000000 +0200
-@@ -64,6 +64,8 @@ struct dyn_lease* FAST_FUNC add_lease(
- oldest->hostname[0] = '\0';
- if (hostname) {
- char *p;
-+
-+ hostname_len++; /* include NUL */
- if (hostname_len > sizeof(oldest->hostname))
- hostname_len = sizeof(oldest->hostname);
- p = safe_strncpy(oldest->hostname, hostname, hostname_len);
|
[-]
[+]
|
Deleted |
busybox-1.16.1-dnsd.patch
^
|
@@ -1,48 +0,0 @@
-diff -urpN busybox-1.16.1/include/platform.h busybox-1.16.1-dnsd/include/platform.h
---- busybox-1.16.1/include/platform.h 2010-03-28 19:43:35.000000000 +0200
-+++ busybox-1.16.1-dnsd/include/platform.h 2010-04-14 19:06:10.000000000 +0200
-@@ -291,10 +291,12 @@ typedef unsigned smalluint;
- #if 1 /* if needed: !defined(arch1) && !defined(arch2) */
- # define ALIGN1 __attribute__((aligned(1)))
- # define ALIGN2 __attribute__((aligned(2)))
-+# define ALIGN4 __attribute__((aligned(4)))
- #else
- /* Arches which MUST have 2 or 4 byte alignment for everything are here */
- # define ALIGN1
- # define ALIGN2
-+# define ALIGN4
- #endif
-
-
-diff -urpN busybox-1.16.1/networking/dnsd.c busybox-1.16.1-dnsd/networking/dnsd.c
---- busybox-1.16.1/networking/dnsd.c 2010-03-28 19:43:36.000000000 +0200
-+++ busybox-1.16.1-dnsd/networking/dnsd.c 2010-04-26 14:20:25.000000000 +0200
-@@ -44,10 +44,15 @@ struct dns_head {
- uint16_t nauth;
- uint16_t nadd;
- };
-+/* Structure used to access type and class fields.
-+ * They are totally unaligned, but gcc 4.3.4 thinks that pointer of type uint16_t*
-+ * is 16-bit aligned and replaces 16-bit memcpy (in move_from_unaligned16 macro)
-+ * with aligned halfword access on arm920t!
-+ * Oh well. Slapping PACKED everywhere seems to help: */
- struct dns_prop {
-- uint16_t type;
-- uint16_t class;
--};
-+ uint16_t type PACKED;
-+ uint16_t class PACKED;
-+} PACKED;
- /* element of known name, ip address and reversed ip address */
- struct dns_entry {
- struct dns_entry *next;
-@@ -459,7 +464,8 @@ int dnsd_main(int argc UNUSED_PARAM, cha
- unsigned lsa_size;
- int udps, opts;
- uint16_t port = 53;
-- uint8_t buf[MAX_PACK_LEN + 1];
-+ /* Ensure buf is 32bit aligned (we need 16bit, but 32bit can't hurt) */
-+ uint8_t buf[MAX_PACK_LEN + 1] ALIGN4;
-
- opts = getopt32(argv, "vi:c:t:p:d", &listen_interface, &fileconf, &sttl, &sport);
- //if (opts & 0x1) // -v
|
[-]
[+]
|
Deleted |
busybox-1.16.1-hush.patch
^
|
@@ -1,12 +0,0 @@
-diff -urpN busybox-1.16.1/shell/hush.c busybox-1.16.1-hush/shell/hush.c
---- busybox-1.16.1/shell/hush.c 2010-03-28 19:44:04.000000000 +0200
-+++ busybox-1.16.1-hush/shell/hush.c 2010-05-22 06:40:06.000000000 +0200
-@@ -6944,7 +6944,7 @@ int hush_main(int argc, char **argv)
- /* -c 'script' (no params): prevent empty $0 */
- G.global_argv--; /* points to argv[i] of 'script' */
- G.global_argv[0] = argv[0];
-- G.global_argc--;
-+ G.global_argc++;
- } /* else -c 'script' ARG0 [ARG1...]: $0 is ARG0 */
- init_sigmasks();
- parse_and_run_string(optarg);
|
[-]
[+]
|
Deleted |
busybox-1.16.1-hwclock.patch
^
|
@@ -1,152 +0,0 @@
-diff -urpN busybox-1.16.1/util-linux/hwclock.c busybox-1.16.1-hwclock/util-linux/hwclock.c
---- busybox-1.16.1/util-linux/hwclock.c 2010-03-20 03:58:07.000000000 +0100
-+++ busybox-1.16.1-hwclock/util-linux/hwclock.c 2010-04-14 18:29:37.000000000 +0200
-@@ -109,10 +109,53 @@ static void to_sys_clock(const char **pp
-
- static void from_sys_clock(const char **pp_rtcname, int utc)
- {
--#define TWEAK_USEC 200
-- struct tm tm_time;
-+#if 1
- struct timeval tv;
-+ struct tm tm_time;
-+ int rtc;
-+
-+ rtc = rtc_xopen(pp_rtcname, O_WRONLY);
-+ gettimeofday(&tv, NULL);
-+ /* Prepare tm_time */
-+ if (sizeof(time_t) == sizeof(tv.tv_sec)) {
-+ if (utc)
-+ gmtime_r((time_t*)&tv.tv_sec, &tm_time);
-+ else
-+ localtime_r((time_t*)&tv.tv_sec, &tm_time);
-+ } else {
-+ time_t t = tv.tv_sec;
-+ if (utc)
-+ gmtime_r(&t, &tm_time);
-+ else
-+ localtime_r(&t, &tm_time);
-+ }
-+#else
-+/* Bloated code which tries to set hw clock with better precision.
-+ * On x86, even though code does set hw clock within <1ms of exact
-+ * whole seconds, apparently hw clock (at least on some machines)
-+ * doesn't reset internal fractional seconds to 0,
-+ * making all this a pointless excercise.
-+ */
-+ /* If we see that we are N usec away from whole second,
-+ * we'll sleep for N-ADJ usecs. ADJ corrects for the fact
-+ * that CPU is not infinitely fast.
-+ * On infinitely fast CPU, next wakeup would be
-+ * on (exactly_next_whole_second - ADJ). On real CPUs,
-+ * this difference between current time and whole second
-+ * is less than ADJ (assuming system isn't heavily loaded).
-+ */
-+ /* Small value of 256us gives very precise sync for 2+ GHz CPUs.
-+ * Slower CPUs will fail to sync and will go to bigger
-+ * ADJ values. qemu-emulated armv4tl with ~100 MHz
-+ * performance ends up using ADJ ~= 4*1024 and it takes
-+ * 2+ secs (2 tries with successively larger ADJ)
-+ * to sync. Even straced one on the same qemu (very slow)
-+ * takes only 4 tries.
-+ */
-+#define TWEAK_USEC 256
- unsigned adj = TWEAK_USEC;
-+ struct tm tm_time;
-+ struct timeval tv;
- int rtc = rtc_xopen(pp_rtcname, O_WRONLY);
-
- /* Try to catch the moment when whole second is close */
-@@ -124,55 +167,64 @@ static void from_sys_clock(const char **
-
- t = tv.tv_sec;
- rem_usec = 1000000 - tv.tv_usec;
-- if (rem_usec < 1024) {
-- /* Less than 1ms to next second. Good enough */
-+ if (rem_usec < adj) {
-+ /* Close enough */
- small_rem:
- t++;
- }
-
-- /* Prepare tm */
-+ /* Prepare tm_time from t */
- if (utc)
- gmtime_r(&t, &tm_time); /* may read /etc/xxx (it takes time) */
- else
- localtime_r(&t, &tm_time); /* same */
-- tm_time.tm_isdst = 0;
-+
-+ if (adj >= 32*1024) {
-+ break; /* 32 ms diff and still no luck?? give up trying to sync */
-+ }
-
- /* gmtime/localtime took some time, re-get cur time */
- gettimeofday(&tv, NULL);
-
-- if (tv.tv_sec < t /* may happen if rem_usec was < 1024 */
-- || (tv.tv_sec == t && tv.tv_usec < 1024)
-+ if (tv.tv_sec < t /* we are still in old second */
-+ || (tv.tv_sec == t && tv.tv_usec < adj) /* not too far into next second */
- ) {
-- /* We are not too far into next second. Good. */
-- break;
-- }
-- adj += 32; /* 2^(10-5) = 2^5 = 32 iterations max */
-- if (adj >= 1024) {
-- /* Give up trying to sync */
-- break;
-+ break; /* good, we are in sync! */
- }
-
-- /* Try to sync up by sleeping */
- rem_usec = 1000000 - tv.tv_usec;
-- if (rem_usec < 1024) {
-- goto small_rem; /* already close, don't sleep */
-+ if (rem_usec < adj) {
-+ t = tv.tv_sec;
-+ goto small_rem; /* already close to next sec, don't sleep */
- }
-- /* Need to sleep.
-- * Note that small adj on slow processors can make us
-- * to always overshoot tv.tv_usec < 1024 check on next
-- * iteration. That's why adj is increased on each iteration.
-- * This also allows it to be reused as a loop limiter.
-- */
-- usleep(rem_usec - adj);
-- }
-
-- xioctl(rtc, RTC_SET_TIME, &tm_time);
-+ /* Try to sync up by sleeping */
-+ usleep(rem_usec - adj);
-
-- /* Debug aid to find "good" TWEAK_USEC.
-+ /* Jump to 1ms diff, then increase fast (x2): EVERY loop
-+ * takes ~1 sec, people won't like slowly converging code here!
-+ */
-+ //bb_error_msg("adj:%d tv.tv_usec:%d", adj, (int)tv.tv_usec);
-+ if (adj < 512)
-+ adj = 512;
-+ /* ... and if last "overshoot" does not look insanely big,
-+ * just use it as adj increment. This makes convergence faster.
-+ */
-+ if (tv.tv_usec < adj * 8) {
-+ adj += tv.tv_usec;
-+ continue;
-+ }
-+ adj *= 2;
-+ }
-+ /* Debug aid to find "optimal" TWEAK_USEC with nearly exact sync.
- * Look for a value which makes tv_usec close to 999999 or 0.
-- * for 2.20GHz Intel Core 2: TWEAK_USEC ~= 200
-+ * For 2.20GHz Intel Core 2: optimal TWEAK_USEC ~= 200
- */
-- //bb_error_msg("tv.tv_usec:%d adj:%d", (int)tv.tv_usec, adj);
-+ //bb_error_msg("tv.tv_usec:%d", (int)tv.tv_usec);
-+#endif
-+
-+ tm_time.tm_isdst = 0;
-+ xioctl(rtc, RTC_SET_TIME, &tm_time);
-
- if (ENABLE_FEATURE_CLEAN_UP)
- close(rtc);
|
[-]
[+]
|
Deleted |
busybox-1.16.1-indexcgi.patch
^
|
@@ -1,12 +0,0 @@
-diff -urpN busybox-1.16.1/networking/httpd_indexcgi.c busybox-1.16.1-indexcgi/networking/httpd_indexcgi.c
---- busybox-1.16.1/networking/httpd_indexcgi.c 2010-03-20 03:58:07.000000000 +0100
-+++ busybox-1.16.1-indexcgi/networking/httpd_indexcgi.c 2010-04-15 17:39:01.000000000 +0200
-@@ -315,7 +315,7 @@ int main(int argc, char *argv[])
- if (S_ISREG(cdir->dl_mode))
- fmt_ull(cdir->dl_size);
- fmt_str("<td class=dt>");
-- tm = gmtime(&cdir->dl_mtime);
-+ ptm = gmtime(&cdir->dl_mtime);
- fmt_04u(1900 + ptm->tm_year); *dst++ = '-';
- fmt_02u(ptm->tm_mon + 1); *dst++ = '-';
- fmt_02u(ptm->tm_mday); *dst++ = ' ';
|
[-]
[+]
|
Deleted |
busybox-1.16.1-sed.patch
^
|
@@ -1,89 +0,0 @@
-diff -urpN busybox-1.16.1/editors/sed.c busybox-1.16.1-sed/editors/sed.c
---- busybox-1.16.1/editors/sed.c 2010-03-28 19:43:35.000000000 +0200
-+++ busybox-1.16.1-sed/editors/sed.c 2010-05-12 01:46:57.000000000 +0200
-@@ -487,7 +487,7 @@ static const char *parse_cmd_args(sed_cm
- static void add_cmd(const char *cmdstr)
- {
- sed_cmd_t *sed_cmd;
-- int temp;
-+ unsigned len, n;
-
- /* Append this line to any unfinished line from last time. */
- if (G.add_cmd_line) {
-@@ -496,12 +496,14 @@ static void add_cmd(const char *cmdstr)
- cmdstr = G.add_cmd_line = tp;
- }
-
-- /* If this line ends with backslash, request next line. */
-- temp = strlen(cmdstr);
-- if (temp && cmdstr[--temp] == '\\') {
-+ /* If this line ends with unescaped backslash, request next line. */
-+ n = len = strlen(cmdstr);
-+ while (n && cmdstr[n-1] == '\\')
-+ n--;
-+ if ((len - n) & 1) { /* if odd number of trailing backslashes */
- if (!G.add_cmd_line)
- G.add_cmd_line = xstrdup(cmdstr);
-- G.add_cmd_line[temp] = '\0';
-+ G.add_cmd_line[len-1] = '\0';
- return;
- }
-
-@@ -936,7 +938,15 @@ static void process_files(void)
- /* Skip blocks of commands we didn't match */
- if (sed_cmd->cmd == '{') {
- if (sed_cmd->invert ? matched : !matched) {
-- while (sed_cmd->cmd != '}') {
-+ unsigned nest_cnt = 0;
-+ while (1) {
-+ if (sed_cmd->cmd == '{')
-+ nest_cnt++;
-+ if (sed_cmd->cmd == '}') {
-+ nest_cnt--;
-+ if (nest_cnt == 0)
-+ break;
-+ }
- sed_cmd = sed_cmd->next;
- if (!sed_cmd)
- bb_error_msg_and_die("unterminated {");
-@@ -1031,7 +1041,7 @@ static void process_files(void)
- case 'c':
- /* Only triggers on last line of a matching range. */
- if (!sed_cmd->in_match)
-- sed_puts(sed_cmd->string, NO_EOL_CHAR);
-+ sed_puts(sed_cmd->string, '\n');
- goto discard_line;
-
- /* Read file, append contents to output */
-diff -urpN busybox-1.16.1/testsuite/sed.tests busybox-1.16.1-sed/testsuite/sed.tests
---- busybox-1.16.1/testsuite/sed.tests 2010-03-20 03:58:07.000000000 +0100
-+++ busybox-1.16.1-sed/testsuite/sed.tests 2010-05-12 01:46:57.000000000 +0200
-@@ -248,4 +248,28 @@ testing "sed beginning (^) matches only
- ">/usr</>lib<\n" "" \
- "/usr/lib\n"
-
-+testing "sed c" \
-+ "sed 'crepl'" \
-+ "repl\nrepl\n" "" \
-+ "first\nsecond\n"
-+
-+testing "sed nested {}s" \
-+ "sed '/asd/ { p; /s/ { s/s/c/ }; p; q }'" \
-+ "qwe\nasd\nacd\nacd\n" "" \
-+ "qwe\nasd\nzxc\n"
-+
-+testing "sed a cmd ended by double backslash" \
-+ "sed -e '/| one /a \\
-+ | three \\\\' -e '/| one-/a \\
-+ | three-* \\\\'" \
-+' | one \\
-+ | three \\
-+ | two \\
-+' '' \
-+' | one \\
-+ | two \\
-+'
-+
-+# testing "description" "arguments" "result" "infile" "stdin"
-+
- exit $FAILCOUNT
|
[-]
[+]
|
Deleted |
busybox-1.16.1-udhcp-services.patch
^
|
@@ -1,24 +0,0 @@
---- networking/udhcp/options.c.orig 2009-06-22 00:40:29.000000000 +0200
-+++ networking/udhcp/options.c 2009-08-02 13:40:59.000000000 +0200
-@@ -45,6 +45,10 @@
- { OPTION_STRING , 0x42 }, /* tftp */
- { OPTION_STRING , 0x43 }, /* bootfile */
- { OPTION_STRING , 0x4D }, /* userclass */
-+ { OPTION_IP | OPTION_LIST , 0x45 }, /* DHCP_SMTP_SERVER */
-+ { OPTION_IP | OPTION_LIST , 0x46 }, /* DHCP_POP3_SERVER */
-+ { OPTION_IP | OPTION_LIST , 0x4a }, /* DHCP_IRC_SERVER */
-+ { OPTION_IP | OPTION_LIST , 0x48 }, /* DHCP_WWW_SERVER */
- #if ENABLE_FEATURE_UDHCP_RFC3397
- { OPTION_STR1035 | OPTION_LIST , 0x77 }, /* search */
- #endif
-@@ -94,6 +98,10 @@
- "tftp" "\0"
- "bootfile" "\0"
- "userclass" "\0"
-+ "smtpsrv" "\0" /* DHCP_SMTP_SERVER */
-+ "pop3srv" "\0" /* DHCP_POP3_SERVER */
-+ "ircsrv" "\0" /* DHCP_IRC_SERVER */
-+ "wwwsrv" "\0" /* DHCP_WWW_SERVER */
- #if ENABLE_FEATURE_UDHCP_RFC3397
- "search" "\0"
- #endif
|
[-]
[+]
|
Added |
busybox-1.17.3-dnsd.patch
^
|
@@ -0,0 +1,12 @@
+diff -urpN busybox-1.17.3/networking/dnsd.c busybox-1.17.3-dnsd/networking/dnsd.c
+--- busybox-1.17.3/networking/dnsd.c 2010-10-09 21:57:14.000000000 +0200
++++ busybox-1.17.3-dnsd/networking/dnsd.c 2010-10-29 00:37:43.066043841 +0200
+@@ -388,7 +388,7 @@ static int process_packet(struct dns_ent
+ query_len = strlen(query_string) + 1;
+ /* may be unaligned! */
+ unaligned_type_class = (void *)(query_string + query_len);
+- query_len += sizeof(unaligned_type_class);
++ query_len += sizeof(*unaligned_type_class);
+ /* where to append answer block */
+ answb = (void *)(unaligned_type_class + 1);
+
|
[-]
[+]
|
Added |
busybox-1.17.3-sort.patch
^
|
@@ -0,0 +1,12 @@
+diff -urpN busybox-1.17.3/coreutils/sort.c busybox-1.17.3-sort/coreutils/sort.c
+--- busybox-1.17.3/coreutils/sort.c 2010-10-09 21:57:13.000000000 +0200
++++ busybox-1.17.3-sort/coreutils/sort.c 2010-10-20 15:17:35.320293543 +0200
+@@ -412,7 +412,7 @@ int sort_main(int argc UNUSED_PARAM, cha
+ #if ENABLE_FEATURE_SORT_BIG
+ /* Open output file _after_ we read all input ones */
+ if (option_mask32 & FLAG_o)
+- xmove_fd(xopen3(str_o, O_WRONLY, 0666), STDOUT_FILENO);
++ xmove_fd(xopen3(str_o, O_WRONLY|O_CREAT|O_TRUNC, 0666), STDOUT_FILENO);
+ #endif
+ flag = (option_mask32 & FLAG_z) ? '\0' : '\n';
+ for (i = 0; i < linecount; i++)
|
[-]
[+]
|
Added |
busybox-1.17.3-udhcp-services.patch
^
|
@@ -0,0 +1,24 @@
+--- networking/udhcp/common.c.orig 2010-08-23 02:44:35.000000000 +0200
++++ networking/udhcp/common.c 2010-09-29 12:15:08.514367497 +0200
+@@ -49,6 +49,10 @@
+ { OPTION_STRING , 0x43 }, /* DHCP_BOOT_FILE */
+ //TODO: not a string, but a set of LASCII strings:
+ // { OPTION_STRING , 0x4D }, /* DHCP_USER_CLASS */
++ { OPTION_IP | OPTION_LIST , 0x45 }, /* DHCP_SMTP_SERVER */
++ { OPTION_IP | OPTION_LIST , 0x46 }, /* DHCP_POP3_SERVER */
++ { OPTION_IP | OPTION_LIST , 0x4a }, /* DHCP_IRC_SERVER */
++ { OPTION_IP | OPTION_LIST , 0x48 }, /* DHCP_WWW_SERVER */
+ #if ENABLE_FEATURE_UDHCP_RFC3397
+ { OPTION_DNS_STRING | OPTION_LIST , 0x77 }, /* DHCP_DOMAIN_SEARCH */
+ { OPTION_SIP_SERVERS , 0x78 }, /* DHCP_SIP_SERVERS */
+@@ -105,6 +109,10 @@
+ "tftp" "\0" /* DHCP_TFTP_SERVER_NAME */
+ "bootfile" "\0" /* DHCP_BOOT_FILE */
+ // "userclass" "\0" /* DHCP_USER_CLASS */
++ "smtpsrv" "\0" /* DHCP_SMTP_SERVER */
++ "pop3srv" "\0" /* DHCP_POP3_SERVER */
++ "ircsrv" "\0" /* DHCP_IRC_SERVER */
++ "wwwsrv" "\0" /* DHCP_WWW_SERVER */
+ #if ENABLE_FEATURE_UDHCP_RFC3397
+ "search" "\0" /* DHCP_DOMAIN_SEARCH */
+ // doesn't work in udhcpd.conf since OPTION_SIP_SERVERS
|
[-]
[+]
|
Added |
busybox-1.17.3-unicode.patch
^
|
@@ -0,0 +1,12 @@
+diff -urpN busybox-1.17.3/libbb/unicode.c busybox-1.17.3-unicode/libbb/unicode.c
+--- busybox-1.17.3/libbb/unicode.c 2010-10-09 21:58:13.000000000 +0200
++++ busybox-1.17.3-unicode/libbb/unicode.c 2010-10-29 00:48:36.951494079 +0200
+@@ -1006,7 +1006,7 @@ static char* FAST_FUNC unicode_conv_to_p
+ }
+ }
+ if (stats)
+- stats->byte_count = stats->unicode_count = (d - dst);
++ stats->byte_count = stats->unicode_count = stats->unicode_width = (d - dst);
+ return dst;
+ }
+
|
|
Deleted |
busybox-1.16.1.tar.bz2
^
|
|
Changed |
busybox-1.17.3.tar.bz2
^
|