fli4l
  1. fli4l

busybox

Public
AuthorCommitMessageCommit dateIssues
Denys VlasenkoDenys Vlasenko
03fd7e06f85grep: fix echo "aa" | busybox grep -F -w "a" (should not match)function old new delta grep_file 1461 1470 +9 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
3be4b9b0deefstrim: do not check that specified file is on a block deviceKernel will surely inform us in FITRIM does not make sense on a given file. function old new delta fstrim_main 241 221 -20 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
d1b845706dfhush: add a FIXME commentSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
9acd63c92cbash,hush: fix "saved" redirected fds still visible in childrenBased on a patch by Mark Marshall <mark.marshall@omicronenergy.com> function old new delta dup_CLOEXEC - 49 +49 fcntl_F_DUPFD 46 - -46 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
e4defe826belibbb: use BUILD_BUG_ON in utoa_to_buf()Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Kaarle RitvanenKaarle Ritvanen
123fdda0a4aifupdown: do not fail if interface disappears during ifdownInterface may not exist because it got deleted by an ifdown hook script earlier. This may happen when a virtual interface, such as VLAN, has multiple iface blocks defined. function old new delta static_down6 14 40 +26 static_down 54 70 +16 -----...
Denys VlasenkoDenys Vlasenko
46ba2468a3dioctl(SIOCGIFINDEX) does not require clearing of entire ifrfunction old new delta INET6_setroute 492 472 -20 do_iplink 1357 1330 -27 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-47) Total: -47 bytes Signed-off-by: Deny...
Mark MarshallMark Marshall
98592db3231netstat: produce numeric-ip output for non-resolved namesIf we don't ask for numerical output, and the symbolic look-up failed we used to get "(null)", but the numeric output would be better. function old new delta ip_port_str 109 121 +12 Signed-off-by: Mark Marshall <mark.marshall@omicronenergy.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail...
Ron YorstonRon Yorston
b5820d9fd88ssl_client: fix option parsingThe wrong character was used to indicate options taking an integer parameter. Signed-off-by: Ron Yorston <rmy@pobox.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
b3e98b1ccc8top: fix "warning: unused variable new_mask"Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
3c08437db7btar: add -o and -k to short --help tooSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
1ee222e1bf2tar: add -k and -o to --help -o Don't restore user:group -k Don't replace existing files Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
bbe47d9b9aetcpsvd: fix fallout from opt_complementary removal text data bss dec hex filename 933035 473 6836 940344 e5938 busybox_old 933051 473 6836 940360 e5948 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
0e09ded2f1areadprofile: code shrinkfunction old new delta defaultpro 14 - -14 defaultmap 17 - -17 readprofile_main 1762 1719 -43 ------------------------------------------------------------------------------ (add/remove: 0/2 grow/shri...
Denys VlasenkoDenys Vlasenko
448fdcc17dfntpd: choose initial FREQHOLD_cnt dynamicallyfunction old new delta update_local_clock 834 858 +24 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
3d306bffc59udhcpd: clamp down huge auto_times to ~2M seconds, better EINTR poll handlingEINTR _should_ only happen on two signals we trap, and safe_poll _should_ work here just fine, but there were kernel bugs where spurious EINTRs happen (e.g. on ptrace attach). Be safe. function old new delta udhcpd_main 1437 1468 +31 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
39dfb4de38fntpd: suppress in-kernel frequency correction in first 8 adjtimex callsIn other words: try to correct initially existing clock offset first, before assuming that our clock drifts. function old new delta update_local_clock 826 834 +8 ntp_init 550 557 +7 filter_datapoints 179 173 ...
Denys VlasenkoDenys Vlasenko
3293bc14698udhcpd: fix "not dying on SIGTERM"Fixes: commit 52a515d18724bbb34e3ccbbb0218efcc4eccc0a8 "udhcp: use poll() instead of select()" Feb 16 2017 udhcp_sp_read() is meant to check whether signal pipe indeed has some data to read. In the above commit, it was changed as follows: - if (!FD_ISSET(signal_pipe.rd, rfds)) + if (!pfds[0].revents) return 0; The problem is, the check was working for select() purely by accident. Caught...
Denys VlasenkoDenys Vlasenko
3936222a0acremove stray newline in "iplink --help"function old new delta packed_usage 32547 32550 +3 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
db169f25385ip: fix "ip -oneline a"Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
7798282db22ipcs: further code shrinkfunction old new delta packed_usage 32543 32547 +4 ipcs_main 1014 980 -34 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/1 up/down: 4/-34) Total: -30 bytes Signed-off-by: Deny...
Denys VlasenkoDenys Vlasenko
f7fa8001b7dipcs: code shrinkfunction old new delta packed_usage 32539 32543 +4 format 1 - -1 do_shm 883 880 -3 do_sem 636 633 -3 do_msg ...
Denys VlasenkoDenys Vlasenko
694bc063458md5sum: use config help text similar to other "sum" toolsSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
a2cae937d02top: much faster cursor key navigation by avoiding process rescanfunction old new delta handle_input 549 560 +11 top_main 889 891 +2 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
75e56a3db9ctop: do unsigned rather than signed division in do_stats()Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
86107d6dc7btop: handle much larger VSZ valuesfunction old new delta display_process_list 1018 999 -19 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
e1b1b792697use gmtime_r() instead of gmtime()This avoids pulling in gmtime's static buffer: function old new delta svlogd_main 1401 1412 +11 send_headers 668 678 +10 gmtime 21 - -21 ---------------------------------------------------------...
Denys VlasenkoDenys Vlasenko
33f7c8f200bhush: code shrinkfunction old new delta run_pipe 1589 1591 +2 pseudo_exec_argv 374 375 +1 builtin_type 114 115 +1 find_function 8 - -8 --------------------------------...
Denys VlasenkoDenys Vlasenko
d51ba0b5ab1networking/interface.c: get rid of global dataThese were data/bss: static.proc_read 1 - -1 int_list 4 - -4 int_last 4 - -4 We never call display_interfaces() twice, thus code to not scan /proc twice never triggers. function old n...
Denys VlasenkoDenys Vlasenko
82ec89480d5networking/interface.c: get rid of global "smallint interface_opt_a"Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
8a5299fcfd5networking/interface.c: code shrinkfunction old new delta ife_print 1293 1296 +3 display_interfaces 145 146 +1 if_readconf 162 141 -21 if_readlist_proc 631 560 -71 do_if_fetch ...
Peter LloydPeter Lloyd
804ce5a6fedwget: fix fetching of https URLs with http proxyWhen fetching a https:// URL with HTTP proxy configured (e.g. with environment variable http_proxy=http://your-proxy:3128) busybox was making a https connection to the proxy. This was because the protocol scheme for the target URL was used to determine whether to connect to the proxy over SSL or not. When the proxy is in use, the decision on whether to connect to the proxy over https should b...
Sean MacLennanSean MacLennan
d9aabfe578emake busybox more portableMove some distro specific include files into the appropriate #ifdef blocks to make the code more portable. Signed-off-by: Sean MacLennan <seanm@seanm.ca> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
d4802c6243ehush: fix a='a\\'; echo "${a%\\\\}"Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
55f8133a4fbshell: tweak bkslash_in_varexp.tests, add bkslash_in_varexp1.testsIt turns out bkslash_in_varexp.tests was a bash bug :] ash and hush fail "corrected" bkslash_in_varexp.tests as well, just not as badly as I thought (hush gets half of the cases right). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
744a20d8f9bshell: two new tests, both fail for ash and hushSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Andy ShevchenkoAndy Shevchenko
cc222747ae7libbb: Use return value from is_prefixed_with()add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-5 (-5) Function old new delta skip_dev_pfx 30 25 -5 Total: Before=779966, After=779961, chg -0.00% Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
d82ea2ba8f9tcpudp: shrink per-host rate-limiting codefunction old new delta tcpudpsvd_main 1775 1780 +5 ipsvd_perhost_add 108 107 -1 cclen 4 - -4 cc 4 - -4 ipsvd_perhost_init ...
Denys VlasenkoDenys Vlasenko
0e0209ac531less: accept -R option. Closes 10816Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Ron YorstonRon Yorston
23286900da2lineedit: allow window size tracking to be disabledfunction old new delta lineedit_read_key 269 261 -8 win_changed 47 - -47 read_line_input 3884 3821 -63 cmdedit_setwidth 63 - -63 --------------------------------...
Denys VlasenkoDenys Vlasenko
e20a703fd34df: do "rootfs" check soonerfunction old new delta df_main 1065 1064 -1 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
58cd6e1adefdf: 4TB+ support on 32 bits archReported for Pascal Bellard. function old new delta df_main 1054 1065 +11 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
bf39d97e9d9Fix install with hardlinks and a custom PREFIX. Closes 10801Trying to install busybox with hardlinks and a custom PREFIX will fail for applets not in the /bin directory, because relative pathnames are used. applets/install.sh is *supposed to* use the absolute pathname for hardlinks but it fails to do so because the wrong check is used in the if statement. While fixing it, shore up other sloppy coding in applets/install.sh Signed-off-by: Denys Vlasenko...
Denys VlasenkoDenys Vlasenko
3177626033fod: move address_fmt[] from data to globals. 8 less bytes in data sectionfunction old new delta od_main 2164 2179 +15 address_fmt 8 - -8 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 1/0 up/down: 15/-8) Total: 7 bytes text data ...
Denys VlasenkoDenys Vlasenko
2709acbbda8sort: fix potentially buggy use of OPT_STRThis also makes OPT_STR reused: text data bss dec hex filename 930979 481 6852 938312 e5148 busybox_old 930954 481 6852 938287 e512f busybox_unstripped ^^^^^^ Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
427ae18348asort: in -s handling, return 1/-1, not 1/0 compare resultfunction old new delta compare_keys 794 795 +1 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
2af5e3fac39libbb: compile capability code only if FEATURE_SETPRIV_CAPABILITIES or RUN_INITSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
7d285c78a35sort: fix -s. Closes 10671function old new delta sort_main 786 862 +76 compare_keys 720 794 +74 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/0 up/down: 150/0) Total: 150 bytes Signed-off-by: Deny...
Jan LuebbeJan Luebbe
e789c3bea18iplink: implement support for selecting a master interfaceAttaching an interface to a VRF is done by setting the interface's master. Besides VRF, this can also be used for bridges. function old new delta set_master - 142 +142 do_iplink 1262 1357 +95 packed_usage 325...
Jan LuebbeJan Luebbe
79cda9522adip link: support "add TYPE vrf", improve --helpVRF interfaces have a mandatory table parameter, which needs to be specified using a RTNL attribute. function old new delta do_add_or_delete 1150 1254 +104 packed_usage 32444 32546 +102 ----------------------------------------------------------------------------...