Denis Vlasenko
|
2b54aaa9bf
|
msh: fix obscure case with backticks and closed fd 1
|
2007-05-09 22:16:08 +00:00 |
|
Denis Vlasenko
|
389f9d52d5
|
awk: don't segfault on printf(%*s). Close 1337.
|
2007-05-09 21:57:23 +00:00 |
|
Denis Vlasenko
|
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
|
2007-05-09 21:27:15 +00:00 |
|
Denis Vlasenko
|
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(
|
2007-05-09 20:38:04 +00:00 |
|
Denis Vlasenko
|
8465a99ce7
|
less: fix case when regex search finds nothing
|
2007-05-09 18:32:54 +00:00 |
|
Denis Vlasenko
|
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.
|
2007-05-09 12:50:08 +00:00 |
|
Denis Vlasenko
|
a035e9f1a9
|
cryptpw: forgot svn add... how typical of me :(
|
2007-05-08 23:23:35 +00:00 |
|
Denis Vlasenko
|
a04561f5f7
|
tftp: code diet, and I think retransmits were broken.
function old new delta
static.errcode_str - 32 +32
tftp_main 359 345 -14
tftp_bb_error_msg 32 - -32
.rodata 130931 130899 -32
tftp 1720 1558 -162
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 0/3 up/down: 32/-240) Total: -208 bytes
|
2007-05-08 23:12:21 +00:00 |
|
Denis Vlasenko
|
7e84e539de
|
cryptpw: new applet (a bit less than 3k added)
(by Thomas Lundquist <lists@zelow.no>)
|
2007-05-08 17:52:17 +00:00 |
|
Denis Vlasenko
|
92c0b8222e
|
tail: fix SEGV on "tail -N"
config system: clarify PREFER_APPLETS/SH_STANDALONE effects in help text
|
2007-05-08 17:27:17 +00:00 |
|
Denis Vlasenko
|
0cacc80952
|
kill: improve comment
|
2007-05-06 22:51:52 +00:00 |
|
Denis Vlasenko
|
02f47e9f81
|
kill: fix recent breakage of vda, also make code smaller by 21 bytes.
|
2007-05-06 22:48:55 +00:00 |
|
Denis Vlasenko
|
21f0d4c55e
|
hush: fix double-free in "echo TEST &"
|
2007-05-06 14:15:42 +00:00 |
|
Denis Vlasenko
|
b952835efe
|
svlogd: fix 'SEGV on uninitialized data' and make it honor TERM
|
2007-05-06 01:37:21 +00:00 |
|
Denis Vlasenko
|
dd4cb2b31e
|
hush: stop generating extra empty pipes in parse stage.
|
2007-05-05 15:11:40 +00:00 |
|
Denis Vlasenko
|
a6c467f6d1
|
hush: preparatory patch for removing extra empty pipes generation
in parse stage. No real code change here.
|
2007-05-05 15:10:52 +00:00 |
|
Denis Vlasenko
|
734e5ebc93
|
fix -Werror compile
|
2007-05-04 21:38:14 +00:00 |
|
Denis Vlasenko
|
ac0e5ab96a
|
hush: fix "while true; do true; done" + ctrl-z
|
2007-05-04 21:37:27 +00:00 |
|
Denis Vlasenko
|
3349fc4da9
|
applets: fix compile-time warning
|
2007-05-04 14:54:36 +00:00 |
|
Denis Vlasenko
|
400c5b6fc6
|
hush: add parse tree debug print
|
2007-05-04 13:07:27 +00:00 |
|
Denis Vlasenko
|
6e6d331d97
|
udhcpc: stop deleting our own pidfile if we daemonize.
udhcp[cd]: stop using atexit magic fir pidfile removal.
|
2007-05-03 23:39:35 +00:00 |
|
Denis Vlasenko
|
f71d916b60
|
awk: guard against empty environment
|
2007-05-03 22:57:56 +00:00 |
|
Denis Vlasenko
|
e725bfe6e0
|
hush: fix "true | exit 3; echo $?" bug
|
2007-05-03 22:45:39 +00:00 |
|
Denis Vlasenko
|
f2fffd0014
|
hush: remove env builtin (it is buggy). Add comments
|
2007-05-02 23:39:04 +00:00 |
|
Denis Vlasenko
|
3bc18253b0
|
fix suid config handling
|
2007-05-02 23:01:32 +00:00 |
|
Denis Vlasenko
|
f92df58d3d
|
ifupdown: small optimization (avoid doing useless work if we are
not going to update state file)
|
2007-05-02 22:22:23 +00:00 |
|
Mike Frysinger
|
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)
|
2007-05-02 22:07:03 +00:00 |
|
Denis Vlasenko
|
eda43d7f45
|
ifupdown: mke it possible to use DHCP clients different from udhcp.
|
2007-05-02 22:04:38 +00:00 |
|
Denis Vlasenko
|
d01ff13454
|
hush: simplify debugging prints a little bit
|
2007-05-02 21:40:23 +00:00 |
|
Denis Vlasenko
|
dd999a2241
|
klogd: remove dependency on syslogd
|
2007-05-02 21:39:29 +00:00 |
|
Denis Vlasenko
|
bd100b7478
|
ifupdown: reread state file before rewriting it.
Fixes "ifup started another ifup" state corruption bug.
Patch by Natanael Copa <natanael.copa@gmail.com>.
|
2007-05-02 21:38:44 +00:00 |
|
Denis Vlasenko
|
4ac530c0ef
|
hush: add debugging for tracing execution,
add FIXME for 'true | exit 3; echo $?' case
|
2007-05-02 15:35:45 +00:00 |
|
Denis Vlasenko
|
ef36ead370
|
hush: fix incorrect exitcodes without job control
|
2007-05-02 15:34:47 +00:00 |
|
Denis Vlasenko
|
dcf4de20a1
|
test: code size saving, no logic changes
ps: fix warning, make a bit smaller
kill -l: make smaller & know much more signals
function old new delta
get_signum 121 153 +32
kill_main 826 843 +17
get_signame 44 36 -8
signals 252 224 -28
.rodata 131955 131923 -32
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/3 up/down: 49/-68) Total: -19 bytes
|
2007-05-01 20:07:29 +00:00 |
|
Denis Vlasenko
|
f20de5bb42
|
ash,kill: use common code for kill applet/builtin
# make bloatcheck
function old new delta
evaltreenr 644 654 +10
evaltree 644 654 +10
parse_conf 1440 1444 +4
dpkg_deb_main 426 429 +3
ed_main 3319 3321 +2
passwd_main 2093 2091 -2
kill_main 830 826 -4
singlemount 4609 4601 -8
find_command 962 954 -8
get_lcm 123 105 -18
.rodata 132243 132147 -96
killcmd 449 120 -329
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 5/7 up/down: 29/-465) Total: -436 bytes
# size busybox_old busybox_unstripped
text data bss dec hex filename
723901 2940 27504 754345 b82a9 busybox_old
723457 2940 27504 753901 b80ed busybox_unstripped
|
2007-04-29 23:42:54 +00:00 |
|
Denis Vlasenko
|
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>
|
2007-04-29 23:38:12 +00:00 |
|
Denis Vlasenko
|
08c8c1d3b3
|
ash: fix infinite loop on exit if tty is not there anymore
|
2007-04-28 22:39:02 +00:00 |
|
Denis Vlasenko
|
e3f2f89891
|
hush: make job control and interactiveness configurable, part 2
|
2007-04-28 16:48:27 +00:00 |
|
Denis Vlasenko
|
b81b3df1fa
|
hush: make job control and interactiveness configurable, part 1
|
2007-04-28 16:48:04 +00:00 |
|
Denis Vlasenko
|
0937be5fa6
|
hush: make hush properly detect EOF on stdin (even interactive one -
think about pty being destroyed) and exit.
|
2007-04-28 16:47:08 +00:00 |
|
Denis Vlasenko
|
b5eaabb322
|
hush: add Ctrl-C handling to nofork case
|
2007-04-28 16:45:59 +00:00 |
|
Denis Vlasenko
|
3ac0e00553
|
hush: better signal handling across ctrl-z
|
2007-04-28 16:45:22 +00:00 |
|
Denis Vlasenko
|
18e19f2b0d
|
hush: fix nofork + ctrl-Z clobbering of globals
|
2007-04-28 16:43:18 +00:00 |
|
Denis Vlasenko
|
a6a1785a30
|
hush: add ctrl-Z handling for nofork'ed case
|
2007-04-28 16:42:11 +00:00 |
|
Denis Vlasenko
|
706fdc98c3
|
find_root_device: use lstat - don't follow links
|
2007-04-21 23:28:03 +00:00 |
|
Denis Vlasenko
|
1359da6ac7
|
hush: make Ctrl-Z work (at least sometimes)
|
2007-04-21 23:27:30 +00:00 |
|
Denis Vlasenko
|
762d35c75f
|
hust: add a comment
|
2007-04-21 17:28:51 +00:00 |
|
Denis Vlasenko
|
52881e9f23
|
hush: fix more backgrounding bugs. Plenty of them remains still.
|
2007-04-21 13:42:52 +00:00 |
|
Denis Vlasenko
|
2f1bb36a55
|
hush: explain why "pipe; exit $?" doesn't show correct exitcode
|
2007-04-21 10:01:14 +00:00 |
|
Denis Vlasenko
|
87cb2db703
|
hush: do not print message if killed by signal;
move some functions up before main()
|
2007-04-21 10:00:01 +00:00 |
|