b952835efe
svlogd: fix 'SEGV on uninitialized data' and make it honor TERM
Denis Vlasenko
2007-05-06 01:37:21 +00:00
dd4cb2b31e
hush: stop generating extra empty pipes in parse stage.
Denis Vlasenko
2007-05-05 15:11:40 +00:00
a6c467f6d1
hush: preparatory patch for removing extra empty pipes generation in parse stage. No real code change here.
Denis Vlasenko
2007-05-05 15:10:52 +00:00
6e6d331d97
udhcpc: stop deleting our own pidfile if we daemonize. udhcp[cd]: stop using atexit magic fir pidfile removal.
Denis Vlasenko
2007-05-03 23:39:35 +00:00
f92df58d3d
ifupdown: small optimization (avoid doing useless work if we are not going to update state file)
Denis Vlasenko
2007-05-02 22:22:23 +00:00
3c82e48923
allow people to stick custom things into Makefile.local so they dont need to update busybox files while integrating into other build systems (like uClinux-dist)
Mike Frysinger
2007-05-02 22:07:03 +00:00
eda43d7f45
ifupdown: mke it possible to use DHCP clients different from udhcp.
Denis Vlasenko
2007-05-02 22:04:38 +00:00
d01ff13454
hush: simplify debugging prints a little bit
Denis Vlasenko
2007-05-02 21:40:23 +00:00
bd100b7478
ifupdown: reread state file before rewriting it. Fixes "ifup started another ifup" state corruption bug. Patch by Natanael Copa <natanael.copa@gmail.com>.
Denis Vlasenko
2007-05-02 21:38:44 +00:00
4ac530c0ef
hush: add debugging for tracing execution, add FIXME for 'true | exit 3; echo $?' case
Denis Vlasenko
2007-05-02 15:35:45 +00:00
ef36ead370
hush: fix incorrect exitcodes without job control
Denis Vlasenko
2007-05-02 15:34:47 +00:00
dcf4de20a1
test: code size saving, no logic changes ps: fix warning, make a bit smaller kill -l: make smaller & know much more signals
Denis Vlasenko
2007-05-01 20:07:29 +00:00
f20de5bb42
ash,kill: use common code for kill applet/builtin
Denis Vlasenko
2007-04-29 23:42:54 +00:00
d4728145e3
run_parts: do not check path portion of a name for "bad chars". Needed for ifupdown. Patch by "Gabriel L. Somlo" <somlo@cmu.edu>
Denis Vlasenko
2007-04-29 23:38:12 +00:00
08c8c1d3b3
ash: fix infinite loop on exit if tty is not there anymore
Denis Vlasenko
2007-04-28 22:39:02 +00:00
e3f2f89891
hush: make job control and interactiveness configurable, part 2
Denis Vlasenko
2007-04-28 16:48:27 +00:00
b81b3df1fa
hush: make job control and interactiveness configurable, part 1
Denis Vlasenko
2007-04-28 16:48:04 +00:00
0937be5fa6
hush: make hush properly detect EOF on stdin (even interactive one - think about pty being destroyed) and exit.
Denis Vlasenko
2007-04-28 16:47:08 +00:00
b5eaabb322
hush: add Ctrl-C handling to nofork case
Denis Vlasenko
2007-04-28 16:45:59 +00:00
3ac0e00553
hush: better signal handling across ctrl-z
Denis Vlasenko
2007-04-28 16:45:22 +00:00
58394b1e29
xargs: simplify word list management
Denis Vlasenko
2007-04-15 08:38:50 +00:00
e471275813
msh: style fixes shell/README - a place to record things about busybox shells
Denis Vlasenko
2007-04-14 15:08:41 +00:00
5f9468e996
lineedit: nuke two unused variables and code which sets them applets: do not even try to read config if run by real root msh: use named constants (O_RDONLY etc) in open() instead of magic numbers, other minor code size reduction.
Denis Vlasenko
2007-04-14 13:22:09 +00:00
8a28e620ce
lash: recognize and use NOFORK applets lash,hush: fix kill buglet (didn't properly recognize ESRCH)
Denis Vlasenko
2007-04-14 11:16:29 +00:00
bf3561fd15
lineedit: do not try to open NULL history file
Denis Vlasenko
2007-04-14 10:10:40 +00:00
f5294e1f4c
hush: use NOFORK applets as appropriate. Net reduction of code size.
Denis Vlasenko
2007-04-14 10:09:57 +00:00
16abcd90ae
teach find_root_device to deal with /dev/ subdirs (by "Kirill K. Smirnov" <lich@math.spbu.ru>)
Denis Vlasenko
2007-04-13 23:59:52 +00:00
334fa9bcb5
dpkg: use nitfields which are a bit closer to typical ushort. Code size -800.
Denis Vlasenko
2007-04-13 23:22:58 +00:00
1d6a4aec2c
make xsocket die with address family printed (if VERBOSE_RESOLUTION_ERRORS=y)
Denis Vlasenko
2007-04-13 21:26:20 +00:00
fbf6dea5a2
hush: more style fixes.
Denis Vlasenko
2007-04-13 19:56:56 +00:00
f03dbeda90
hush: comment out and replace bug in set_local_var: - if (value == 0 && ++value == 0) { + /*if (value == 0 && ++value == 0) ??? -vda */ + if (value == NULL || value[1] == '\0') {
Denis Vlasenko
2007-04-13 19:55:50 +00:00
b636d8c18c
shell/: add SUSv3 doc for fast & easy reference
Denis Vlasenko
2007-04-13 19:44:22 +00:00
beaca811e4
fix typo in comment
Denis Vlasenko
2007-04-13 16:32:26 +00:00
62f0479cf1
find: add support for -delete, -path (by Natanael Copa)
Denis Vlasenko
2007-04-13 10:00:12 +00:00
945bd3dee8
sed: fix escaped newlines in -f; fix multiple -f and -e (broke when getopt32 was fixed to not reverse the list)
Denis Vlasenko
2007-04-12 21:20:25 +00:00
3211adc184
login: fixing my brainfart: xspawn(t_argv) <- was using argv!
Denis Vlasenko
2007-04-12 20:33:01 +00:00
3a62a737f7
make sure we free the grep data as well
Mike Frysinger
2007-04-12 18:29:27 +00:00
b69f35effe
lash: "forking" applets are actually can be treated the same way as "non-forked". Also save a bit of space on trailing NULL array elements.
Denis Vlasenko
2007-04-12 17:10:45 +00:00
7cced6e574
fix realloc-of-non-malloced pointer, and reduce size while at it
Denis Vlasenko
2007-04-12 17:08:53 +00:00
0de3c55b42
login: remove setpgrp call (makes it work from shell prompt again). login: sanitize stdio descriptors (we are suid, need to be careful!) shrink login and set_environment by ~100 bytes.
Denis Vlasenko
2007-04-12 12:31:02 +00:00
831a20f512
pass a copy of argv[i] to NOFORK applets (they may permute it etc). set/save/restore more shared global variables whan call one applet from another
Denis Vlasenko
2007-04-12 12:27:32 +00:00
c98c31783c
- shrink iproute a bit (-200 bytes). Untested
Bernhard Reutner-Fischer
2007-04-12 11:36:56 +00:00
b290889f02
- add xsendto and use where appropriate; shrink iplink; sanitize libiproute a bit. -916 byte
Bernhard Reutner-Fischer
2007-04-12 11:34:39 +00:00
12c96a64a4
- set the scope properly. Thanks to Jean Wolter, who wrote: busybox ip and the original ip utility behave differently when setting the following route (verified with ip route show using the original ip utility):
Bernhard Reutner-Fischer
2007-04-11 16:23:57 +00:00