fli4l
  1. fli4l

busybox

Public
AuthorCommitMessageCommit dateIssues
Denys VlasenkoDenys Vlasenko
d6a37d86ba6hush: document better where bad redirect syntax is detectedSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Hauke MehrtensHauke Mehrtens
4ff86df8610libnetlink: fix alignment of netlink messagesA padding to align a message should not only be added between different attributes of a netlink message, but also at the end of the message to pad it to the correct size. Without this patch the following command does not work and returns an error code: ip link add type nlmon Without this ip from busybox sends this: sendmsg(3, {msg_name={sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, m...
Denys VlasenkoDenys Vlasenko
0ae05096790libbb: do not use fflush_unlocked, musl does not like fflush_unlocked(NULL)Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Rostislav SkudnovRostislav Skudnov
204c7fb2293ash: exit after subshell error when errexit option is setWhen "set -e" option is on, shell must exit when any command fails, including compound commands of the form (compound-list) executed in a subshell. Bash and dash shells have this behaviour. Also add a corresponding testcase. Signed-off-by: Rostislav Skudnov <rostislav@tuxera.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
b157eb13cbcfdisk: fix CONFIG_FEATURE_SUN_LABEL=y buildSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
7373759947afix "aloc" -> "alloc" typosSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
7bc3d396957ash: add a FIXME for bug 9246Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Francis RoundsFrancis Rounds
d2c5de0130dsvlogd: strip leading '!' from processor linesWhen using svlogd's processor functionality to run arbitrary commands on log rotation, the line in the config is executed verbatim, i.e. the exclamation mark is included. For example, if the config file contains: s100 !cat then when it's time to rotate the log files after each 100 bytes, sh -c "!cat" will be run, instead of sh -c "cat" as intended. The result is svlogd logging /...
Denys VlasenkoDenys Vlasenko
de1996dac51vi: make "g<key>" error message less likely to show garbageSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
7cef4817d6dlibbb:/send_to_from: do not require that "to" should have the same AF. Closes 9146Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Mike FrysingerMike Frysinger
3a45b87ac36modutils: support finit_module syscallOn some systems like Chromium OS, loading modules from non-verified filesystems is denied. Only finit_module is allowed because an open fd is passed which can be checked against a verified location. Change the module loading code to first attempt finit_module and if that fails for whatever reason, fall back to the existing logic. On x86_64, this adds ~80 bytes to modutils/modutils.o and ~68 ...
Denys VlasenkoDenys Vlasenko
7fa799a97d3less: switch off nonblock on kbd_fd before exitThis is only necessary if we use stdout fd. function old new delta less_exit 32 51 +19 less_main 2540 2543 +3 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/0 up/down: 22/0) ...
Denys VlasenkoDenys Vlasenko
3c0e579a06cless: fall back to using fd #1 for keyboard reading. Closes 9231function old new delta less_main 2535 2540 +5 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
20a3262cd75mdev: create devices from /sys/devCurrently some new devices that have a bus but no class will be missed by mdev coldplug device creation after boot. This happens because mdev recursively searches /sys/class which will by definition only find class devices. Some important devices such as iio and gpiochip does not have a class. But users will need them. This switches from using /sys/class as the place to look for devices to cr...
Denys VlasenkoDenys Vlasenko
b9f56e82da9sendmail: make it possible to pause after connection helper is startedIf a non-starttls helper is in use, initial 220 response is processed by us, not by helper. Some servers consider us to be a spammer if we don't wait for it. It is not in protocol, but it is a real-life problem. The workaround in this patch is a magic envvar, $SMTP_ANTISPAM_DELAY: ... -H 'PROG ARGS' Run connection helper. Examples: openssl s_client -quiet -tls1 -starttls smtp -connect smt...
Serj KalichevSerj Kalichev
d42cdc2222dvolume_id: Add support for UBIFSSigned-off-by: Serj Kalichev <serj.kalichev@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
9fd61be191clibbb/xwrite: print errno on "short write" errorsLauri Kasanen: :: Over at TinyCore, we receive a huge number of questions of the type "I :: got "short write", what does it mean?". Mostly for the rpi port and when :: using bb wget. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
76787a7e025libbb/speed_table.c: survive B115200 and B230400 not fitting into 16 bitsSeen on OSX. While at it, expand baud table with B500000..B4000000 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
ef15970d7ec*: placate some compile warnings on OSXSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
76d72376e02sed: fix "sed n (flushes pattern space, terminates early)" testcase failurePatch based on work by Dengke Du <dengke.du@windriver.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
9ff910de6bewget: treat 201,202,203 as success codes too. Closes 9211This matches "standard" wget. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
d811aaa43c2sha3sum: fix config text (it's no longer only 512-bit)Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
71a090f1871sha3: fix to conform to final SHA3 padding standard, add -a BITS optionfunction old new delta hash_file 331 396 +65 md5_sha1_sum_main 485 538 +53 packed_usage 30423 30464 +41 sha3_begin 17 31 +14 sha3_hash ...
Denys VlasenkoDenys Vlasenko
d3d7f085ebfhexdump: fix numerous bugs in handling of backslashesWas: t=48\\ t=45\\ t=4c\\ t=4c\\ t=4f\\ t=0a\\ Now: =48=\n =45=\n =4c=\n =4c=\n =4f=\n =0a=\n Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Peter KorsgaardPeter Korsgaard
b6355e2bb5cudhcpc: Unconditionally call deconfig script, not only if lease is activeThe udhcpc script may be used to setup fallback configuration (E.G. IPv4LL, fixed IP address, ..) that also needs to be cleaned up on release (E.G. when SIGUSR2 is called or on shutdown with -R), so unconditionally call deconfig. Signed-off-by: Peter Korsgaard <peter@korsgaard.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
0dddbc1a597build system: always rewrite NUM_APPLETS.hConditional rewrite can keep NUM_APPLETS.h mtime old, this causes make to try to regenerate it at every invocation. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
29483ffb075fdisk: tweak some messages"Total allocated sectors 2021315 greater than the maximum 2020356" maximum what? Turns out, that's the CHS size of the disk. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
607f2b404e9fdisk: print much less cryptic partition tableBefore: Device Boot Start End Blocks Id System /dev/sdb1 * 1 998 255471+ 6 FAT16 What are "blocks"? What is that "+"? How big is this partition? Is start/end shown came from LBA fields or CHS fields? Why are we torturing the user?? After: Device Boot StartCHS EndCHS StartLBA EndLBA Sectors Size Id Type /dev/sdb1 * 0,1,1 ...
Denys VlasenkoDenys Vlasenko
6b76e234549man: fix parsing of "DEFINE pager xyz". Closes 8976Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
d035528261einit: fix for FreeBSD console opening. Closes 9031Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
2cf9fa6e597unshare: --network should be --net. Closes 9116Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Kang-Che SungKang-Che Sung
b28897849fcdocs: Update filenames in keep_data_small.txtThe filenames in docs/keep_data_small.txt are a little bit outdated. It's better to change it to the current name. decompress_unzip.c -> decompress_gunzip.c (since commit 774bce8e8ba1e424c953e8f13aee8f0778c8a911) libbb/messages.c -> libbb/ptr_to_globals.c (since commit 574f2f43948bb21d6e4187936ba5a5afccba25f6) Signed-off-by: Kang-Che Sung <explorer09@gmail.com> Signed-off-by: Denys Vlasenko <...
Denys VlasenkoDenys Vlasenko
aa3576a29b9hush: fix "redirects can close script fd" bugSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
d8e61bbf13dbuild system: different fix for include/applet_tables.h/include/NUM_APPLETS.hSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
de3da6bf87awget/ssl_helper: update to wolfssl-3.9.8Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
7b25b1c5b27hush: do not leak script fds into NOEXEC childrenWe set all opened script fds to CLOEXEC, thus making then go away after fork+exec. Unfortunately, CLOFORK does not exist. NOEXEC children will still see those fds open. For one, "ls" applet is NOEXEC. Therefore running "ls -l /proc/self/fd" in a script from standalone shell shows this: lrwx------ 1 root root 64 Aug 20 15:17 0 -> /dev/pts/3 lrwx------ 1 root root ...
Denys VlasenkoDenys Vlasenko
869994cf4f9hush: bit better comments in redirect code. No logic changesSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
e9abe75fda8hush: `cmd` and arithmetic also need the fix for FILE rewindDiscovered by running testsuite with a newest glibc Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
215b0ca6e4fhush: fix a bug in FEATURE_SH_STANDALONE=y config. Closes 9186Run this in a "sh SCRIPT": sha256sum /dev/null echo END sha256sum is a NOEXEC applet. It runs in a forked child. Then child exit()s. By this time, entire script is read, and buffered in a FILE object from fopen("SCRIPT"). But fgetc() did not consume entire input. exit() lseeks back by -9 bytes, from <eof> to 'e' in 'echo'. (this may be libc-specific). This change of fd position *is shared wit...
Denys VlasenkoDenys Vlasenko
aedc3fe19fatop: move free(prev_hist) out of signal pathIt was seen being called recursively on repeated signals, leading to double free Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
b11be131b73ifplugd: if SIOCSIFFLAGS fails with ENODEV, don't dieSome user managed to hit a race where iface is gone between SIOCGIFFLAGS and SIOCSIFFLAGS (!). If SIOCSIFFLAGS fails, treat it the same as failed SIOCGIFFLAGS Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
110c6bb413fless: fix bracket search to match behavior of less 481Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
252559601f1less: fix SEGVtestcase: echo "" | less, then press ')' key Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Natanael CopaNatanael Copa
560cf8c7ebdgzip: add test that checks that -9 compresses better than -1Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Natanael CopaNatanael Copa
71cfbce655bgzip: fix compression level bug. Closes 9131fix broken logic to get the gzip_level_config value from options -1 to -9. This fixes an off-by-one bug that caused gzip -9 output bigger files than the other compression levels. It fixes so that compression level 1 to 3 are actually mapped to level 4 as comments say. It also fixes that levels -4 to -9 is mapped to correct level and avoids out-of-bounds access. Signed-off-by: Natanael Copa ...
Natanael CopaNatanael Copa
7e6f9316a8blineedit: trivial codeshrink for vi-modeIntroduce and use BB_isalnum_or_underscore(). function old new delta BB_isalnum_or_underscore - 43 +43 vi_word_motion 162 150 -12 vi_end_motion 163 145 -18 vi_back_motion 198 ...
Denys VlasenkoDenys Vlasenko
9e5820a8627build system: fix include/NUM_APPLETS.h generationTBH, it's more like "work around my bad makefile-fu" than "fix"... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
45482937995libiproute: eliminate some redundant zero storesfunction old new delta do_iprule 974 955 -19 rtnl_dump_request 173 146 -27 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-46) Total: -46 bytes Signed-off-by: Deny...
Denys VlasenkoDenys Vlasenko
34ecc3b7aefip: fix an improper optimization: req.r.rtm_scope may be nonzero hereSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
98c50f93fe4cp: fix -i for POSIX mode. Closes 9106Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>