Denis Vlasenko [Fri, 27 Jun 2008 00:29:34 +0000 (00:29 -0000)]
ash: improve comments
Denis Vlasenko [Fri, 27 Jun 2008 00:24:11 +0000 (00:24 -0000)]
ash: fix very weak $RANDOM generator; and move even more things
out of data/bss
text data bss dec hex filename
807935 611 6884 815430 c7146 busybox_old
808035 611 6868 815514 c719a busybox_unstripped
Denis Vlasenko [Fri, 27 Jun 2008 00:23:18 +0000 (00:23 -0000)]
ash: move stuff out of data/bss
text data bss dec hex filename
807939 611 6900 815450 c715a busybox_old
807935 611 6884 815430 c7146 busybox_unstripped
Denis Vlasenko [Thu, 26 Jun 2008 22:40:02 +0000 (22:40 -0000)]
print_flags: fix trivial thinko
vi: fix reversed checks for underflow
Denis Vlasenko [Thu, 26 Jun 2008 20:27:42 +0000 (20:27 -0000)]
bunzip2: fix an uncompression error. Add the example to testsuite.
Denis Vlasenko [Thu, 26 Jun 2008 14:32:57 +0000 (14:32 -0000)]
style fixes, no code changes
Denis Vlasenko [Thu, 26 Jun 2008 03:26:57 +0000 (03:26 -0000)]
open_transformer: fix bug of calling exit instead of _exit
open_transformer: don't leak compressed descriptor anymore
recursive_action: tiny shrink
Denis Vlasenko [Wed, 25 Jun 2008 20:54:45 +0000 (20:54 -0000)]
b[un]zip2, g[un]zip: unlink destination if -f is given. Closes 3854
Denis Vlasenko [Wed, 25 Jun 2008 15:58:00 +0000 (15:58 -0000)]
Announce 1.10.4 and 1.11.0
Denis Vlasenko [Wed, 25 Jun 2008 12:15:46 +0000 (12:15 -0000)]
busybox: do not print help to fd 2, print it to fd 1
otherwise this can break scripts
Denis Vlasenko [Wed, 25 Jun 2008 10:59:44 +0000 (10:59 -0000)]
update defconfig
Denis Vlasenko [Wed, 25 Jun 2008 10:18:16 +0000 (10:18 -0000)]
Start 1.12.x
Denis Vlasenko [Wed, 25 Jun 2008 10:16:17 +0000 (10:16 -0000)]
This is 1.11.0
Denis Vlasenko [Wed, 25 Jun 2008 10:00:58 +0000 (10:00 -0000)]
mkfs_minix, fsck_minix: code shrink
function old new delta
fsck_minix_main 3092 3094 +2
next 539 538 -1
get_free_block 165 164 -1
check_zone_nr2 121 120 -1
alarm_intr 94 93 -1
recursive_check2 587 583 -4
recursive_check 587 583 -4
mkfs_minix_main 2974 2968 -6
map_block 237 231 -6
map_block2 341 333 -8
bad_zone 64 56 -8
write_block 619 610 -9
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/11 up/down: 2/-49) Total: -47 bytes
Denis Vlasenko [Wed, 25 Jun 2008 09:53:17 +0000 (09:53 -0000)]
whitespace fixes. no code changes
Denis Vlasenko [Tue, 24 Jun 2008 21:39:32 +0000 (21:39 -0000)]
mount: fix mishandling of proto=tcp/udp
function old new delta
singlemount 4729 4695 -34
Denis Vlasenko [Tue, 24 Jun 2008 18:59:59 +0000 (18:59 -0000)]
mount: code shrink without logic changes. Added a comment
on possible mismatch with util-linux in -o remount handling.
function old new delta
mount_main 995 953 -42
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-42) Total: -42 bytes
Denis Vlasenko [Tue, 24 Jun 2008 16:08:22 +0000 (16:08 -0000)]
changes in comments only
Denis Vlasenko [Tue, 24 Jun 2008 14:10:41 +0000 (14:10 -0000)]
vi: fix yet another vda's thinko
Denis Vlasenko [Tue, 24 Jun 2008 00:50:07 +0000 (00:50 -0000)]
hush: ifdef out parts which are not needed
if neither loops nor ifs are supported. Code savings:
function old new delta
parse_stream 1758 1757 -1
checkjobs 335 318 -17
done_pipe 74 52 -22
expand_variables 1437 1407 -30
run_list 1232 1189 -43
parse_and_run_stream 328 267 -61
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/6 up/down: 0/-174) Total: -174 bytes
Denis Vlasenko [Tue, 24 Jun 2008 00:47:58 +0000 (00:47 -0000)]
hush: kill some old unused fields; small code shrink
function old new delta
builtin_exit 48 47 -1
checkjobs 351 335 -16
checkjobs_and_fg_shell 60 35 -25
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-42) Total: -42 bytes
Denis Vlasenko [Mon, 23 Jun 2008 22:31:52 +0000 (22:31 -0000)]
fix breakage found by randomconfig
Denis Vlasenko [Mon, 23 Jun 2008 16:28:53 +0000 (16:28 -0000)]
hush: trivial fix in debug code
Denis Vlasenko [Mon, 23 Jun 2008 13:24:19 +0000 (13:24 -0000)]
ash: trivial code readability fixes
Denis Vlasenko [Mon, 23 Jun 2008 13:06:34 +0000 (13:06 -0000)]
ash: improve readability of the code. No real code changes.
Denis Vlasenko [Mon, 23 Jun 2008 01:52:30 +0000 (01:52 -0000)]
ash: optional support for $'...\t...\n...' bashism
function old new delta
readtoken1 2824 3172 +348
static.C_escapes - 18 +18
parse_command 1504 1500 -4
SIT 89 83 -6
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/2 up/down: 366/-10) Total: 356 bytes
Denis Vlasenko [Sun, 22 Jun 2008 20:14:00 +0000 (20:14 -0000)]
trim usage text
Denis Vlasenko [Sun, 22 Jun 2008 16:59:46 +0000 (16:59 -0000)]
mdoprobe: fix SEGV bug (by Vlad Dronnikov)
Denis Vlasenko [Sun, 22 Jun 2008 16:38:53 +0000 (16:38 -0000)]
vi: fix obvious thinko's
Denis Vlasenko [Sun, 22 Jun 2008 16:28:02 +0000 (16:28 -0000)]
wget: accept code 204.
Denis Vlasenko [Sun, 22 Jun 2008 13:20:42 +0000 (13:20 -0000)]
vi: fix vda's breakage (by Cristian Ionescu-Idbohrn)
Denis Vlasenko [Sun, 22 Jun 2008 13:16:23 +0000 (13:16 -0000)]
ash: minor shrink (mostly smallints) and variable renaming
function old new delta
optschanged 85 91 +6
tryexec 115 118 +3
xxreadtoken 290 292 +2
raise_error_unexpected_syntax 75 77 +2
bltincmd 6 8 +2
parseheredoc 128 129 +1
static.is_interactive 4 1 -3
readtoken 156 153 -3
lasttoken 4 1 -3
evalcommand 1147 1144 -3
checkkwd 4 1 -3
back_exitstatus 4 1 -3
pipeline 282 276 -6
list 369 360 -9
ash_main 1402 1393 -9
options 616 606 -10
readtoken1 2823 2811 -12
parse_command 1529 1507 -22
------------------------------------------------------------------------------
(add/remove: 2/2 grow/shrink: 6/12 up/down: 21/-91) Total: -70 bytes
text data bss dec hex filename
807603 611 6908 815122 c7012 busybox_old
807545 611 6900 815056 c6fd0 busybox_unstripped
Denis Vlasenko [Sat, 21 Jun 2008 23:15:43 +0000 (23:15 -0000)]
dpkg: trivial code shrinkage, and redo G trick correctly.
function old new delta
run_package_script_or_die - 72 +72
fill_package_struct 303 309 +6
search_package_hashtable 122 125 +3
get_status 112 111 -1
status_hashtable 4 - -4
set_status 162 158 -4
package_hashtable 4 - -4
name_hashtable 4 - -4
package_satisfies_dependency 112 106 -6
search_name_hashtable 118 110 -8
configure_package 121 106 -15
remove_package 333 317 -16
search_status_hashtable 133 111 -22
purge_package 247 217 -30
unpack_package 552 521 -31
run_package_script 62 - -62
dpkg_main 3991 3867 -124
------------------------------------------------------------------------------
(add/remove: 1/4 grow/shrink: 2/10 up/down: 81/-331) Total: -250 bytes
text data bss dec hex filename
807972 611 6924 815507 c7193 busybox_old
807603 611 6908 815122 c7012 busybox_unstripped
Denis Vlasenko [Sat, 21 Jun 2008 22:46:58 +0000 (22:46 -0000)]
dpkg: code shrink
dpkg: add documentation from bug 3644
function old new delta
remove_package 318 333 +15
unpack_package 541 552 +11
purge_package 242 247 +5
all_control_list 55 53 -2
all_control_files 44 40 -4
add_split_dependencies 709 703 -6
search_status_hashtable 148 133 -15
search_package_hashtable 137 122 -15
search_name_hashtable 134 118 -16
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/6 up/down: 31/-58) Total: -27 bytes
text data bss dec hex filename
808093 611 6924 815628 c720c busybox_old
807972 611 6924 815507 c7193 busybox_unstripped
Denis Vlasenko [Sat, 21 Jun 2008 22:10:52 +0000 (22:10 -0000)]
dpkg: code shrink (by Peter Korsgaard <jacmet@uclibc.org>)
function old new delta
create_list 104 86 -18
Denis Vlasenko [Sat, 21 Jun 2008 20:31:50 +0000 (20:31 -0000)]
vi: small code shrink
function old new delta
file_insert 328 329 +1
colon 3067 3064 -3
string_insert 93 89 -4
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/2 up/down: 1/-7) Total: -6 bytes
Denis Vlasenko [Fri, 20 Jun 2008 20:20:54 +0000 (20:20 -0000)]
vi: fix the bug where vi never grows the edit buffer.
vi: do G trick on it
function old new delta
place_cursor 264 276 +12
next_tabstop 22 34 +12
mycmp 44 52 +8
status_line 34 40 +6
yank_delete 89 92 +3
what_reg 34 37 +3
suspend_sig 63 66 +3
find_range 493 496 +3
redraw 104 106 +2
cont_sig 63 65 +2
Indicate_Error 59 61 +2
status_line_bold 71 72 +1
file_insert 327 328 +1
vi_setops 1 - -1
...
cmdcnt 4 - -4
chars_to_parse 4 - -4
ccol 4 - -4
dot_scroll 88 79 -9
stupid_insert 28 18 -10
winch_sig 102 91 -11
char_insert 353 336 -17
readit 354 336 -18
get_one_char 128 110 -18
init_text_buffer 171 152 -19
text_hole_delete 132 112 -20
edit_file 940 918 -22
get_input_line 198 168 -30
show_status_line 449 408 -41
colon 3112 3067 -45
vi_main 312 250 -62
refresh 1077 974 -103
do_cmd 4818 4483 -335
------------------------------------------------------------------------------
(add/remove: 0/38 grow/shrink: 13/20 up/down: 58/-889) Total: -831 bytes
text data bss dec hex filename
809566 612 7044 817222 c7846 busybox_old
808794 611 6924 816329 c74c9 busybox_unstripped
text data bss dec hex filename
18888 1 122 19011 4a43 busybox.t8/editors/vi.o
18116 0 0 18116 46c4 busybox.t9/editors/vi.o
Denis Vlasenko [Fri, 20 Jun 2008 18:24:14 +0000 (18:24 -0000)]
ssd: fix comment
Denis Vlasenko [Fri, 20 Jun 2008 12:17:59 +0000 (12:17 -0000)]
udhcpc: change BPF filter to not use 0xffffffff as a max packet size,
there are kernels which don't like big (negative when viewed as signed)
sizes.
Denis Vlasenko [Wed, 18 Jun 2008 20:01:12 +0000 (20:01 -0000)]
strrchr: actually, last one was finding "" in "any" at pos 0,
should find at pos LAST...
Denis Vlasenko [Wed, 18 Jun 2008 19:49:46 +0000 (19:49 -0000)]
strrchr: bikeshed painting time!
replace cubic running time implementation with quadratic
make embedded test actually readable
function old new delta
strrstr 42 44 +2
Denis Vlasenko [Wed, 18 Jun 2008 19:22:19 +0000 (19:22 -0000)]
ash: fix "shift BIGNUM" and "read with no variable name" bugs.
omg. hush testsuite helps to find bugs in ash! what next?
function old new delta
static.arg_REPLY - 8 +8
readcmd 1023 1021 -2
shiftcmd 129 125 -4
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/2 up/down: 8/-6) Total: 2 bytes
Denis Vlasenko [Wed, 18 Jun 2008 17:53:57 +0000 (17:53 -0000)]
cosmetics in hush testsuites
Denis Vlasenko [Wed, 18 Jun 2008 17:49:58 +0000 (17:49 -0000)]
fix globbing in unquoted $* and $@
Denis Vlasenko [Wed, 18 Jun 2008 16:38:22 +0000 (16:38 -0000)]
fix trivial error with inverted exit code in ls
Denis Vlasenko [Wed, 18 Jun 2008 16:30:42 +0000 (16:30 -0000)]
hush: fix a bug with backslashes improperly handled in unquoted variables.
with previous patch:
function old new delta
parse_stream 1638 1758 +120
expand_on_ifs 97 174 +77
free_pipe 206 237 +31
setup_redirect 217 220 +3
setup_redirects 143 144 +1
done_word 698 688 -10
free_strings 38 - -38
expand_variables 1451 1403 -48
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 5/2 up/down: 232/-96) Total: 136 bytes
Denis Vlasenko [Wed, 18 Jun 2008 16:29:32 +0000 (16:29 -0000)]
hush: add testsuite for "no globbing in redirection" rule.
simplify redirection habdling
Denis Vlasenko [Wed, 18 Jun 2008 09:22:31 +0000 (09:22 -0000)]
hush: expand quote3.tests and move from hush-bugs to hush-parsing
Denis Vlasenko [Wed, 18 Jun 2008 09:20:35 +0000 (09:20 -0000)]
hush: fix last hush-bugs testcase (disappearing "", $empty"" etc)
Bernhard Reutner-Fischer [Wed, 18 Jun 2008 08:32:25 +0000 (08:32 -0000)]
- fixes from Tito
Bernhard Reutner-Fischer [Tue, 17 Jun 2008 12:45:39 +0000 (12:45 -0000)]
- fix includes
Denis Vlasenko [Tue, 17 Jun 2008 12:28:44 +0000 (12:28 -0000)]
hush: fix $$ handling
Bernhard Reutner-Fischer [Tue, 17 Jun 2008 12:11:34 +0000 (12:11 -0000)]
- improved strrstr impl from vda with testcases from Tito and vda
Denis Vlasenko [Tue, 17 Jun 2008 12:09:21 +0000 (12:09 -0000)]
hush: fix "for a in; do echo 'I should never run'; done" bug
Bernhard Reutner-Fischer [Tue, 17 Jun 2008 07:52:43 +0000 (07:52 -0000)]
- remove depmod from TODO, it was recently added.
Small touch up while at it
Denis Vlasenko [Tue, 17 Jun 2008 07:26:52 +0000 (07:26 -0000)]
move glob_and_assign.tests from hush-bugs to hush-glob
Denis Vlasenko [Tue, 17 Jun 2008 07:24:29 +0000 (07:24 -0000)]
hush: continue fixing quoting and subst: fix glob_and_assign.tests.
Denis Vlasenko [Tue, 17 Jun 2008 05:43:38 +0000 (05:43 -0000)]
hush: cleanup pass, the biggest is - moved builtins to the end of the file,
they really annoy in the middle of parser code. no real code changes.
Denis Vlasenko [Tue, 17 Jun 2008 05:11:43 +0000 (05:11 -0000)]
hush: fix memory leak. it was actually rather invloved problem.
Now finally glob/variable expansion is done IN THE RIGHT ORDER!
It opens up a possibility to cleanly fix remaining known bugs.
function old new delta
o_save_ptr 115 286 +171
o_save_ptr_helper - 115 +115
done_word 591 690 +99
o_get_last_ptr - 31 +31
expand_on_ifs 125 97 -28
add_string_to_strings 28 - -28
run_list 1895 1862 -33
debug_print_strings 42 - -42
add_strings_to_strings 126 - -126
expand_variables 1550 1394 -156
o_debug_list 168 - -168
expand_strvec_to_strvec 388 10 -378
------------------------------------------------------------------------------
(add/remove: 2/4 grow/shrink: 2/4 up/down: 416/-959) Total: -543 bytes
Denis Vlasenko [Mon, 16 Jun 2008 14:35:57 +0000 (14:35 -0000)]
hush: fixing fallout from last big glob fix:
fix segfault; identify where we leak memory
function old new delta
expand_strvec_to_strvec 353 336 -17
Denis Vlasenko [Mon, 16 Jun 2008 12:53:33 +0000 (12:53 -0000)]
hush: delete hush-bugs/glob_and_vars.tests for real
Denis Vlasenko [Mon, 16 Jun 2008 12:47:11 +0000 (12:47 -0000)]
hush: fix hush-bugs/glob_and_vars.tests testcase:
globbing is now done _after_ variable/`cmd` substitution
function old new delta
expand_strvec_to_strvec 7 353 +346
expand_variables 1348 1383 +35
add_string_to_strings - 28 +28
globhack 114 - -114
done_word 778 579 -199
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 2/1 up/down: 409/-313) Total: 96 bytes
Denis Vlasenko [Mon, 16 Jun 2008 07:32:40 +0000 (07:32 -0000)]
tftp: help compiler a bit
Denis Vlasenko [Mon, 16 Jun 2008 07:12:19 +0000 (07:12 -0000)]
tftpd: PXE server said to need to support "tsize" option
(by Pascal Bellard <pascal.bellard AT ads-lu.com>).
Conditional on blocksize option && tftpd support.
function old new delta
tftp_protocol 1488 1670 +182
tftp_get_option - 102 +102
tftpd_main 494 538 +44
tftp_main 252 254 +2
tftp_get_blksize 97 - -97
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 3/0 up/down: 330/-97) Total: 233 bytes
Denis Vlasenko [Mon, 16 Jun 2008 04:09:25 +0000 (04:09 -0000)]
whitespace and comment fixes, no code changes
Denis Vlasenko [Sun, 15 Jun 2008 20:15:27 +0000 (20:15 -0000)]
even more of help text fixes
Denis Vlasenko [Sun, 15 Jun 2008 20:14:26 +0000 (20:14 -0000)]
fix config help text
Bernhard Reutner-Fischer [Sun, 15 Jun 2008 19:02:31 +0000 (19:02 -0000)]
- fix copy'n paste error.
thanks, vda! :)
Denis Vlasenko [Sun, 15 Jun 2008 18:35:34 +0000 (18:35 -0000)]
Specially for Bernhard Fischer introduce USE_BB_CRYPT
which selects between libc/custom crypt routines.
Denis Vlasenko [Sun, 15 Jun 2008 11:49:42 +0000 (11:49 -0000)]
hush: eliminate PARSEFLAG_SEMICOLON and ctx->parse_type field.
function old new delta
parse_and_run_file 30 27 -3
hush_main 795 792 -3
initialize_context 45 39 -6
done_word 791 778 -13
parse_and_run_stream 375 338 -37
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/5 up/down: 0/-62) Total: -62 bytes
Denis Vlasenko [Sun, 15 Jun 2008 09:58:53 +0000 (09:58 -0000)]
use USE_FEATURE_UDHCP_PORT instead of ifdef
Denis Vlasenko [Sun, 15 Jun 2008 09:49:21 +0000 (09:49 -0000)]
udhcpc: removing stray whitespace
Denis Vlasenko [Sun, 15 Jun 2008 09:48:18 +0000 (09:48 -0000)]
further encrypt_des optimizations
function old new delta
pw_encrypt 943 964 +21
des_crypt 1512 1509 -3
u_sbox 512 256 -256
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/2 up/down: 21/-259) Total: -238 bytes
Denis Vlasenko [Sun, 15 Jun 2008 08:12:00 +0000 (08:12 -0000)]
cryptpw: fix "cryptpw -a des -- TEXT" case
libbb/pw_encrypt_des.c: optimize
function old new delta
cryptpw_main 177 157 -20
des_crypt 1682 1512 -170
pw_encrypt 1036 842 -194
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-384) Total: -384 bytes
Run tested.
Denis Vlasenko [Sun, 15 Jun 2008 05:40:56 +0000 (05:40 -0000)]
*: use llist_pop for traverse-and-free list operation
function old new delta
append_file_list_to_list 109 111 +2
udhcpc_main 2414 2413 -1
run_parts_main 325 324 -1
od_main 2324 2323 -1
getopt_main 709 707 -2
env_main 253 251 -2
sed_main 659 656 -3
ps_main 522 519 -3
traceroute_main 3960 3954 -6
sort_main 844 838 -6
diff_main 866 858 -8
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/10 up/down: 2/-33) Total: -31 bytes
Denis Vlasenko [Sun, 15 Jun 2008 05:40:08 +0000 (05:40 -0000)]
udhcpc: reduce ifdef forest, no code changes
Denis Vlasenko [Sat, 14 Jun 2008 22:11:29 +0000 (22:11 -0000)]
crypt: code shrink
function old new delta
des_crypt - 1682 +1682
md5_crypt - 627 +627
pw_encrypt 3608 1036 -2572
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 0/1 up/down: 2309/-2572) Total: -263 bytes
Denis Vlasenko [Sat, 14 Jun 2008 19:38:35 +0000 (19:38 -0000)]
tar: fix "unused parameter 'gzip'" warning
Denis Vlasenko [Sat, 14 Jun 2008 17:13:20 +0000 (17:13 -0000)]
hush: fix a bug where we were requiring semicolon here: (cmd;)
also fix a bug where after error prompt is not shown.
function old new delta
parse_stream 1612 1638 +26
parse_and_run_stream 361 375 +14
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/0 up/down: 40/0) Total: 40 bytes
Denis Vlasenko [Sat, 14 Jun 2008 15:50:55 +0000 (15:50 -0000)]
hush: add support for ':'; create testsuite entries
text data bss dec hex filename
809569 612 7044 817225 c7849 busybox_old
809528 612 7044 817184 c7820 busybox_unstripped
Denis Vlasenko [Sat, 14 Jun 2008 11:00:17 +0000 (11:00 -0000)]
hush: support "! cmd | cmd" negation
function old new delta
done_word 749 791 +42
run_list 1821 1859 +38
checkjobs 334 351 +17
done_pipe 61 74 +13
static.reserved_list 132 144 +12
initialize_context 53 45 -8
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 5/1 up/down: 122/-8) Total: 114 bytes
Denis Vlasenko [Sat, 14 Jun 2008 06:23:25 +0000 (06:23 -0000)]
Update sponsors page as well
Denis Vlasenko [Sat, 14 Jun 2008 06:14:02 +0000 (06:14 -0000)]
ash: small cosmetic change
Denis Vlasenko [Sat, 14 Jun 2008 06:04:59 +0000 (06:04 -0000)]
ash: fix ${var/s/r} handling, add testcase.
Denis Vlasenko [Sat, 14 Jun 2008 04:28:41 +0000 (04:28 -0000)]
dos2unix: do not destroy symlinks and mode of the file being converted.
Denis Vlasenko [Fri, 13 Jun 2008 20:44:05 +0000 (20:44 -0000)]
udhcpc: kill undocumented -W, it was a no-op.
fix option parsing in the case some CONFIG_x are off.
disable -b on NOMMU, make backgrounding work correctly
(if a bit differently from MMU case). Previously,
it wasn't working at all.
stop using global data for flags in main(), opt
bitfield works as well.
function old new delta
cryptpw_main 177 153 -24
packed_usage 24478 24452 -26
client_background 26 - -26
udhcpc_main 2462 2372 -90
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 0/3 up/down: 0/-166) Total: -166 bytes
Denis Vlasenko [Fri, 13 Jun 2008 15:13:41 +0000 (15:13 -0000)]
trivial crypt shrinkage
function old new delta
__md5_to64 27 29 +2
pw_encrypt 3631 3608 -23
Denis Vlasenko [Fri, 13 Jun 2008 13:49:59 +0000 (13:49 -0000)]
fix typo in "Analog Devices"
Denis Vlasenko [Fri, 13 Jun 2008 13:20:38 +0000 (13:20 -0000)]
httpd: fix authentication
Denis Vlasenko [Fri, 13 Jun 2008 13:10:01 +0000 (13:10 -0000)]
shorten sponsor's link per its request
Denis Vlasenko [Fri, 13 Jun 2008 12:06:22 +0000 (12:06 -0000)]
website: announce sponsors.
Denis Vlasenko [Fri, 13 Jun 2008 11:16:09 +0000 (11:16 -0000)]
build system: introduce FEATURE_ASSUME_UNICODE
ls: use it. also do G trick. with UNICODE off:
function old new delta
ls_main 843 871 +28
show_color 1 - -1
showdirs 500 497 -3
my_stat 100 97 -3
terminal_width 4 - -4
tabstops 4 - -4
status 122 118 -4
static.dotdir 4 - -4
current_time_t 4 - -4
all_fmt 4 - -4
------------------------------------------------------------------------------
(add/remove: 0/6 grow/shrink: 1/3 up/down: 28/-31) Total: -3 bytes
Also was tested with UNICODE on with glibc.
Denis Vlasenko [Fri, 13 Jun 2008 09:55:13 +0000 (09:55 -0000)]
httpd: fix bugs in authentication (by Peter Korsgaard <jacmet ATuclibc.org>)
we were accepting empty username; also we were always checking
dummy user:passwd pair ":" if user gave us wrong one.
function old new delta
check_user_passwd 338 319 -19
Denis Vlasenko [Fri, 13 Jun 2008 09:53:06 +0000 (09:53 -0000)]
htppd: lots of variable/function renaming in config file parsing.
fixed a bug where we trashed config file's name;
otherwise, should not have any real behavioral changes.
function old new delta
check_user_passwd - 338 +338
handle_incoming_and_exit 2661 2649 -12
parse_conf 1650 1536 -114
checkPerm 338 - -338
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 0/2 up/down: 338/-464) Total: -126 bytes
Denis Vlasenko [Thu, 12 Jun 2008 20:23:03 +0000 (20:23 -0000)]
Reinstate DEBUG_PESSIMIZE (by Christian Ionescu-Idbohrn)
Denis Vlasenko [Thu, 12 Jun 2008 16:56:52 +0000 (16:56 -0000)]
make pw_encrypt() return malloc'ed string.
text data bss dec hex filename
759802 604 6684 767090 bb472 busybox_old
759804 604 6676 767084 bb46c busybox_unstripped
Denis Vlasenko [Thu, 12 Jun 2008 16:55:59 +0000 (16:55 -0000)]
uclibc insists on having 70k static buffer for crypt.
For bbox it's not acceptable. Roll our own des and md5 crypt
implementation. Against older uclibc:
text data bss dec hex filename
759945 604 6684 767233 bb501 busybox_old
759766 604 6684 767054 bb44e busybox_unstripped
so, we still save on code size.
Bernhard Reutner-Fischer [Thu, 12 Jun 2008 15:54:49 +0000 (15:54 -0000)]
- make the first arg of the filter function passed to rtnl_dump_filter constant
to match normal iproute. No obj-code changes.
Denis Vlasenko [Thu, 12 Jun 2008 13:31:04 +0000 (13:31 -0000)]
hush: speed up o_addX{chr,str}
function old new delta
o_addQstr - 162 +162
o_addQchr - 89 +89
o_addstr - 58 +58
o_addqchr 50 81 +31
expand_on_ifs 103 97 -6
add_till_backquote 92 82 -10
expand_variables 1281 1217 -64
parse_stream 1675 1609 -66
o_addqstr 155 - -155
------------------------------------------------------------------------------
(add/remove: 3/1 grow/shrink: 1/4 up/down: 340/-301) Total: 39 bytes
text data bss dec hex filename
759870 604 6684 767158 bb4b6 busybox_old
759909 604 6684 767197 bb4dd busybox_unstripped
Denis Vlasenko [Thu, 12 Jun 2008 12:58:20 +0000 (12:58 -0000)]
hush: fix for nested $()s with escapes + testsuite