fli4l
  1. fli4l

busybox

Public
AuthorCommitMessageCommit dateIssues
Ron YorstonRon Yorston
f23264b35f5lineedit: search applets as well as PATH for tab completionIn standalone shell mode search the applet table as well as PATH when tab completing a command. Use a stupid linear search: we're also about to read all the directories on PATH so efficiency isn't a big concern. function old new delta add_match - 53 +53 complete_cmd_dir_file ...
Ron YorstonRon Yorston
ae57af6e78ebusybox: alter help message in standalone shell modeSigned-off-by: Ron Yorston <rmy@frippery.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
112889d7067hush: copy for.tests from ash testsuiteThis test passes for hush Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Ron YorstonRon Yorston
c0e007663d3ash: simplify EOF/newline handling in list parserProcessing of here documents in ash has had a couple of breakages which are now the subject of tests. This commit should fix both. It is based on the following commit in dash git by Herbert Xu: <7c245aa> [PARSER] Simplify EOF/newline handling in list parser (See git://git.kernel.org/pub/scm/utils/dash/dash.git) Reported-by: Natanael Copa <ncopa@alpinelinux.org> Signed-off-by: Ron Yorsto...
Ron YorstonRon Yorston
6bd2fabc52fRevert "ash: fix a SEGV case in an invalid heredoc" xxxThis reverts commit 7e66102f762a7d80715f0c7e5925433256b78cee but leaves the test in place as it's still valid. Reported-by: Natanael Copa <ncopa@alpinelinux.org> Signed-off-by: Ron Yorston <rmy@pobox.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Ron YorstonRon Yorston
713f07d906dash: fix error during recursive processing of here documentSave the value of the checkkwd flag to prevent it being clobbered during recursion. Based on commit ec2c84d from git://git.kernel.org/pub/scm/utils/dash/dash.git by Herbert Xu. function old new delta readtoken 190 203 +13 ------------------------------------------------------------------------...
Denys VlasenkoDenys Vlasenko
7b14ede049dash tests: make test print test name before it is runSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Ron YorstonRon Yorston
ef2386b80abash: only allow local variables in functionsSigned-off-by: Ron Yorston <rmy@pobox.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Ron YorstonRon Yorston
3f221113a50ash: respect -p flag when command builtin is run with -v/-VThe command builtin should only check the default path, not $PATH, when the -p flag is used along with -v/-V. Based on commits 65ae84b (by Harald van Dijk) and 29ee27d (by Herbert Xu) from git://git.kernel.org/pub/scm/utils/dash/dash.git). function old new delta commandcmd 72 87 +15 describe_...
Denys VlasenkoDenys Vlasenko
e2f32c02b14ash: fix command -- crashbusybox sh -c 'command --' segfaults because parse_command_args returns a pointer to a null pointer. Based on commit 18071c7 from git://git.kernel.org/pub/scm/utils/dash/dash.git by Gerrit Pape. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Ron YorstonRon Yorston
383b885ff76ash: save a few bytes in code to parse case statementsBased on commit 49b82fc from git://git.kernel.org/pub/scm/utils/dash/dash.git by Herbert Xu. function old new delta parse_command 1563 1555 -8 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-8) Total: -8 bytes...
Ron YorstonRon Yorston
ab80e01cd98ash: allow newline after variable name in for loopNewline is a valid delimiter between the variable name and `in` keyword in for loops. Based on commit 22e8fb4 from git://git.kernel.org/pub/scm/utils/dash/dash.git by Herbert Xu. function old new delta parse_command 1568 1563 -5 ----------------------------------------------------------------------...
Ron YorstonRon Yorston
9121510dc65ash: add test for issue with here documentThis used to work but doesn't now: foo () { cat <<EOF && { echo "$1" ; } $1 EOF } foo "bar" Reported-by: Natanael Copa <ncopa@alpinelinux.org> Signed-off-by: Ron Yorston <rmy@pobox.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
4c8576fea18modinfo: fix "-F firmware", add "intree" field displayfunction old new delta shortcuts - 52 +52 modinfo 317 330 +13 display 77 87 +10 packed_usage 30752 30761 +9 modinfo_main ...
Denys VlasenkoDenys Vlasenko
48403253519lzop: eliminate variable, use "int" as return typeBased on patch by Maxin B. John <maxin.john@intel.com> function old new delta pack_lzop 870 859 -11 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Timo TeräsTimo Teräs
82c2fad26c4fbsplash: use virtual y size in mmap size calculationsThe virtual y can be larger - and we can be even writing there since we are taking into account the y offset. Avoids possible crash. But use it only if set, seems it is not set if virtual area is not allocated (though, often fbcon allocates some scrollback area). Signed-off-by: Timo Teräs <timo.teras@iki.fi> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Aaro KoskinenAaro Koskinen
cddc98eab7dgzip: add support for --no-name long optionAdd support for --no-name long option. Just silently ignore it like the short -n option. This allows to use busybox gzip with Lynx browser. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Aaro KoskinenAaro Koskinen
fbe50cf6bc6gunzip: add support for long optionsAdd support for long options. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
1de25a6e87eunzip: test for bad archive SEGVingfunction old new delta huft_build 1296 1300 +4 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Richard GenoudRichard Genoud
d683c5c2f14tr: support octal rangesnow, we can do printf "a\tb\tcdef\n" | ./busybox tr -d "\1-\14b-e" af and bonus, we save some bytes. function old new delta expand 718 699 -19 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-19) Total: ...
Timo TeräsTimo Teräs
028524317d8ifupdown: pass interface device name for ipv6 route commandsIPv6 routes need the device argument for link-local routes, or they cannot be used at all. E.g. "gateway fe80::def" seems to be used in some places, but kernel refuses to insert the route unless device name is explicitly specified in the route addition. Signed-off-by: Timo Teräs <timo.teras@iki.fi> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
db700330d89tweak defconfigMONOTONIC_SYSCALL=y by default FEATURE_LAST_SMALL is gone: now FEATURE_LAST_FANCY is a "bool", not a "choice". Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
0269789537cinetd: make FEATURE_INETD_RPC off by defaultSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Ron YorstonRon Yorston
8814431aca6libiproute: use if_nametoindexSaves 87 bytes. Assuming, of course, all platforms have it. Signed-off-by: Ron Yorston <rmy@pobox.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Aaro KoskinenAaro Koskinen
6d777b75ed3xargs: make -I imply -rMake -I imply -r (GNU findutils seems to do the same). Fixes the following bug: $ echo -n | xargs -I% echo % Segmentation fault Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
f98705a00c1dumpleases: string reuse text data bss dec hex filename 926254 906 17160 944320 e68c0 busybox_old 926242 906 17160 944308 e68b4 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Isaac DunhamIsaac Dunham
d320a1e7a57dumpleases: new option -d to show time in secondsfunction old new delta dumpleases_main 493 534 +41 static.dumpleases_longopts 31 41 +10 packed_usage 30777 30752 -25 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shri...
Denys VlasenkoDenys Vlasenko
334e12ac6a5zcip: ...ad suppress the warningSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
49d51598ac1zcip: do not query current time if we won't use the resultSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
bf1866c1832tweak zcip service exampleSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
1a1cfedbef2Tweak READMESigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
4f8ecf273c4update network service examplesSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
d32a1a40544New example of a service: examples/var_service/zcip_ifZeroconf for IPv4 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
9a512176686dumpleases: make host names sanitized to shell-friendly conditionfunction old new delta add_lease 271 298 +27 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
941e7a49197reuse a stringSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
cd13974b201rmmod: fix bad error message Before: ># busybox_old rmmod gtrhfhdfghdf rmmod: can't unload 'gtrhfhdfghdf': unknown symbol in module, or unknown parameter After: ># busybox rmmod gtrhfhdfghdf rmmod: can't unload module 'gtrhfhdfghdf': No such file or directory function old new delta modprobe_main 726 721 ...
Denys VlasenkoDenys Vlasenko
2e9a0662bceMODPROBE_SMALL is not experimental anymoreSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
049b007865epmap: fix bogus {no such process} comm field textfunction old new delta read_cmdline 246 266 +20 procps_get_maps 196 193 -3 packed_usage 30413 30404 -9 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shri...
Denys VlasenkoDenys Vlasenko
00da72bee09tidy up strtok useSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
59f84759247httpd: fix heap buffer overflow. Closes 8426function old new delta send_headers 654 677 +23 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
d3d6534b2a8wget: if stderr is not a tty, progress bar shouldn't use tty-tricksfunction old new delta bb_progress_update 706 768 +62 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
641caaec3d4libbb: factor out code which queries screen widthfunction old new delta get_terminal_width - 17 +17 stty_main 1196 1197 +1 pstree_main 321 319 -2 ls_main 735 731 -4 watch_main ...
Denys VlasenkoDenys Vlasenko
a9607487485tar: add a test that we don't write into symlinksSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
accd9eeb719remove systemd supportsystemd people are not willing to play nice with the rest of the world. Therefore there is no reason for the rest of the world to cooperate with them. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
537389cedd3tar: fix files skipped with --strip_components not resetting selinux contextSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
f167e4503d0tar: shrink hardlink name handling codefunction old new delta data_extract_all 1069 1040 -29 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
62ae323df08tar: implement --version for buildrootSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
6c563e370d0tar: add support for --strip-components=Nfunction old new delta data_extract_all 882 995 +113 tar_longopts 290 309 +19 tar_main 938 942 +4 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shri...
Denys VlasenkoDenys Vlasenko
c47917865d5login: explain -h HOST option betterSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
92e1b0826d8wget: make Bartosz's "wget --passive-ftp -nd -t 3" workfunction old new delta static.wget_longopts 166 234 +68 wget_main 2608 2610 +2 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>