Skip to content

Commit b044da7

Browse files
feat: update busybox to 1:1.37.0-10
1 parent 3bc5b29 commit b044da7

File tree

475 files changed

+6592
-3257
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

475 files changed

+6592
-3257
lines changed

Config.in

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,17 @@ config LFS
108108
programs that can benefit from large file support include dd, gzip,
109109
cp, mount, tar.
110110

111+
config TIME64
112+
bool "Support 64bit wide time types"
113+
default y
114+
depends on LFS
115+
help
116+
Make times later than 2038 representable for several libc syscalls
117+
(stat, clk_gettime etc.). Note this switch is specific to glibc
118+
and has no effect on platforms that already use 64bit wide time types
119+
(i.e. all 64bit archs and some selected 32bit archs (currently riscv
120+
and x32)).
121+
111122
config PAM
112123
bool "Support PAM (Pluggable Authentication Modules)"
113124
default n

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
VERSION = 1
2-
PATCHLEVEL = 36
3-
SUBLEVEL = 1
2+
PATCHLEVEL = 37
3+
SUBLEVEL = 0
44
EXTRAVERSION =
55
NAME = Unnamed
66

@@ -967,6 +967,7 @@ endif # CONFIG_MODULES
967967
# Directories & files removed with 'make clean'
968968
CLEAN_DIRS += $(MODVERDIR) _install 0_lib
969969
CLEAN_FILES += busybox busybox_unstripped* busybox.links \
970+
busybox*.suid busybox*.nosuid \
970971
System.map .kernelrelease \
971972
.tmp_kallsyms* .tmp_version .tmp_busybox* .tmp_System.map
972973

Makefile.flags

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ CPPFLAGS += \
1515
-include include/autoconf.h \
1616
-D_GNU_SOURCE -DNDEBUG \
1717
$(if $(CONFIG_LFS),-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64) \
18+
$(if $(CONFIG_TIME64),-D_TIME_BITS=64) \
1819
-DBB_VER=$(squote)$(quote)$(BB_VER)$(quote)$(squote)
1920

2021
CFLAGS += $(call cc-option,-Wall,)
@@ -47,7 +48,7 @@ endif
4748
# gcc 3.x emits bogus "old style proto" warning on find.c:alloc_action()
4849
CFLAGS += $(call cc-ifversion, -ge, 0400, -Wold-style-definition)
4950

50-
ifneq ($(CC),clang)
51+
ifneq ($(lastword $(subst -, ,$(CC))),clang)
5152
# "clang-9: warning: optimization flag '-finline-limit=0' is not supported
5253
CFLAGS += $(call cc-option,-finline-limit=0,)
5354
endif
@@ -65,7 +66,7 @@ CFLAGS += $(call cc-option,-static-libgcc,)
6566
endif
6667

6768
CFLAGS += $(call cc-option,-falign-functions=1,)
68-
ifneq ($(CC),clang)
69+
ifneq ($(lastword $(subst -, ,$(CC))),clang)
6970
# "clang-9: warning: optimization flag '-falign-jumps=1' is not supported" (and same for other two)
7071
CFLAGS += $(call cc-option,-falign-jumps=1 -falign-labels=1 -falign-loops=1,)
7172
endif
@@ -78,7 +79,7 @@ CFLAGS += $(call cc-option,-fno-asynchronous-unwind-tables,)
7879
CFLAGS += $(call cc-option,-fno-builtin-printf,)
7980

8081
# clang-9 does not like "str" + N and "if (CONFIG_ITEM && cond)" constructs
81-
ifeq ($(CC),clang)
82+
ifeq ($(lastword $(subst -, ,$(CC))),clang)
8283
CFLAGS += $(call cc-option,-Wno-string-plus-int -Wno-constant-logical-operand)
8384
endif
8485

TODO

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,6 @@ Minor stuff:
222222
---
223223
unify progress_meter. wget, flash_eraseall, pipe_progress, fbsplash, setfiles.
224224
---
225-
support start-stop-daemon -d <chdir-path>
226-
---
227225

228226
(TODO list after discussion 11.05.2009)
229227

