fli4l
  1. fli4l

busybox

Public
AuthorCommitMessageCommit dateIssues
Kang-Che SungKang-Che Sung
b130f9f758bAllow 'gzip -d' and 'bzip2 -d' without gunzip or bunzip2Idea copied from the "ip" applet. Signed-off-by: Kang-Che Sung <explorer09@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
fb87d93d1e0ash: fix a bug in argv restoration after sourcing a fileif sourced file "shift"ed argvs so that $1 is NULL, restore wasn't done. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
2b1559056cfhush: fix a bug in argv restoration after sourcing a fileif sourced file "shift"ed argvs so that $1 is NULL, restore wasn't done. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
4e4f88e569ehush: global_args_malloced is used only if set builtin is enabledfunction old new delta run_pipe 1623 1635 +12 builtin_source 210 222 +12 save_and_replace_G_args 70 60 -10 builtin_shift 132 94 -38 restore_G_args ...
Denys VlasenkoDenys Vlasenko
cc2fd5a9867hush: fix 'defined but not used' warningSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
5362cc4b8cahush: remove redundand test for ENABLE_HUSH_JOBSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
fd68f1e80dbhush: fix kill builtin without jobs supportSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
442a414d662typo fixSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
41ade05cacdhush: conditionalize print_escaped() on EXPORT || TRAPSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
4471969db21hush: make memleak builtin optionalSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
6ec76d87192hush: make export builtin optionalSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
d5933b11253hush: make umask builtin optionalSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
10d5ece64aehush: make set/unset builtins optionalSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
7a85c60e7e3hush: make read and trap builtins optionalSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
1125d7d6801hush: kill builtin and kill %jobspec supportAlso made it and printf, type and wait builtins optional. function old new delta builtin_kill - 323 +323 bltins1 336 348 +12 builtin_type 114 116 +2 ----------------------------------------------...
Denys VlasenkoDenys Vlasenko
d5b5c2fa151hush: support %%, %+ and % jobspec (meaning "current job")function old new delta parse_jobspec 83 133 +50 builtin_wait 278 283 +5 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Laurent BercotLaurent Bercot
0ef478f01bbhttpd: fix address family for reverse proxy client socketWhen httpd proxies a request to another server, it first creates an AF_INET socket, then resolves the server name to a sockaddr, then connects to it. This fails if the server name resolves to an IPv6 address. This patch ensures that the socket is created with the correct address family (AF_INET6 if the server resolves to an IPv6 address and AF_INET otherwise). Signed-off-by: Laurent Bercot <s...
Kang-Che SungKang-Che Sung
4d06b314532build system: no longer prompt for PLATFORM_LINUX optionWith the new "select PLATFORM_LINUX" mechanism (commit e3b1a1fd28558f7a1b3c0ec33313bedb675be8a1), the PLATFORM_LINUX option alone no longer has any purpose of changing program behavior or affecting compiled code. So there is no longer need to prompt user of this config question. Signed-off-by: Kang-Che Sung <explorer09@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Kang-Che SungKang-Che Sung
d5e7ff02921bunzip2: fix code bloat caused by zcat's seamless magicThis example single-applet configuration would trigger the bloat: CONFIG_FEATURE_SEAMLESS_XZ=y CONFIG_FEATURE_SEAMLESS_LZMA=y CONFIG_FEATURE_SEAMLESS_BZ2=y CONFIG_FEATURE_SEAMLESS_GZ=y CONFIG_BUNZIP2=y # CONFIG_ZCAT is not set # All other applets disabled Here, the resulting "busybox-bunzip2" binary would contain unpack_gz_stream, unpack_lzma_stream and unpack_xz_s...
Kang-Che SungKang-Che Sung
a474728e825ash: fix "kill %1" not working if CONFIG_ASH is disabledix ash "kill %1" not working if CONFIG_ASH is disabled but ash is launched by 'sh' or 'bash' name Signed-off-by: Kang-Che Sung <explorer09@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
0ffac1cc22eunzip: do not use CDF.extra_len, read local file header. Closes 9536While at it, shorten many field and variable names. function old new delta unzip_main 2334 2376 +42 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
86584e134eeash: fix open fds leaking in redirects. Closes 9561commit e19923f6652a638ac39c84012e97f52cf5a7568e deleted clearredir() call in shellexec(): ash: [REDIR] Remove redundant CLOEXEC calls Upstream commit: Now that we're marking file descriptors as CLOEXEC in savefd, we no longer need to close them on exec or in setinputfd. but it missed one place where we don't set CLOEXEC. Fixing this. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
fe93624fb69Automatically disable FEATURE_COMPRESS_USAGE for small builds.Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Kang-Che SungKang-Che Sung
6cd0294725cash: explicltly group ash optionsThis would makes all ash options indented inside "ash" in menuconfig. It appears that menuconfig has a limit at tracking multiple dependency lines like this (it looks like a "diamond problem" but I'm not sure if it is): ---ASH <---------- / \ ASH_OPTIMIZE_FOR_SIZE !NOMMU <-*----SH_IS_ASH <----[OR] <--ASH_INTERNAL_GLOB \ ...
Natanael CopaNatanael Copa
b62ea34afedntpd: improve postponed hostname resolutionRun the namelookup from the main loop so a misspelled first ntp server name does not block everything forever. This fixes the following situation which would block forever: $ sudo ./busybox ntpd -dn -p foobar -p pool.ntp.org ntpd: bad address 'foobar' ntpd: bad address 'foobar' ntpd: bad address 'foobar' ... New behavior: ntpd: bad address 'foobar' ntpd: sending query to 137.19...
Cristian Ionescu-IdbohrnCristian Ionescu-Idbohrn
e6add210b22unzip: remove now-pointless lseek which returns current positionarchival/unzip.c: In function 'read_next_cdf': archival/unzip.c:271:8: warning: variable 'org' set but not used [-Wunused-but-set-variable] off_t org; ^~~ Signed-off-by: Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
ecba2944d57typo fix in config help textSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
e3c4db8b396unzip: properly use CDF to find compressed files. Closes 9536function old new delta unzip_main 2437 2350 -87 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Waldemar BrodkorbWaldemar Brodkorb
9c083f599a9modutils: remove special handling of uClibcCommit 3a45b87ac36f (modutils: support finit_module syscall) introduced macro finit_module. But it is not defined for uClibc. The compilation for busybox fails for MIPS with: With uClibc, we get following build errors: modutils/lib.a(modutils.o): In function `bb_init_module': modutils.c:(.text.bb_init_module+0x94): undefined reference to `finit_module' modutils.c:(.text.bb_init_module+0...
Kang-Che SungKang-Che Sung
9529115c4ceshell: clarify help text of CONFIG_{SH,BASH}_IS_* optionsMention the behavior if user selects CONFIG_SH_IS_ASH but not CONFIG_ASH. We will be explicit that invocations like "busybox ash" will not work for such configuration. Also clarify help text of CONFIG_BASH_IS_* that bash compatibility in ash is not complete. (It shouldn't be anyway - ash can't support every bash quirk out there.) Signed-off-by: Kang-Che Sung <explorer09@gmail.com> Signed-off-...
Denys VlasenkoDenys Vlasenko
c6137ba5106udhcp: tweak config order and menu item namesAll other applets are listed simply by their name, no reason why dumpleases doesn't do that. Group all udhcpd feature options directly after it. Put "NOT READY" into udhcpc6 item (some users actually tried to use it, and complained). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Jörg KrauseJörg Krause
c6725b0af68Fix dependency for IFUPDOWN_UDHCPC_CMD_OPTIONSCommit a8c696bf09d8151323f6e99348c4bc8989f829c8 makes ifup and ifdown individually selectable, but forgets to update the dependency to IFUPDOWN_UDHCPC_CMD_OPTIONS, so it is not selectable anymore. This patch fixes the dependency by checking for IFUP or IFDOWN, instead of the obsolete IFUPDOWN. Also, it drops dependency on UDHCPC: udhcpc on the target system does not have to come from the _sam...
Tito RagusaTito Ragusa
d3720828eacREADME_distro_proposal.txt: typo fixesSigned-off-by: Tito Ragusa <farmatito@tiscali.it> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Cristian Ionescu-IdbohrnCristian Ionescu-Idbohrn
f1d76b64a0fappletlib: avoid warning on unused function ingrouplibbb/appletlib.c:558:12: warning: 'ingroup' defined but not used [-Wunused-function] static int ingroup(uid_t u, gid_t g) ^~~~~~~ That function is used only if FEATURE_SUID_CONFIG is also enabled. Signed-off-by: Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
b05bcaf29c9hush: correct exitcode for unterminated ')' - exitcode2.tests testcasefunction old new delta parse_stream 2595 2609 +14 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Ron YorstonRon Yorston
ea7d2f6ec05ash: fix error code regressionThe commit 'ash,hush: set exit code 127 in "sh /does/not/exist" case' only partly implemented the dash commit '[ERROR] Allow the originator of EXERROR to set the exit status'. This resulted in incorrect error codes for a syntax error: $ ) $ echo $? 0 or a redirection error for a special builtin: $ rm -f xxx $ eval cat <xxx $ echo $? 0 Signed-off-by: Ron Yorston <rmy@po...
Denys VlasenkoDenys Vlasenko
bddbeb82bfeqemu_multiarch_testing: small improvementsSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
78900354524tcpudp: define SO_ORIGINAL_DST directly, not via includemusl does not like including linux/netfilter_ipv4.h (enum / #define collision in two headers, resulting in "3 = 3" type situation in enum definition). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
1f71014fd6ddepmod: don't build it if MODPROBE_SMALL=ySigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
96f1d6b70c6Update to examples/var_service/README_distro_proposal.txtSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
7d5c881bd0cmake_single_applets.sh: SH_IS_HUSH needs special handling tooWell, in fact it works (make oldconfig throws only a warning when it sees both SH_IS_HUSH=y and SH_IS_NONE=y), but let's be nice. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
0b8835861b2Make it possible to select "sh" and "bash" aliases without selecting ash or hushThe same can be done for msh, but we are probably better off just deleting it in a next versio or two. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
04c1a2a2c4aMake RMMOD=y by defaultSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
3bf4d692500Make INSMOD=y by defaultSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
100aea84869Remove FEATURE_IFUPDOWN_IP_BUILTIN and FEATURE_IFUPDOWN_IFCONFIG_BUILTINThey merely enable ip or ifconfig/route. There is already a way to do this on the same menuconfig page. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
a1cd0d98499modprobe-small: make applets individually selectableSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
ce3a98a222aMake DPKG=y and DPKG_DEB=y by defaultSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
4ea0ebdd429Selinux complains about deprecated selinux/flask.h, stop including itSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
1afa494fd13Make FEATURE_USERNAME_COMPLETION=y by defaultThis matches bash behavior on Fedora Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
10c01a711f9make_single_applets.sh: a tool to check single-applet buildsSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>