cd0df46d8c
remove bashisms from testsuite
Denis Vlasenko
2007-06-05 22:29:14 +00:00
5c51a7ca52
nc: make connecting to IPv4 from IPv6-enabled hosts easier (was requiring -s <local addr>)
Denis Vlasenko
2007-06-05 20:08:11 +00:00
6c501a71ae
- kiltedknight writes: Busybox incorrectly parses a line from the status file, claiming that a required package is not installed or tagged to be installed when it actually is. Closes#1221
Bernhard Reutner-Fischer
2007-06-05 17:28:56 +00:00
fa5f20755c
- fix typo in error message. Closes#1308
Bernhard Reutner-Fischer
2007-06-05 17:07:01 +00:00
746204b1b8
uudecode: fix to base64 decode by Jorgen Cederlof <jcz@google.com> improved help texts
Denis Vlasenko
2007-06-04 23:32:35 +00:00
3c8b5ba8e8
syslogd: move some vectors from data to text. Needs uclibc patch to have any effect (patch is submitted to uclibc ml).
Denis Vlasenko
2007-06-04 18:23:59 +00:00
ef4bb26f93
diff: stop using data/bss
Denis Vlasenko
2007-06-04 12:21:53 +00:00
821cc25f43
ping: stop using data/bss
Denis Vlasenko
2007-06-04 10:33:48 +00:00
74324c8666
Audit bb_common_bufsiz usage, add script which looks for misuse. tr: stop using globals needlessly. code: -103 bytes
Denis Vlasenko
2007-06-04 10:16:52 +00:00
4e5f82c76f
find_stray_communal_vars: script which finds communal variables resize: remove globals var mdev: remove globals var
Denis Vlasenko
2007-06-03 22:30:22 +00:00
dd6e1f0deb
start 1.7.x version
Denis Vlasenko
2007-06-02 12:54:09 +00:00
3f22b7f718
fdisk: make it work with big disks (read: typical today's disks) even if CONFIG_LFS is unset.
Denis Vlasenko
2007-06-02 12:46:55 +00:00
9a7d38fe24
delete tons of extra #includes
Denis Vlasenko
2007-05-31 22:42:12 +00:00
fad2b86c9e
use "glibc errno" trick not only for ash, but for entire busybox (add/remove: 1/1 grow/shrink: 37/37 up/down: 139/-228) Total: -89 bytes
Denis Vlasenko
2007-05-31 22:16:38 +00:00
c2f011aa03
more: stop using bss
Denis Vlasenko
2007-05-31 21:31:56 +00:00
a1d24a0b6e
less: stop using data/bss. Code got smaller too. # size busybox_old busybox_unstripped text data bss dec hex filename 700719 2896 17880 721495 b0257 busybox_old 700547 2832 17432 720811 affab busybox_unstripped # size */*/less.o text data bss dec hex filename 6861 50 344 7255 1c57 busybox.t0/miscutils/less.o 6657 0 0 6657 1a01 busybox.t1/miscutils/less.o
Denis Vlasenko
2007-05-31 15:55:03 +00:00
199c0d542b
nmeter: stop using data/bss; reduce amount of reads from /proc # size */*/nmeter.o text data bss dec hex filename 4366 80 16 4462 116e busybox.t0/miscutils/nmeter.o 4386 0 0 4386 1122 busybox.t2/miscutils/nmeter.o
Denis Vlasenko
2007-05-30 14:48:38 +00:00
0b3b41b62a
vi: move some data to malloc'ed space: ~500 less bss, code size is smaller too (subject to arch differenced I guess)
Denis Vlasenko
2007-05-30 02:01:40 +00:00
27f79ff03d
hush: trivial buglet found by randomconfig testing
Denis Vlasenko
2007-05-30 00:55:52 +00:00
201c72a8d6
hush: micro-optimization in new variable code
Denis Vlasenko
2007-05-25 10:00:36 +00:00
28c0f0f4fe
hush: we can't do without variable->value member, saving 25 bytes of code and some runtime memory. Rename few variables.
Denis Vlasenko
2007-05-25 02:46:01 +00:00
d76c049cc4
hush: rework variable storage and environment handling. More that -100 bytes of code + memory leak plugged. Added a testcase for it.
Denis Vlasenko
2007-05-25 02:16:25 +00:00
163a855731
hush: update README with yet another failure case
Denis Vlasenko
2007-05-24 13:52:46 +00:00
0fe67b16ce
udhcp: socketpair can fail if AF_UNIX is not available (e.g. if module is not loaded). Error out on that.
Denis Vlasenko
2007-05-24 12:19:56 +00:00
b055001b6a
hush: fix handling of unmatched ${name (without closing '}') - was eating all remaining input, potentially megabytes. nofork: save/restore die_jmp too nofork: use -2222 instead of -111 as "special" return valur for zero (-111 is used by some applets. -2222 won't fit in exitcode and thus safer)
Denis Vlasenko
2007-05-24 12:18:16 +00:00
90e485ce79
hush: make syntax error messages a bit more useful
Denis Vlasenko
2007-05-23 15:22:50 +00:00
1744cb1861
hush: prepare testsuite for new, fixed error message format
Denis Vlasenko
2007-05-23 15:16:41 +00:00
170435c575
hush: fix job control with eval /bin/external_prog hush: fix parsing of unterminated "str with no EOL hush: improved make_string() (smaller, faster, needs less RAM) hush: renamed several functions
Denis Vlasenko
2007-05-23 13:01:10 +00:00
1a7358612f
hush: fix a bit different instance of "No EOL" bug, add testsuite for that. Expand another testsuite.
Denis Vlasenko
2007-05-23 00:32:25 +00:00
94dace3016
fix execute bit on hush-misc/shift.tests
Denis Vlasenko
2007-05-23 00:26:32 +00:00
6963eb53a1
hdparm: make -T -t code smaller (-194 bytes), and output prettier
Denis Vlasenko
2007-05-22 21:46:11 +00:00
0681033918
hush: add 3 CONFIG_xxx, allowing for smaller and less capable hush. Minimal hush is ~9k now (lash is ~7k).
Denis Vlasenko
2007-05-21 23:30:54 +00:00
8805eeb44a
shells: update README and testsuite. environment memory leak needs to be fixed - and documented!
Denis Vlasenko
2007-05-21 10:19:48 +00:00
219e88d050
hush: using smallints where we can. save ~20 bytes in code and some data storage at runtime.
Denis Vlasenko
2007-05-21 10:18:23 +00:00
14b5dd9943
hush: make process substitution configurable; add a testcase
Denis Vlasenko
2007-05-20 21:51:38 +00:00
fe52a74ecf
busybox.net: announce 1.5.1 on the web site.
Denis Vlasenko
2007-05-20 17:12:43 +00:00
46846e25a4
ash: implement type -p, costs less than 10 bytes (patch by Mats Erik Andersson <mats.andersson64@comhem.se>)
Denis Vlasenko
2007-05-20 13:08:31 +00:00
38ec147a18
mount: fix mounting of symlinks (mount from util-linux allows that)
Denis Vlasenko
2007-05-20 12:32:41 +00:00
6d709972cd
cttyhack: new applet.
Denis Vlasenko
2007-05-18 09:45:36 +00:00
4500c58a07
make "static linking against glibc" an #error, not #warning
Denis Vlasenko
2007-05-18 07:37:06 +00:00
d9b5ab868c
awk: fix a trivial bug introduced by me. This is how it goes. I break stuff by doing useless 'cleanups', people fix the fallout. :(. Thanks rockeychu!
Denis Vlasenko
2007-05-18 07:30:43 +00:00
78e48b2c2c
we were basically ignoring CONFIG_USE_BB_PWD_GRP (assuming =y), fix this
Denis Vlasenko
2007-05-18 00:02:37 +00:00
ffba941d29
awk: make code a bit less obfuscated
Denis Vlasenko
2007-05-17 23:03:35 +00:00
5b34083004
several *.c files: move 'extern environ' up to the location of #includes
Denis Vlasenko
2007-05-17 23:02:14 +00:00
cd5c7866e3
vi: remove two globals awk: some 'lineno' vars were shorts, made them ints (code got smaller) awk: rename global t to global ttt. still an awful name, but at least you can grep for it now.
Denis Vlasenko
2007-05-17 16:37:22 +00:00
c8be5ee325
hush: do "struct globals" trick. hush.o data+bss = 0 bytes now. +60 bytes to image, but -8000 bytes in bss.
Denis Vlasenko
2007-05-17 15:38:46 +00:00
b6a741ffa7
hush: consolidated variable expansion for assignments and "normal" one. -435 bytes. Tested against testsuite.
Denis Vlasenko
2007-05-17 14:38:17 +00:00
96f67dc69d
more compile fixes from randomconfig run
Denis Vlasenko
2007-05-17 13:02:41 +00:00
d46e6d1a55
fix trivial compile errors found by randomconfig run
Denis Vlasenko
2007-05-17 12:58:30 +00:00
a35958d4ad
netstat: fix error in new -W option handling
Denis Vlasenko
2007-05-16 22:25:35 +00:00
c666f71e3b
hush: take care of several easy FIXMEs. -228 bytes.
Denis Vlasenko
2007-05-16 22:18:54 +00:00
1f4cf517f5
hush: fix expansion of quoted $VAR, $* and $@
Denis Vlasenko
2007-05-16 10:39:24 +00:00
8f6bdb42df
hush: fix incorrect processing of echo "'$var'". hush: rename map[] and MAP_xxx, making them easier to understand. hush: move testcase (which now passes) from hush-bugs to hush-parsing
Denis Vlasenko
2007-05-16 09:36:55 +00:00
418a7fb29b
netstat: introduce -W: wide, ipv6-friendly output netstat: shrink by ~500 bytes (patch by Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com>) netstat: fix for bogus state value for raw sockets
Denis Vlasenko
2007-05-15 23:57:46 +00:00
c2b3e370d6
- apply hunk that fixes an issue with (wrong?) dependencies. Initial notes were: There is something wrong in the new buildsys: If one selects ip and has e.g. rule or route unset, ip still wants to build those. This fails (correctly) since rtnl_rttable_n2a and rtnl_rtrealm_n2a aren't available if they were turned off. TODO: Talk to vda about this
Bernhard Reutner-Fischer
2007-05-15 09:33:32 +00:00
64332bf857
- busybox.c was removed a while ago
Bernhard Reutner-Fischer
2007-05-15 09:07:06 +00:00
d6050949b8
hush: move testsuite files from hush-bugs to hush-parsing (as these bugs are now fixed)
Denis Vlasenko
2007-05-14 22:09:52 +00:00
764d59d488
hush: more fixes to variable expansion, more testcases
Denis Vlasenko
2007-05-14 16:23:23 +00:00
03eb8bf6ce
hush: move towards more correct variable expansion hush: fix a few cases in FOR v IN ... construct unfortunately, code growth is big - ~600 bytes
Denis Vlasenko
2007-05-14 16:19:34 +00:00
602d13cba5
hush: fix '{ false; echo $?; }' bug. hush: expand testsuite. variable expansion is still very broken
Denis Vlasenko
2007-05-13 18:34:53 +00:00
119b995437
hush: reinstate hush_test, add testcases for process subst
Denis Vlasenko
2007-05-11 12:57:35 +00:00
3e9aaae5dc
hush: fix bug in interactive shell introduced yesterday hush: fix process subst (2 bugs) NB: will delete and re-add hush_test in order to change file modes
Denis Vlasenko
2007-05-11 12:56:43 +00:00
e0a336747c
hush: fix "unterminated last line loops forever" bug hush: add testsuite infrastructure
Denis Vlasenko
2007-05-10 23:06:55 +00:00
2b54aaa9bf
msh: fix obscure case with backticks and closed fd 1
Denis Vlasenko
2007-05-09 22:16:08 +00:00
389f9d52d5
awk: don't segfault on printf(%*s). Close 1337.
Denis Vlasenko
2007-05-09 21:57:23 +00:00
57bf668d11
cryptpw: size reduction function old new delta cryptpw_main 198 140 -58 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-58) Total: -58 bytes
Denis Vlasenko
2007-05-09 21:27:15 +00:00
68de720723
mount: fix incorrect usage of strtok (inadvertently used NULL sometimes). the change is "for(xxx)...." -> "if(var) for(xxx)...", but my gcc 4.1.2 adds _158 bytes_!! WTF?? 8(
Denis Vlasenko
2007-05-09 20:38:04 +00:00
8465a99ce7
less: fix case when regex search finds nothing
Denis Vlasenko
2007-05-09 18:32:54 +00:00
bf678d5423
tftp: explain "block# 0" codepath; report our decision to bail out to server if blocksize option doesn't look good (it was a FIXME. +33 bytes code); make code more readable.
Denis Vlasenko
2007-05-09 12:50:08 +00:00
a035e9f1a9
cryptpw: forgot svn add... how typical of me :(
Denis Vlasenko
2007-05-08 23:23:35 +00:00
a04561f5f7
tftp: code diet, and I think retransmits were broken.
Denis Vlasenko
2007-05-08 23:12:21 +00:00
7e84e539de
cryptpw: new applet (a bit less than 3k added) (by Thomas Lundquist <lists@zelow.no>)
Denis Vlasenko
2007-05-08 17:52:17 +00:00
92c0b8222e
tail: fix SEGV on "tail -N" config system: clarify PREFER_APPLETS/SH_STANDALONE effects in help text
Denis Vlasenko
2007-05-08 17:27:17 +00:00