Denis Vlasenko
e417be6697
getopt32: do not return pointer to alloca() areas
2008-08-20 23:03:38 +00:00
Denis Vlasenko
b9c262b029
envdir: fix "envdir with no params" case
2008-08-20 22:19:27 +00:00
Denis Vlasenko
99b4083647
findfs: make it use setuid-ness of busybox binary
2008-08-20 08:50:02 +00:00
Denis Vlasenko
b9f5d59893
fsck: use getmntent_r instead of open-coded parsing. By Vladimir
...
function old new delta
create_fs_device 125 158 +33
parse_word 41 - -41
parse_escape 55 - -55
fsck_main 2246 1893 -353
------------------------------------------------------------------------------
(add/remove: 0/2 grow/shrink: 1/1 up/down: 33/-449) Total: -416 bytes
2008-08-20 02:38:48 +00:00
Denis Vlasenko
f31c3b677d
linedit: fix use-after-free
2008-08-20 00:46:32 +00:00
Denis Vlasenko
4301616b27
libbb: getopt32() should not ever touch argv[0] (even read)
2008-08-20 00:15:42 +00:00
Denis Vlasenko
1c45a505eb
libbb: fix mishandling of "all argv are opts" in getopt32()
...
function old new delta
top_main 1100 1095 -5
getopt32 1398 1361 -37
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-42) Total: -42 bytes
2008-08-20 00:12:22 +00:00
Denis Vlasenko
6c4eb44113
ifupdown: fixes for shutdown of DHCP-managed interfaces
...
from Wade Berrier <wberrier AT gmail.com>
2008-08-19 23:02:23 +00:00
Denis Vlasenko
625ed8e027
Updating defconfig, fixing a typo in Config.in
2008-08-19 22:26:05 +00:00
Bernhard Reutner-Fischer
c77e843c09
- add new applet rdev (Grant Erickson)
...
- fixes and shrink (me)
2008-08-19 11:28:52 +00:00
Denis Vlasenko
d7cc2e601d
showkey: new applet by Vladimir
2008-08-17 14:17:48 +00:00
Denis Vlasenko
c8d02aa959
setfont: new applet by Vladimir
2008-08-17 14:12:26 +00:00
Denis Vlasenko
eb084779d7
libbb: use ptsname_r, it's smaller
...
function old new delta
xgetpty 91 81 -10
ptsname 33 - -33
text data bss dec hex filename
793828 592 6692 801112 c3958 busybox_old
793796 592 6660 801048 c3918 busybox_unstripped
2008-08-17 12:47:19 +00:00
Denis Vlasenko
34c73c499b
ash: fix "(cat < file)" hang introduced by rev 22944.
2008-08-16 11:48:02 +00:00
Denis Vlasenko
8334db13c3
cut: fix buffer overflow (bug 4544).
2008-08-15 21:20:23 +00:00
Denis Vlasenko
69ed30928e
chpst: fix "envdir dir" case (bug 4574).
2008-08-15 21:03:17 +00:00
Denis Vlasenko
ec7e7aec8a
arp: without -H <type>, assume "ether". closes 4564
2008-08-15 20:14:23 +00:00
Denis Vlasenko
c80191c1d9
install: fix long option not taking params (bug 4584)
2008-08-15 19:56:24 +00:00
Denis Vlasenko
11152e30e3
mkdir: fix "uname 0222; mkdir foo/bar" case
...
(by Doug Graham <dgraham AT nortel.com>)
function old new delta
bb_make_directory 291 280 -11
2008-08-15 19:18:35 +00:00
Denis Vlasenko
cd785fb716
nmeter: fix read past the end if a buffer. Closes 4594
2008-08-14 21:57:43 +00:00
Denis Vlasenko
ee777c4e5f
ifupdown: fixes for custom MAC address, by Wade Berrier <wberrier AT gmail.com>
2008-08-12 01:35:34 +00:00
Denis Vlasenko
8d07560eef
sendmail: work around (bogus) gcc warning
2008-08-10 20:46:39 +00:00
Denis Vlasenko
63e49fa56f
fix byte-swapping of compressed help on big-endian machines
2008-08-09 20:31:57 +00:00
Denis Vlasenko
69f4f9a6f4
optimize config_read() (by Timo Teras <timo.teras AT iki.fi>)
...
function old new delta
bb_get_chunk_with_continuation - 176 +176
find_pair 169 187 +18
...
process_stdin 443 433 -10
config_read 549 456 -93
bb_get_chunk_from_file 139 7 -132
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 7/7 up/down: 215/-254) Total: -39 bytes
2008-08-09 17:16:40 +00:00
Denis Vlasenko
3fd15e197e
grep: option to use GNU regex matching instead of POSIX one.
...
This fixes problems with NULs in files being scanned, but
costs +800 bytes. The same can be done to sed (TODO).
2008-08-09 16:15:14 +00:00
Bernhard Reutner-Fischer
fb5902ca5c
- support relatime / norelatime
2008-08-06 18:14:38 +00:00
Bernhard Reutner-Fischer
1dbc643dd3
- fix typo
2008-08-06 17:39:30 +00:00
Denis Vlasenko
8e80411151
modprobe-small: fix infinite looping, by Timo Teras
2008-08-06 09:41:09 +00:00
Denis Vlasenko
728161b556
fix bug 4464 for real. I am dumb.
2008-08-06 08:44:09 +00:00
Denis Vlasenko
9ddc0045ec
modprobe: semi-trivial code shrink
...
function old new delta
build_dep 870 859 -11
already_loaded 134 112 -22
modprobe_main 449 368 -81
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-114) Total: -114 bytes
2008-08-06 00:51:43 +00:00
Denis Vlasenko
2afd5ab62c
*: use get_console_fd() as appropriate, and make it fail on open error -
...
get_console_fd_or_die().
function old new delta
get_console_fd_or_die - 163 +163
loadkmap_main 211 201 -10
loadfont_main 440 430 -10
dumpkmap_main 218 208 -10
kbd_mode_main 158 146 -12
setkeycodes_main 156 143 -13
get_console_fd 163 - -163
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 0/5 up/down: 163/-218) Total: -55 bytes
2008-08-05 23:32:27 +00:00
Denis Vlasenko
e0143a1aad
kbd_mode: remove erroneous & from &var. By Vladimir.
2008-08-05 23:01:01 +00:00
Denis Vlasenko
db29f5e73e
libbb: fix thinko in latest xrealloc_vector change
2008-08-05 21:12:00 +00:00
Bernhard Reutner-Fischer
e6ce824edd
- reinstate commented out _FORTIFY_SOURCE that was somehow dropped by Denys?
2008-08-05 19:06:35 +00:00
Denis Vlasenko
ec73d30322
randomconfig fixes
2008-08-05 17:43:29 +00:00
Denis Vlasenko
0e7f28d674
man: teach it to use .lzma if requested by .config
...
man: fix a case when a full pathname to manpage is given
2008-08-05 15:28:05 +00:00
Denis Vlasenko
e2a09de415
man: yet another fixlet to "manpage link" code
2008-08-05 14:15:19 +00:00
Denis Vlasenko
22b0bd85fd
man: fixlet for man links
2008-08-05 13:45:22 +00:00
Denis Vlasenko
540baf646a
man: add handling of "man links", by Ivana Varekova <varekova AT redhat.com>
...
function old new delta
run_pipe 102 354 +252
show_manpage - 126 +126
man_main 705 615 -90
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/1 up/down: 378/-90) Total: 288 bytes
2008-08-05 13:16:18 +00:00
Denis Vlasenko
e9ad84dfd4
*: refactor handling of archived files. "tar f file.tar.lzma" now works too.
...
function old new delta
unpack_Z_stream - 1229 +1229
open_zipped - 176 +176
unpack_bz2_stream_prime - 60 +60
tar_main 642 677 +35
find_main 406 418 +12
sv_main 1222 1233 +11
decode_format_string 829 837 +8
cmp_main 641 649 +8
popstring 134 140 +6
filter_accept_list_reassign 120 125 +5
parse_and_put_prompt 800 804 +4
passwd_main 1053 1049 -4
make_new_name_gunzip 119 114 -5
rpm_main 1688 1670 -18
prepare 302 283 -19
xmalloc_open_zipped_read_close 135 61 -74
uncompress 1229 - -1229
------------------------------------------------------------------------------
(add/remove: 3/1 grow/shrink: 8/5 up/down: 1554/-1349) Total: 205 bytes
2008-08-05 13:10:34 +00:00
Bernhard Reutner-Fischer
9b44613202
- don't free user-supplied string (via -e)
...
- fix helptext
function old new delta
chpasswd_main 300 319 +19
packed_usage 24352 24344 -8
.rodata 122227 122195 -32
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/2 up/down: 19/-40) Total: -21 bytes
2008-08-05 09:56:56 +00:00
Denis Vlasenko
35d8c47987
whitespace fixes, no code changed
2008-08-05 07:59:25 +00:00
Denis Vlasenko
82ad032e26
xargs: fix -e default to match newer GNU xargs, add SUS mandated -E.
...
closes bug 4414
2008-08-04 21:30:55 +00:00
Denis Vlasenko
855ff6f503
modprobe: use buffering line reads (fgets) instead of reads().
...
libbb: remove reads()
function old new delta
include_conf_file_act 961 980 +19
localcmd 282 284 +2
already_loaded 155 151 -4
in_cksum 58 53 -5
modprobe_main 1630 1624 -6
reads 129 - -129
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 2/3 up/down: 21/-144) Total: -123 bytes
2008-08-04 21:16:46 +00:00
Denis Vlasenko
5db861a9eb
fix some testsuite false positives
2008-08-04 14:40:58 +00:00
Denis Vlasenko
27842288b3
libbb: make xrealloc_vector zero out the realloc'ed tail
...
function old new delta
xrealloc_vector_helper 51 76 +25
man_main 712 705 -7
act 250 234 -16
create_list 91 70 -21
getopt_main 695 664 -31
load_dep_bb 281 248 -33
fileAction 744 709 -35
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/6 up/down: 25/-143) Total: -118 bytes
2008-08-04 13:20:36 +00:00
Denis Vlasenko
2b576b8e76
hush: fix mishandling of a'b'c=fff as assignments. They are not.
...
function old new delta
parse_stream 1920 2004 +84
done_word 715 752 +37
parse_and_run_stream 328 333 +5
builtin_exec 25 29 +4
pseudo_exec_argv 138 139 +1
run_list 2006 1999 -7
is_assignment 215 134 -81
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 5/2 up/down: 131/-88) Total: 43 bytes
2008-08-04 00:46:07 +00:00
Denis Vlasenko
c8bec9a085
hush: remove a comment about already fixed bug
2008-08-03 22:27:50 +00:00
Denis Vlasenko
b2dc913527
makedevs: shrink by Vladimir
...
function old new delta
makedevs_main 1071 1049 -22
packed_usage 24744 24708 -36
2008-08-03 22:14:02 +00:00
Denis Vlasenko
7ce47e698e
ssd: fix -K/-S mixup in help text
2008-08-03 19:23:30 +00:00