aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * ash: remove contradicting size info in config helpDenys Vlasenko2017-07-181-2/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hush: remove contradicting size info in config helpDenys Vlasenko2017-07-181-1/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * Update menuconfig items with approximate applet sizesDenys Vlasenko2017-07-18303-379/+409
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * Tweaks from mass recompile for 1.27.1 releaseDenys Vlasenko2017-07-182-7/+53
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hush: tweak "help" outputDenys Vlasenko2017-07-181-2/+2
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | ash: allow for filename extension in find_commandRon Yorston2017-07-241-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When searching for a command specified as a pathname also check for the filename with a '.exe' or '.com' extension. Previously even if /bin/busybox.exe was present we got: $ command -v /bin/busybox $ echo $? 127 This now becomes: $ command -v /bin/busybox /bin/busybox $ echo $? 0
* | win32: simplify spawning appletsRon Yorston2017-07-212-30/+5
| | | | | | | | | | | | | | The original WIN32 code used the BUSYBOX_APPLET_NAME environment variable to pass the applet name to the spawned process. This was based on the (apparently) mistaken idea that WIN32 would replace argv[0] with the path to the executable.
* | Update default configurationsRon Yorston2017-07-182-28/+50
| |
* | Merge branch 'busybox' into mergeRon Yorston2017-07-18157-1220/+3033
|\|
| * printf: fix format string sanity checkRon Yorston2017-07-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | One of the tests for printf checks for an invalid bare '%' in the format string: $ busybox printf '%' a b c printf: %: invalid format On x86_64 a slightly different test doesn't work correctly: $ busybox printf '%' d e f printf: invalid number 'd' printf: invalid number 'e' printf: invalid number 'f' On other platforms the test fails randomly depending on how the arguments are laid out in memory. There are two places in the code where strchr is used to determine if a character in the format string is valid. However, strchr also returns a valid pointer if the character being searched for is the null terminator thus causing the code to incorrectly suppose that a valid character has been found. Add explicit checks for the null terminator. Signed-off-by: Ron Yorston <rmy@pobox.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hush: fix readonly2.tests failureDenys Vlasenko2017-07-183-0/+13
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hush: another testcase for "READONLY_VAR=VAL BLTIN ..."Denys Vlasenko2017-07-184-5/+27
| | | | | | | | | | | | Currently fails. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hush: do not assign to readonly VAR in "VAR=VAL CMD" syntax tooDenys Vlasenko2017-07-183-12/+33
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hush: add readonly testcase, fix falloutDenys Vlasenko2017-07-183-9/+53
| | | | | | | | | | | | | | | | | | | | function old new delta helper_export_local 185 214 +29 run_pipe 1549 1560 +11 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/0 up/down: 40/0) Total: 40 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hush: convert exp/ro/local parameters to bitfields in one flag paramDenys Vlasenko2017-07-181-46/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta helper_export_local 174 185 +11 set_local_var 424 420 -4 run_list 1048 1044 -4 set_vars_and_save_old 88 83 -5 set_local_var_from_halves 27 22 -5 run_pipe 1554 1549 -5 builtin_export 173 168 -5 set_pwd_var 40 34 -6 builtin_readonly 70 64 -6 expand_one_var 1625 1618 -7 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/9 up/down: 11/-47) Total: -36 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hush: HUSH_READONLY depends on HUSHDenys Vlasenko2017-07-171-0/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hush: forgot to emit error on (failing) second "readonly VAR=VAL"Denys Vlasenko2017-07-171-3/+2
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hush: smaller code in !READONLY configsDenys Vlasenko2017-07-171-4/+7
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hush: implement "readonly" builtinDenys Vlasenko2017-07-171-36/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta builtin_readonly - 70 +70 helper_export_local 152 174 +22 bltins1 348 360 +12 expand_one_var 1620 1625 +5 builtin_export 168 173 +5 set_pwd_var 36 40 +4 set_local_var 410 414 +4 set_vars_and_save_old 85 88 +3 set_local_var_from_halves 24 27 +3 run_pipe 1551 1554 +3 run_list 1046 1048 +2 builtin_type 116 114 -2 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 10/1 up/down: 133/-2) Total: 131 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ash: more general format ${var:EXPR:EXPR}Denys Vlasenko2017-07-173-17/+73
| | | | | | | | | | | | | | | | function old new delta subevalvar 1171 1202 +31 localcmd 364 366 +2 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ash: "you disabled math" is wrong: user did not disable it, builder of ash didDenys Vlasenko2017-07-171-1/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hush: small fix to last commitDenys Vlasenko2017-07-171-1/+1
| | | | | | | | | | | | die_if_script() indeed dies only in scripts! Must handle the case where it continues. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hush: support ${VAR:N:-M}Denys Vlasenko2017-07-173-23/+72
| | | | | | | | | | | | | | | | function old new delta expand_one_var 1602 1615 +13 builtin_type 114 116 +2 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * shells: expand TODO comments, no code changesDenys Vlasenko2017-07-172-5/+27
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ttysize: if stdin is not tty, try stdout, then stderrDenys Vlasenko2017-07-161-2/+5
| | | | | | | | | | | | | | | | function old new delta ttysize_main 135 175 +40 packed_usage 31686 31672 -14 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hush: fix "cmd1 && cmd2 &" handling on NOMMUDenys Vlasenko2017-07-161-9/+13
| | | | | | | | | | | | | | function old new delta done_pipe 234 238 +4 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * arch: new applet (same as unmae -m). ~30 bytes.Denys Vlasenko2017-07-161-69/+96
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * shell: and_or_and_backgrounding.tests is no longer "UNFIXED BUG"Denys Vlasenko2017-07-152-2/+0
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hush: fix and_or_and_backgrounding.tests failureDenys Vlasenko2017-07-155-1/+71
| | | | | | | | | | | | | | function old new delta done_pipe 133 218 +85 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * config: reorder items in "Busybox Settings", improve helpDenys Vlasenko2017-07-151-63/+69
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * config: merge "Busybox Settings" and "Busybox Library Tuning" into one menuDenys Vlasenko2017-07-153-53/+59
| | | | | | | | | | | | Tweak a few help texts while at it Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * Move get_unaligned_le32() macros to platform.hDenys Vlasenko2017-07-153-9/+17
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * fix more instances of ": $((a++))" in shell scriptsDenys Vlasenko2017-07-153-8/+8
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * make_single_applets: fix ": $((fail++))" expansion errorKang-Che Sung2017-07-151-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | $((fail++)) is not a required expression in POSIX, and in "dash" it could produce an error like this: ./make_single_applets.sh: 61: arithmetic expression: expecting primary: "fail++" Replace this with something portable: fail=$((fail+1)) would work. Signed-off-by: Kang-Che Sung <explorer09@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * config: fix tab-damaged help textDenys Vlasenko2017-07-151-4/+3
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * tls: remove last int16 local variables in pstm codeDenys Vlasenko2017-07-154-4/+4
| | | | | | | | | | | | | | | | | | | | | | function old new delta pstm_mul_comba 439 447 +8 pstm_sqr_comba 475 478 +3 pstm_montgomery_reduce 399 381 -18 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/1 up/down: 11/-18) Total: -7 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * tls: fix pstm asm constraint problemDenys Vlasenko2017-07-153-6/+7
| | | | | | | | | | | | | | function old new delta pstm_sqr_comba 551 475 -76 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * build system: FEATURE_LIBBUSYBOX_STATIC - try to pull libc/libm into libbusyboxDenys Vlasenko2017-07-152-29/+32
| | | | | | | | | | | | It variously fails with different toolchains I tried... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * blkdiscard: provide our own BLK[SEC]DISCARD if necessaryDenys Vlasenko2017-07-151-0/+7
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * tls: fix build problem on non-static i386Denys Vlasenko2017-07-151-1/+3
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * Makefile: include per-arch Makefile before Makefile.flagsThomas Petazzoni2017-07-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Makefile.flags contains: ARCH_FPIC ?= -fpic ARCH_FPIE ?= -fpie However, arch/$(ARCH)/Makefile gets included *after* Makefile.flags, and therefore doesn't get the chance to provide its own value. Fix this by including arch/$(ARCH)/Makefile *before* Makefile.flags. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * copyfd: guard use of munmap() with #if (windows builds need this)Johannes Schindelin2017-07-151-0/+3
| | | | | | | | | | Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ash: protect WIFSTOPPED use with #if JOBSJohannes Schindelin2017-07-151-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | This change fixes the build in setups where there are no headers defining WIFSTOPPED and WSTOPSIG (where JOBS has to be set to 0). This partially reverts 4700fb5be (ash: make dowait() a bit more readable. Logic is unchanged, 2015-10-09). Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * libbb: hide getnetbyaddr() inside "#if ENABLE_FEATURE_ETC_NETWORKS" blockDenys Vlasenko2017-07-141-27/+19
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hush: make "wait %1" work even if the job is deadDenys Vlasenko2017-07-141-39/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Example script: sleep 1 | (sleep 1;exit 3) & sleep 2 echo Zero:$? wait %1 echo Three:$? function old new delta clean_up_last_dead_job - 24 +24 process_wait_result 426 447 +21 builtin_wait 285 293 +8 insert_job_into_table 264 269 +5 builtin_jobs 68 73 +5 remove_job_from_table 59 57 -2 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 4/1 up/down: 63/-2) Total: 61 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hush: remove superfluous comparisonDenys Vlasenko2017-07-141-1/+1
| | | | | | | | | | | | | | function old new delta builtin_wait 291 285 -6 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * uuencode: allow space instead of "`" as padding char. Closes 10046Denys Vlasenko2017-07-141-3/+9
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * xxd: allow "-" as file name meaning stdinDenys Vlasenko2017-07-141-4/+6
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * libbb/dump: allow skipping over stdin tooDenys Vlasenko2017-07-141-20/+13
| | | | | | | | | | | | | | function old new delta next 294 265 -29 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * libbb/dump: fix a few broken commits and shrink codeDenys Vlasenko2017-07-141-10/+10
| | | | | | | | | | | | | | function old new delta next 310 294 -16 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>