applets/individual.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ int main(int argc, char **argv)
2020
void bb_show_usage(void)
2121
{
2222
fputs_stdout(APPLET_full_usage "\n");
23-
exit(EXIT_FAILURE);
23+
exit_FAILURE();
2424
}

archival/bbunzip.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ int gunzip_main(int argc UNUSED_PARAM, char **argv)
415415
//usage: "Decompress to stdout"
416416

417417
//config:config BUNZIP2
418-
//config: bool "bunzip2 (8.7 kb)"
418+
//config: bool "bunzip2 (9.1 kb)"
419419
//config: default y
420420
//config: select FEATURE_BZIP2_DECOMPRESS
421421
//config: help
@@ -429,7 +429,7 @@ int gunzip_main(int argc UNUSED_PARAM, char **argv)
429429
//config: should probably say N here.
430430
//config:
431431
//config:config BZCAT
432-
//config: bool "bzcat (8.7 kb)"
432+
//config: bool "bzcat (9 kb)"
433433
//config: default y
434434
//config: select FEATURE_BZIP2_DECOMPRESS
435435
//config: help
@@ -485,7 +485,7 @@ int bunzip2_main(int argc UNUSED_PARAM, char **argv)
485485
//usage: "Decompress to stdout"
486486

487487
//config:config UNLZMA
488-
//config: bool "unlzma (7.5 kb)"
488+
//config: bool "unlzma (7.8 kb)"
489489
//config: default y
490490
//config: help
491491
//config: unlzma is a compression utility using the Lempel-Ziv-Markov chain
@@ -494,7 +494,7 @@ int bunzip2_main(int argc UNUSED_PARAM, char **argv)
494494
//config: compressors.
495495
//config:
496496
//config:config LZCAT
497-
//config: bool "lzcat (7.5 kb)"
497+
//config: bool "lzcat (7.8 kb)"
498498
//config: default y
499499
//config: help
500500
//config: Alias to "unlzma -c".

archival/cpio.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
//usage: " [-ti"IF_FEATURE_CPIO_O("o")"]" IF_FEATURE_CPIO_P(" [-p DIR]")
6363
//usage: " [EXTR_FILE]..."
6464
//usage:#define cpio_full_usage "\n\n"
65-
//usage: "Extract (-i) or list (-t) files from a cpio archive"
65+
//usage: "Extract (-i) or list (-t) files from a cpio archive on stdin"
6666
//usage: IF_FEATURE_CPIO_O(", or"
6767
//usage: "\ntake file list from stdin and create an archive (-o)"
6868
//usage: IF_FEATURE_CPIO_P(" or copy files (-p)")
@@ -504,7 +504,6 @@ int cpio_main(int argc UNUSED_PARAM, char **argv)
504504
goto dump;
505505
}
506506
/* parent */
507-
USE_FOR_NOMMU(argv[-optind][0] &= 0x7f); /* undo fork_or_rexec() damage */
508507
xchdir(*argv++);
509508
close(pp.wr);
510509
xmove_fd(pp.rd, STDIN_FILENO);

archival/dpkg_deb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
66
*/
77
//config:config DPKG_DEB
8-
//config: bool "dpkg-deb (30 kb)"
8+
//config: bool "dpkg-deb (29 kb)"
99
//config: default y
1010
//config: select FEATURE_SEAMLESS_GZ
1111
//config: help

archival/lzop.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"Minimalized" for busybox by Alain Knaff
2626
*/
2727
//config:config LZOP
28-
//config: bool "lzop (12 kb)"
28+
//config: bool "lzop (13 kb)"
2929
//config: default y
3030
//config: help
3131
//config: Lzop compression/decompresion.

archival/tar.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ static void NOINLINE vfork_compressor(int tar_fd, const char *gzip)
621621
execlp(gzip, gzip, "-f", (char *)0);
622622

623623
vfork_exec_errno = errno;
624-
_exit(EXIT_FAILURE);
624+
_exit_FAILURE();
625625
}
626626

627627
/* parent */

0 commit comments

Comments
 (0)