source: clfs-embedded/patches/busybox-1.17.3-fixes-1.patch@ dc5342b

Last change on this file since dc5342b was 93539e4, checked in by Joe Ciccone <jciccone@…>, 14 years ago

Updated BusyBox to 1.17.3.

  • Property mode set to 100644
File size: 3.6 KB
RevLine 
[93539e4]1Submitted By: Joe Ciccone <jciccone@gmail.com>
2Date: 2010-11-21
3Initial Package Version: 1.17.3
4Upstream Status: From Upstream
5Origin: http://busybox.net/downloads/fixes-1.17.3/
6Description: This patch includes the following upstream patches.
7
8 busybox-1.17.3-dnsd.patch
9 busybox-1.17.3-iproute.patch
10 busybox-1.17.3-ls.patch
11 busybox-1.17.3-sort.patch
12 busybox-1.17.3-unicode.patch
13
14diff -Naur busybox-1.17.3.orig/coreutils/ls.c busybox-1.17.3/coreutils/ls.c
15--- busybox-1.17.3.orig/coreutils/ls.c 2010-10-09 15:57:13.000000000 -0400
16+++ busybox-1.17.3/coreutils/ls.c 2010-11-21 08:38:13.024346417 -0500
17@@ -184,7 +184,7 @@
18 LIST_INO, /* i */
19 LIST_LONG | STYLE_LONG, /* l - remember LS_DISP_HR in mask! */
20 LIST_SHORT | STYLE_SINGLE, /* 1 */
21- 0, /* g (don't show group) - handled via OPT_g */
22+ 0, /* g (don't show owner) - handled via OPT_g */
23 LIST_ID_NUMERIC, /* n */
24 LIST_BLOCKS, /* s */
25 DISP_ROWS, /* x */
26@@ -621,7 +621,7 @@
27 if (all_fmt & LIST_ID_NAME) {
28 if (option_mask32 & OPT_g) {
29 column += printf("%-8.8s ",
30- get_cached_username(dn->dstat.st_uid));
31+ get_cached_groupname(dn->dstat.st_gid));
32 } else {
33 column += printf("%-8.8s %-8.8s ",
34 get_cached_username(dn->dstat.st_uid),
35@@ -631,7 +631,7 @@
36 #endif
37 if (all_fmt & LIST_ID_NUMERIC) {
38 if (option_mask32 & OPT_g)
39- column += printf("%-8u ", (int) dn->dstat.st_uid);
40+ column += printf("%-8u ", (int) dn->dstat.st_gid);
41 else
42 column += printf("%-8u %-8u ",
43 (int) dn->dstat.st_uid,
44diff -Naur busybox-1.17.3.orig/coreutils/sort.c busybox-1.17.3/coreutils/sort.c
45--- busybox-1.17.3.orig/coreutils/sort.c 2010-10-09 15:57:13.000000000 -0400
46+++ busybox-1.17.3/coreutils/sort.c 2010-11-21 08:38:13.024346417 -0500
47@@ -412,7 +412,7 @@
48 #if ENABLE_FEATURE_SORT_BIG
49 /* Open output file _after_ we read all input ones */
50 if (option_mask32 & FLAG_o)
51- xmove_fd(xopen3(str_o, O_WRONLY, 0666), STDOUT_FILENO);
52+ xmove_fd(xopen3(str_o, O_WRONLY|O_CREAT|O_TRUNC, 0666), STDOUT_FILENO);
53 #endif
54 flag = (option_mask32 & FLAG_z) ? '\0' : '\n';
55 for (i = 0; i < linecount; i++)
56diff -Naur busybox-1.17.3.orig/libbb/unicode.c busybox-1.17.3/libbb/unicode.c
57--- busybox-1.17.3.orig/libbb/unicode.c 2010-10-09 15:58:13.000000000 -0400
58+++ busybox-1.17.3/libbb/unicode.c 2010-11-21 08:38:13.028345948 -0500
59@@ -1006,7 +1006,7 @@
60 }
61 }
62 if (stats)
63- stats->byte_count = stats->unicode_count = (d - dst);
64+ stats->byte_count = stats->unicode_count = stats->unicode_width = (d - dst);
65 return dst;
66 }
67
68diff -Naur busybox-1.17.3.orig/networking/dnsd.c busybox-1.17.3/networking/dnsd.c
69--- busybox-1.17.3.orig/networking/dnsd.c 2010-10-09 15:57:14.000000000 -0400
70+++ busybox-1.17.3/networking/dnsd.c 2010-11-21 08:38:13.020345600 -0500
71@@ -388,7 +388,7 @@
72 query_len = strlen(query_string) + 1;
73 /* may be unaligned! */
74 unaligned_type_class = (void *)(query_string + query_len);
75- query_len += sizeof(unaligned_type_class);
76+ query_len += sizeof(*unaligned_type_class);
77 /* where to append answer block */
78 answb = (void *)(unaligned_type_class + 1);
79
80diff -Naur busybox-1.17.3.orig/networking/libiproute/iproute.c busybox-1.17.3/networking/libiproute/iproute.c
81--- busybox-1.17.3.orig/networking/libiproute/iproute.c 2010-10-09 15:57:14.000000000 -0400
82+++ busybox-1.17.3/networking/libiproute/iproute.c 2010-11-21 08:38:13.020345600 -0500
83@@ -791,8 +791,8 @@
84 }
85 req.r.rtm_dst_len = addr.bitlen;
86 }
87- argv++;
88 }
89+ argv++;
90 }
91
92 if (req.r.rtm_dst_len == 0) {
Note: See TracBrowser for help on using the repository browser.