Denis Vlasenko | d9b5ab868c2 | awk: fix a trivial bug introduced by me.
This is how it goes. I break stuff by doing useless 'cleanups',
people fix t... | | |
Denis Vlasenko | 78e48b2c2c6 | we were basically ignoring CONFIG_USE_BB_PWD_GRP (assuming =y),
fix this | | |
Denis Vlasenko | ffba941d29a | awk: make code a bit less obfuscated | | |
Denis Vlasenko | 5b340830045 | several *.c files:
move 'extern environ' up to the location of #includes | | |
Denis Vlasenko | cd5c7866e32 | vi: remove two globals
awk: some 'lineno' vars were shorts, made them ints (code got smaller)
awk: rename global t to... | | |
Denis Vlasenko | c8be5ee325a | hush: do "struct globals" trick. hush.o data+bss = 0 bytes now.
+60 bytes to image, but -8000 bytes in bss. | | |
Denis Vlasenko | b6a741ffa7b | hush: consolidated variable expansion for assignments and "normal" one.
-435 bytes. Tested against testsuite. | | |
Denis Vlasenko | 96f67dc69d2 | more compile fixes from randomconfig run | | |
Denis Vlasenko | d46e6d1a55f | fix trivial compile errors found by randomconfig run | | |
Denis Vlasenko | a35958d4ad2 | netstat: fix error in new -W option handling | | |
Denis Vlasenko | c666f71e3b9 | hush: take care of several easy FIXMEs. -228 bytes. | | |
Denis Vlasenko | 831dcc439cd | hush: another microscopic typo fix | | |
Denis Vlasenko | c29903221de | hush: fix English in comment | | |
Denis Vlasenko | 3e7b0e61200 | hush: simplify read builtin; fix set_local_var (misplaced 'goto skip;') | | |
Denis Vlasenko | 1f4cf517f58 | hush: fix expansion of quoted $VAR, $* and $@ | | |
Denis Vlasenko | 8f6bdb42df7 | hush: fix incorrect processing of echo "'$var'".
hush: rename map[] and MAP_xxx, making them easier to understand.
hu... | | |
Denis Vlasenko | 418a7fb29b1 | netstat: introduce -W: wide, ipv6-friendly output
netstat: shrink by ~500 bytes
(patch by Cristian Ionescu-Idbohrn <c... | | |
Bernhard Reutner-Fischer | c2b3e370d6b | - apply hunk that fixes an issue with (wrong?) dependencies. Initial notes were:
There is something wrong in the ne... | | |
Bernhard Reutner-Fischer | 64332bf857b | - busybox.c was removed a while ago | | |
Denis Vlasenko | d6050949b8e | hush: move testsuite files from hush-bugs to hush-parsing
(as these bugs are now fixed) | | |
Denis Vlasenko | 764d59d4884 | hush: more fixes to variable expansion, more testcases | | |
Denis Vlasenko | 03eb8bf6ce2 | hush: move towards more correct variable expansion
hush: fix a few cases in FOR v IN ... construct
unfortunatel... | | |
Denis Vlasenko | 602d13cba55 | hush: fix '{ false; echo $?; }' bug.
hush: expand testsuite. variable expansion is still very broken | | |
Denis Vlasenko | 119b995437c | hush: reinstate hush_test, add testcases for process subst | | |
Denis Vlasenko | 3e9aaae5dc3 | hush: fix bug in interactive shell introduced yesterday
hush: fix `process subst` (2 bugs)
NB: will delete and re-add... | | |
Denis Vlasenko | e0a336747c2 | hush: fix "unterminated last line loops forever" bug
hush: add testsuite infrastructure | | |
Denis Vlasenko | 53079d494ef | hush: fix recent breakage (VAR=VAL stopped working) | | |
Denis Vlasenko | 2b54aaa9bf3 | msh: fix obscure case with backticks and closed fd 1 | | |
Denis Vlasenko | 389f9d52d55 | awk: don't segfault on printf(%*s). Close 1337. | | |
Denis Vlasenko | 57bf668d118 | cryptpw: size reduction
function old new delta
cryptpw_main ... | | |
Denis Vlasenko | 68de7207231 | mount: fix incorrect usage of strtok (inadvertently used NULL sometimes).
the change is "for(xxx)...." -> "if(var) fo... | | |
Denis Vlasenko | 8465a99ce79 | less: fix case when regex search finds nothing | | |
Denis Vlasenko | bf678d54237 | tftp: explain "block# 0" codepath; report our decision to bail out to server
if blocksize option doesn't look good (i... | | |
Denis Vlasenko | a035e9f1a90 | cryptpw: forgot svn add... how typical of me :( | | |
Denis Vlasenko | a04561f5f7b | tftp: code diet, and I think retransmits were broken.
function old n... | | |
Denis Vlasenko | 7e84e539de5 | cryptpw: new applet (a bit less than 3k added)
(by Thomas Lundquist <lists@zelow.no>) | | |
Denis Vlasenko | 92c0b8222eb | tail: fix SEGV on "tail -N"
config system: clarify PREFER_APPLETS/SH_STANDALONE effects in help text | | |
Denis Vlasenko | 0cacc80952a | kill: improve comment | | |
Denis Vlasenko | 02f47e9f814 | kill: fix recent breakage of vda, also make code smaller by 21 bytes. | | |
Denis Vlasenko | 21f0d4c55ec | hush: fix double-free in "echo TEST &" | | |
Denis Vlasenko | b952835efe8 | svlogd: fix 'SEGV on uninitialized data' and make it honor TERM | | |
Denis Vlasenko | dd4cb2b31ea | hush: stop generating extra empty pipes in parse stage. | | |
Denis Vlasenko | a6c467f6d13 | hush: preparatory patch for removing extra empty pipes generation
in parse stage. No real code change here. | | |
Denis Vlasenko | 734e5ebc93a | fix -Werror compile | | |
Denis Vlasenko | ac0e5ab96ac | hush: fix "while true; do true; done" + ctrl-z | | |
Denis Vlasenko | 3349fc4da94 | applets: fix compile-time warning | | |
Denis Vlasenko | 400c5b6fc6a | hush: add parse tree debug print | | |
Denis Vlasenko | 6e6d331d97a | udhcpc: stop deleting our own pidfile if we daemonize.
udhcp[cd]: stop using atexit magic fir pidfile removal. | | |
Denis Vlasenko | f71d916b600 | awk: guard against empty environment | | |
Denis Vlasenko | e725bfe6e01 | hush: fix "true | exit 3; echo $?" bug | | |
Denis Vlasenko | f2fffd0014e | hush: remove env builtin (it is buggy). Add comments | | |
Denis Vlasenko | 3bc18253b08 | fix suid config handling | | |
Denis Vlasenko | f92df58d3d9 | ifupdown: small optimization (avoid doing useless work if we are
not going to update state file) | | |
Mike Frysinger | 3c82e48923b | allow people to stick custom things into Makefile.local so they dont need to update busybox files while integrating i... | | |
Denis Vlasenko | eda43d7f454 | ifupdown: mke it possible to use DHCP clients different from udhcp. | | |
Denis Vlasenko | d01ff13454e | hush: simplify debugging prints a little bit | | |
Denis Vlasenko | dd999a2241a | klogd: remove dependency on syslogd | | |
Denis Vlasenko | bd100b74783 | ifupdown: reread state file before rewriting it.
Fixes "ifup started another ifup" state corruption bug.
Patch by Nat... | | |
Denis Vlasenko | 4ac530c0ef4 | hush: add debugging for tracing execution,
add FIXME for 'true | exit 3; echo $?' case | | |
Denis Vlasenko | ef36ead3706 | hush: fix incorrect exitcodes without job control | | |
Denis Vlasenko | dcf4de20a19 | test: code size saving, no logic changes
ps: fix warning, make a bit smaller
kill -l: make smaller & know much more s... | | |
Denis Vlasenko | f20de5bb42f | ash,kill: use common code for kill applet/builtin
# make bloatcheck
function ... | | |
Denis Vlasenko | d4728145e37 | run_parts: do not check path portion of a name for "bad chars".
Needed for ifupdown. Patch by "Gabriel L. Somlo" <som... | | |
Denis Vlasenko | 08c8c1d3b33 | ash: fix infinite loop on exit if tty is not there anymore | | |
Denis Vlasenko | e3f2f898913 | hush: make job control and interactiveness configurable, part 2 | | |
Denis Vlasenko | b81b3df1fa3 | hush: make job control and interactiveness configurable, part 1 | | |
Denis Vlasenko | 0937be5fa64 | hush: make hush properly detect EOF on stdin (even interactive one -
think about pty being destroyed) and exit. | | |
Denis Vlasenko | b5eaabb3222 | hush: add Ctrl-C handling to nofork case | | |
Denis Vlasenko | 3ac0e00553a | hush: better signal handling across ctrl-z | | |
Denis Vlasenko | 18e19f2b0d3 | hush: fix nofork + ctrl-Z clobbering of globals | | |
Denis Vlasenko | a6a1785a30d | hush: add ctrl-Z handling for nofork'ed case | | |
Denis Vlasenko | 706fdc98c3d | find_root_device: use lstat - don't follow links | | |
Denis Vlasenko | 1359da6ac7f | hush: make Ctrl-Z work (at least sometimes) | | |
Denis Vlasenko | 762d35c75fe | hust: add a comment | | |
Denis Vlasenko | 52881e9f23d | hush: fix more backgrounding bugs. Plenty of them remains still. | | |
Denis Vlasenko | 2f1bb36a557 | hush: explain why "pipe; exit $?" doesn't show correct exitcode | | |
Denis Vlasenko | 87cb2db7039 | hush: do not print message if killed by signal;
move some functions up before main() | | |
Denis Vlasenko | 54e7ffb3a40 | hush: begin fixing non-functional job control | | |
Denis Vlasenko | 5f786c24e4a | hush: small code shrink; style fixes | | |
Denis Vlasenko | f6250a3bee8 | dd: NOEXEC fix
dd: correct wrongly capitalized constant | | |
Denis Vlasenko | d1801a44301 | dd: fix skip= parse error (spotted by Dirk Clemens <develop@cle-mens.de>) | | |
Denis Vlasenko | 9ace6134069 | stty: fix option parsing bug (spotted by Sascha Hauer <s.hauer@pengutronix.de>) | | |
Denis Vlasenko | 05a6d9cbb20 | doc: add README on shell job control | | |
Denis Vlasenko | 8581863a1b5 | procps: remove all global variables
text data bss dec hex filename
1462 14 24 1500 ... | | |
Denis Vlasenko | 516a0ca2dc9 | ps: add -o tty and -o rss support
1373 14 24 1411 583 busybox.t1/procps/ps.o
1462 14 ... | | |
Denis Vlasenko | c34d35557b0 | loop device code: readability improvement | | |
Denis Vlasenko | 3ace9fa6d8f | switch_root: error_msg -> perror_msg, reduce by 22 bytes while at it. | | |
Denis Vlasenko | 088b959d00a | "Unify base64 handling" is done, remove TODO | | |
Denis Vlasenko | 2ace1e3f07c | make "busybox" w/o args work again, and save 10 bytes in the process. | | |
Denis Vlasenko | 55b2de71d73 | hush: remove stray semicolon (should change nothing) | | |
Denis Vlasenko | 517d1aac7f4 | ether-wake: save a few more bytes of code | | |
Denis Vlasenko | 198714c0dd2 | ether-wake: close bug 1317. Reorder fuctions to avoid
forward refs while at it | | |
Denis Vlasenko | 7d4c44e1b10 | shells: remove few statics and duplicated code
(much more of the same remains, alas)
function ... | | |
Denis Vlasenko | ac678ec2f12 | style fixes, no code changes | | |
Denis Vlasenko | 17e3c34aa7a | applet.c: ruid is needed only if FEATURE_SUID=y | | |
Bernhard Reutner-Fischer | bc9d7d788b3 | - we unconditionally need ruid. Fixes build error in line 334 | | |
Bernhard Reutner-Fischer | ab51bf4e28c | - fix compilation when ENABLE_FEATURE_IP_RULE was off | | |
Bernhard Reutner-Fischer | e468ef27b78 | - fix compilation if ENABLE_FEATURE_DD_IBS_OBS is off | | |
Denis Vlasenko | 0922192740f | lineedit: state->hist_file doesn't exist if !FEATURE_EDITING_SAVEHISTORY,
#ifdef it out | | |
Denis Vlasenko | 84f75b0b94e | doc: fix code example which may provoke warning | | |
Denis Vlasenko | 8acf521432b | e2fsprogs: stop using statics in chattr. Minor code shrinkage (-130 bytes) | | |
Denis Vlasenko | be1a9d42376 | deluser: add optional support for removing users from groups
(by Tito <farmatito@tiscali.it>) | | |
Denis Vlasenko | 91de7c0328d | update style-guide.txt | | |
Denis Vlasenko | 58394b1e299 | xargs: simplify word list management | | |
Denis Vlasenko | e4712758138 | msh: style fixes
shell/README - a place to record things about busybox shells | | |
Denis Vlasenko | 5f9468e9964 | lineedit: nuke two unused variables and code which sets them
applets: do not even try to read config if run by real r... | | |
Denis Vlasenko | 8a28e620ce6 | lash: recognize and use NOFORK applets
lash,hush: fix kill buglet (didn't properly recognize ESRCH) | | |
Denis Vlasenko | bf3561fd15c | lineedit: do not try to open NULL history file | | |
Denis Vlasenko | f5294e1f4c5 | hush: use NOFORK applets as appropriate. Net reduction of code size. | | |
Denis Vlasenko | 16abcd90aef | teach find_root_device to deal with /dev/ subdirs
(by "Kirill K. Smirnov" <lich@math.spbu.ru>) | | |
Denis Vlasenko | 334fa9bcb50 | dpkg: use nitfields which are a bit closer to typical ushort.
Code size -800. | | |
Denis Vlasenko | 87468857f68 | style fixes | | |
Denis Vlasenko | f7fcca4af75 | sourse_route_list -> source_route_list | | |
Denis Vlasenko | 1d6a4aec2cb | make xsocket die with address family printed (if VERBOSE_RESOLUTION_ERRORS=y) | | |
Denis Vlasenko | fbf6dea5a28 | hush: more style fixes. | | |
Denis Vlasenko | f03dbeda907 | hush: comment out and replace bug in set_local_var:
- if (value == 0 && ++value == 0) {
+ /*if (value == ... | | |
Denis Vlasenko | b636d8c18c8 | shell/: add SUSv3 doc for fast & easy reference | | |
Denis Vlasenko | beaca811e4e | fix typo in comment | | |
Denis Vlasenko | 62f0479cf10 | find: add support for -delete, -path (by Natanael Copa) | | |
Denis Vlasenko | 945bd3dee89 | sed: fix escaped newlines in -f; fix multiple -f and -e
(broke when getopt32 was fixed to not reverse the list) | | |
Denis Vlasenko | 3211adc184c | login: fixing my brainfart: xspawn(t_argv) <- was using argv! | | |
Mike Frysinger | 3a62a737f7d | make sure we free the grep data as well | | |
Denis Vlasenko | b69f35effee | lash: "forking" applets are actually can be treated the same way as "non-forked".
Also save a bit of space on trailin... | | |
Denis Vlasenko | 7cced6e5740 | fix realloc-of-non-malloced pointer, and reduce size while at it | | |
Denis Vlasenko | 0de3c55b428 | login: remove setpgrp call (makes it work from shell prompt again).
login: sanitize stdio descriptors (we are suid, n... | | |
Denis Vlasenko | 831a20f5124 | pass a copy of argv[i] to NOFORK applets (they may permute it etc).
set/save/restore more shared global variables wha... | | |
Bernhard Reutner-Fischer | c98c31783c0 | - shrink iproute a bit (-200 bytes). Untested | | |
Bernhard Reutner-Fischer | b290889f026 | - add xsendto and use where appropriate; shrink iplink; sanitize libiproute a bit.
-916 byte | | |
Denis Vlasenko | 51742f4bb0c | style fixes. No code changes | | |
Denis Vlasenko | 50f7f446eca | bb_full_fd_action: remove potential xmalloc from NOFORK path
cat: stop using stdio.h opens
libbb: introduce & use ope... | | |
Denis Vlasenko | d7c8196c1bb | ash: fix kill -l (by Mats Erik Andersson <mats.andersson64@comhem.se>) | | |
Denis Vlasenko | 8fd371276f2 | fix typo in doc | | |
Denis Vlasenko | 6398cf477d9 | style fixes, no code changes. | | |
Denis Vlasenko | e4f2d064b0f | rename: run_applet_by_name -> run_applet_and_exit | | |
Bernhard Reutner-Fischer | 12c96a64a4b | - set the scope properly. Thanks to Jean Wolter, who wrote:
busybox ip and the original ip utility behave differently... | | |
Denis Vlasenko | 0d058361e72 | Add NOFORK/NOEXEC documentation. | | |
Denis Vlasenko | 03fc408de6c | fix typo in comment | | |
Denis Vlasenko | d571c08c257 | fix misplaced #if | | |
Denis Vlasenko | 473dae080a8 | add more convenient defines for [NO]MMU:
"#ifndef BB_NOMMU" is a double negative | | |
Denis Vlasenko | f1a7141cfca | random NOMMU fixes. compressed --help really does work for NOMMU! /me happy | | |
Denis Vlasenko | 80d14beae9e | Rename two config options:
FEATURE_SH_STANDALONE_SHELL => FEATURE_SH_STANDALONE
FEATURE_EXEC_PREFER_APPLETS => FEATUR... | | |
Denis Vlasenko | 89054964443 | xargs: fix my brain fart (resulted in memory leak) | | |
Denis Vlasenko | c6758a07c68 | make compressed help code NOMMU- and NOFORK-friendly -
no forking anymore, bunzip2 unpack routine now does all it in ... | | |
Denis Vlasenko | 335b63d8d18 | make a few struct bb_applet members conditional
rename sllep_and_die -> xfunc_die
make fflush_stdout_and_exit NOFORK-... | | |
Bernhard Reutner-Fischer | 07c394e69b0 | - mv ip*_main into ip.c; use a dispatcher to save on needless duplication.
Saves a minor 12b. | | |
Bernhard Reutner-Fischer | 99003b8a87a | - use enum for the OPs as suggested by vda. No obj-code changes. | | |
Bernhard Reutner-Fischer | f73cac8d3d9 | - forgot this hunk that corrects the usage text of ip | | |
Bernhard Reutner-Fischer | e87d7955f81 | - rewrite the ip applet to be less bloaty
- mark libiproute's matches() as deprecated. Convert to index_in_(sub)str_a... | | |
Bernhard Reutner-Fischer | 51f7ab6162a | - add ATTRIBUTE_DEPRECATED for functions that should be removed in the future.
This is ment to provide means to poi... | | |
Denis Vlasenko | 246b5c3916f | one-liner: fix indentation | | |
Denis Vlasenko | b38cf3ff8a3 | bunzip2: big style cleanup. No code changes apart from one s/write/safe_write/
(verified with objdump). | | |
Denis Vlasenko | a9d7d24e1f5 | echo: fix regression ("echo" with no arguments didn't print newline.
echo: use fputs if no options are given. Code gr... | | |
Denis Vlasenko | 99912ca733d | audit small applets and mark some of them as NOFORK.
Put big scary warnings in relevant places. | | |
Denis Vlasenko | ff131b980d5 | style fixes. No code changes. | | |
Bernhard Reutner-Fischer | 163516da3ae | - very minor shrinkage (-3b) | | |
Bernhard Reutner-Fischer | de17ece1dbb | - use skip_non_whitespace() where appropriate | | |
Bernhard Reutner-Fischer | 8b1fab2879d | - add prototype for str_tolower() | | |
Bernhard Reutner-Fischer | 7e8a53a3357 | - add libbb function str_tolower to convert a string to lowercase.
- shrink wget a bit | | |
Denis Vlasenko | 3f3aa2a57dc | make xfunctions optionally longjump instead of exit.
use it for making NOFORK more practical.
touch: make it a NOFORK... | | |
Denis Vlasenko | cd7001f7055 | factor out NOFORK/NOEXEC code from find. Use it for xargs too. | | |
Denis Vlasenko | 1b4b2cb20e5 | xargs: shrink code, ~80 bytes
applets.h: +#undef APPLET_NOEXEC | | |
Denis Vlasenko | 53d445aa757 | wait4pid: if passed with pid < 0, do not set errno - it is already set by exec! | | |
Denis Vlasenko | 7e754f12d30 | Implement first instance of NOFORK applet - echo
find: use NOFORK/NOEXEC; small -exec buglet also eliminated
vfork_da... | | |
Denis Vlasenko | 2dfdd44d9d6 | busybox: fix "<applet>: applet not found" message | | |
Denis Vlasenko | c44ab01b75a | Improve STANDALONE_SHELL. "safe" applets are renamed NOEXEC applets
and now this fact is recorded in applets.h, not a... | | |
Denis Vlasenko | 95cb3263ae8 | msh: smallish code shrinkage; cosmetics | | |
Denis Vlasenko | 32b633aa3f7 | merge busybox.c into applets.c | | |
Denis Vlasenko | 786834bcee1 | applets.h: de-obfuscate | | |
Denis Vlasenko | 240a1cfbbe6 | add some missed statics on constant objects.
fix few #ifndef ENABLE_xxx
# size busybox_old busybox_unstripped
tex... | | |
Denis Vlasenko | 5694d5f8d22 | adding small script, mostly for documentational purposes | | |
Denis Vlasenko | 8d9f495d686 | getopt32: fix llist_t options ordering. llist_rev is not unused.
function ... | | |
Denis Vlasenko | b04b4357ff5 | find: fix -prune more. Add big comment about it. | | |
Denis Vlasenko | bbd695d8010 | find: fix handling of -prune
recursive_actions: uppercase flag constants | | |
Denis Vlasenko | ca3484103e6 | busybox.net: micro fix | | |
Denis Vlasenko | 1ae63fc1bcc | busybox.net: update "screenshot" | | |
Denis Vlasenko | 9c146a91d3c | getopt: use getopt32 for option parsing - inspired by patch by
Mats Erik Andersson <mats.andersson64@comhem.... | | |
Denis Vlasenko | fdf63a30fe4 | docs: "how to add a patch" | | |
Denis Vlasenko | 540a2a1f3b0 | libiproute: audit callgraph, shortcut error paths into die() functions.
Kill a few statics, made other globals smalle... | | |
Denis Vlasenko | fbd2918f5c9 | udhcp: MAC_BCAST_ADDR and blank_chaddr are in fact constant, move to rodata.
a few global variables reduced to smalli... | | |
Denis Vlasenko | bb5b01c7c71 | comm: eliminate statics | | |
Denis Vlasenko | 04c99ebb4f5 | random small shrinkage and elimination of statics | | |
Denis Vlasenko | 19507f08695 | nc: code shrinkage, bugfixes. -50 bytes code size | | |
Denis Vlasenko | 5a30d59c3d2 | svn add match_fstype.c :( | | |
Denis Vlasenko | bf295dd5b67 | [u]mount: extend -t option (Roy Marples <uberlord@gentoo.org>) | | |
Denis Vlasenko | df5bbb938ae | diff: fix segfault on empty dirs (Peter Korsgaard <peter.korsgaard@barco.com>) | | |
Denis Vlasenko | 1bb552b1d9d | libbb: add xunlink()
patch: do not try to delete same file twice | | |
Mike Frysinger | 9020d850bf2 | less intrusive export of FLTFLAGS | | |
Mike Frysinger | 568d8c9a5cb | set default FLTFLAGS for a fatty stack | | |
Next → |