diff options
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | coreutils/ls.c | 6 | ||||
-rw-r--r-- | coreutils/sort.c | 2 | ||||
-rw-r--r-- | libbb/unicode.c | 2 | ||||
-rw-r--r-- | networking/dnsd.c | 2 | ||||
-rw-r--r-- | networking/libiproute/iproute.c | 2 |
6 files changed, 8 insertions, 8 deletions
@@ -1,6 +1,6 @@ | |||
1 | VERSION = 1 | 1 | VERSION = 1 |
2 | PATCHLEVEL = 17 | 2 | PATCHLEVEL = 17 |
3 | SUBLEVEL = 3 | 3 | SUBLEVEL = 4 |
4 | EXTRAVERSION = | 4 | EXTRAVERSION = |
5 | NAME = Unnamed | 5 | NAME = Unnamed |
6 | 6 | ||
diff --git a/coreutils/ls.c b/coreutils/ls.c index 1197f7d71..07bb6af92 100644 --- a/coreutils/ls.c +++ b/coreutils/ls.c | |||
@@ -184,7 +184,7 @@ static const unsigned opt_flags[] = { | |||
184 | LIST_INO, /* i */ | 184 | LIST_INO, /* i */ |
185 | LIST_LONG | STYLE_LONG, /* l - remember LS_DISP_HR in mask! */ | 185 | LIST_LONG | STYLE_LONG, /* l - remember LS_DISP_HR in mask! */ |
186 | LIST_SHORT | STYLE_SINGLE, /* 1 */ | 186 | LIST_SHORT | STYLE_SINGLE, /* 1 */ |
187 | 0, /* g (don't show group) - handled via OPT_g */ | 187 | 0, /* g (don't show owner) - handled via OPT_g */ |
188 | LIST_ID_NUMERIC, /* n */ | 188 | LIST_ID_NUMERIC, /* n */ |
189 | LIST_BLOCKS, /* s */ | 189 | LIST_BLOCKS, /* s */ |
190 | DISP_ROWS, /* x */ | 190 | DISP_ROWS, /* x */ |
@@ -621,7 +621,7 @@ static NOINLINE unsigned list_single(const struct dnode *dn) | |||
621 | if (all_fmt & LIST_ID_NAME) { | 621 | if (all_fmt & LIST_ID_NAME) { |
622 | if (option_mask32 & OPT_g) { | 622 | if (option_mask32 & OPT_g) { |
623 | column += printf("%-8.8s ", | 623 | column += printf("%-8.8s ", |
624 | get_cached_username(dn->dstat.st_uid)); | 624 | get_cached_groupname(dn->dstat.st_gid)); |
625 | } else { | 625 | } else { |
626 | column += printf("%-8.8s %-8.8s ", | 626 | column += printf("%-8.8s %-8.8s ", |
627 | get_cached_username(dn->dstat.st_uid), | 627 | get_cached_username(dn->dstat.st_uid), |
@@ -631,7 +631,7 @@ static NOINLINE unsigned list_single(const struct dnode *dn) | |||
631 | #endif | 631 | #endif |
632 | if (all_fmt & LIST_ID_NUMERIC) { | 632 | if (all_fmt & LIST_ID_NUMERIC) { |
633 | if (option_mask32 & OPT_g) | 633 | if (option_mask32 & OPT_g) |
634 | column += printf("%-8u ", (int) dn->dstat.st_uid); | 634 | column += printf("%-8u ", (int) dn->dstat.st_gid); |
635 | else | 635 | else |
636 | column += printf("%-8u %-8u ", | 636 | column += printf("%-8u %-8u ", |
637 | (int) dn->dstat.st_uid, | 637 | (int) dn->dstat.st_uid, |
diff --git a/coreutils/sort.c b/coreutils/sort.c index 5c3fa1a71..237ac083c 100644 --- a/coreutils/sort.c +++ b/coreutils/sort.c | |||
@@ -412,7 +412,7 @@ int sort_main(int argc UNUSED_PARAM, char **argv) | |||
412 | #if ENABLE_FEATURE_SORT_BIG | 412 | #if ENABLE_FEATURE_SORT_BIG |
413 | /* Open output file _after_ we read all input ones */ | 413 | /* Open output file _after_ we read all input ones */ |
414 | if (option_mask32 & FLAG_o) | 414 | if (option_mask32 & FLAG_o) |
415 | xmove_fd(xopen3(str_o, O_WRONLY, 0666), STDOUT_FILENO); | 415 | xmove_fd(xopen3(str_o, O_WRONLY|O_CREAT|O_TRUNC, 0666), STDOUT_FILENO); |
416 | #endif | 416 | #endif |
417 | flag = (option_mask32 & FLAG_z) ? '\0' : '\n'; | 417 | flag = (option_mask32 & FLAG_z) ? '\0' : '\n'; |
418 | for (i = 0; i < linecount; i++) | 418 | for (i = 0; i < linecount; i++) |
diff --git a/libbb/unicode.c b/libbb/unicode.c index 5a657b2d7..afa5a1b1f 100644 --- a/libbb/unicode.c +++ b/libbb/unicode.c | |||
@@ -1006,7 +1006,7 @@ static char* FAST_FUNC unicode_conv_to_printable2(uni_stat_t *stats, const char | |||
1006 | } | 1006 | } |
1007 | } | 1007 | } |
1008 | if (stats) | 1008 | if (stats) |
1009 | stats->byte_count = stats->unicode_count = (d - dst); | 1009 | stats->byte_count = stats->unicode_count = stats->unicode_width = (d - dst); |
1010 | return dst; | 1010 | return dst; |
1011 | } | 1011 | } |
1012 | 1012 | ||
diff --git a/networking/dnsd.c b/networking/dnsd.c index 1a99040ac..81bc93922 100644 --- a/networking/dnsd.c +++ b/networking/dnsd.c | |||
@@ -388,7 +388,7 @@ static int process_packet(struct dns_entry *conf_data, | |||
388 | query_len = strlen(query_string) + 1; | 388 | query_len = strlen(query_string) + 1; |
389 | /* may be unaligned! */ | 389 | /* may be unaligned! */ |
390 | unaligned_type_class = (void *)(query_string + query_len); | 390 | unaligned_type_class = (void *)(query_string + query_len); |
391 | query_len += sizeof(unaligned_type_class); | 391 | query_len += sizeof(*unaligned_type_class); |
392 | /* where to append answer block */ | 392 | /* where to append answer block */ |
393 | answb = (void *)(unaligned_type_class + 1); | 393 | answb = (void *)(unaligned_type_class + 1); |
394 | 394 | ||
diff --git a/networking/libiproute/iproute.c b/networking/libiproute/iproute.c index d771a609b..7905a7399 100644 --- a/networking/libiproute/iproute.c +++ b/networking/libiproute/iproute.c | |||
@@ -791,8 +791,8 @@ static int iproute_get(char **argv) | |||
791 | } | 791 | } |
792 | req.r.rtm_dst_len = addr.bitlen; | 792 | req.r.rtm_dst_len = addr.bitlen; |
793 | } | 793 | } |
794 | argv++; | ||
795 | } | 794 | } |
795 | argv++; | ||
796 | } | 796 | } |
797 | 797 | ||
798 | if (req.r.rtm_dst_len == 0) { | 798 | if (req.r.rtm_dst_len == 0) { |