oweals/busybox.git
14 years agosplit: use xopen_stdin()
Denys Vlasenko [Mon, 23 Aug 2010 01:03:09 +0000 (03:03 +0200)]
split: use xopen_stdin()

function                                             old     new   delta
split_main                                           558     543     -15

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoVersion 1.17.2: apply post 1.17.1 fixes, replace patch applet by Rob's version
Denys Vlasenko [Mon, 23 Aug 2010 00:53:58 +0000 (02:53 +0200)]
Version 1.17.2: apply post 1.17.1 fixes, replace patch applet by Rob's version

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agobump version to 1.17.1 1_17_1
Denys Vlasenko [Sat, 24 Jul 2010 22:13:47 +0000 (00:13 +0200)]
bump version to 1.17.1

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoApply post-1.17.0 fixes
Denys Vlasenko [Sat, 24 Jul 2010 22:13:27 +0000 (00:13 +0200)]
Apply post-1.17.0 fixes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agobump version to 1.17.0 1_17_0
Denys Vlasenko [Tue, 6 Jul 2010 02:16:50 +0000 (04:16 +0200)]
bump version to 1.17.0

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoscripts/randomtest: update to pass testsuite with Rob's toolchain
Denys Vlasenko [Tue, 6 Jul 2010 00:26:35 +0000 (02:26 +0200)]
scripts/randomtest: update to pass testsuite with Rob's toolchain

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years ago[un]expand: fix testsuite
Denys Vlasenko [Tue, 6 Jul 2010 00:20:00 +0000 (02:20 +0200)]
[un]expand: fix testsuite

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agorandomconfig fixes
Denys Vlasenko [Mon, 5 Jul 2010 19:37:12 +0000 (21:37 +0200)]
randomconfig fixes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoYet another attempt to stamp out "make -j" problems
Denys Vlasenko [Sun, 4 Jul 2010 21:34:02 +0000 (23:34 +0200)]
Yet another attempt to stamp out "make -j" problems

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agolibbb: reduce number of *error_msg[_and_die].c files by four
Denys Vlasenko [Sun, 4 Jul 2010 15:16:44 +0000 (17:16 +0200)]
libbb: reduce number of *error_msg[_and_die].c files by four

No code changes.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years ago*: introduce and use xfork() and xvfork()
Pascal Bellard [Sun, 4 Jul 2010 13:32:38 +0000 (15:32 +0200)]
*: introduce and use xfork() and xvfork()

function                                             old     new   delta
launch_helper                                        170     169      -1
setup_heredoc                                        312     302     -10
handle_dir_common                                    367     354     -13
expand_vars_to_list                                 2456    2443     -13
open_transformer                                      89      74     -15
data_extract_to_command                              439     423     -16
do_ipaddr                                           1406    1389     -17
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/7 up/down: 0/-85)             Total: -85 bytes

Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoremove some dead assignments, add a TODO comment
Denys Vlasenko [Sun, 4 Jul 2010 02:26:55 +0000 (04:26 +0200)]
remove some dead assignments, add a TODO comment

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoip a: fix SEGV if "dev IFACE" is not specified
Denys Vlasenko [Sun, 4 Jul 2010 01:55:43 +0000 (03:55 +0200)]
ip a: fix SEGV if "dev IFACE" is not specified

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agolibbb: introduce and use BB_EXECVP_or_die()
Pascal Bellard [Sat, 3 Jul 2010 22:57:03 +0000 (00:57 +0200)]
libbb: introduce and use BB_EXECVP_or_die()

function                                             old     new   delta
BB_EXECVP_or_die                                       -      47     +47
time_main                                           1042    1043      +1
chrt_main                                            371     364      -7
ionice_main                                          292     282     -10
setsid_main                                           69      56     -13
nohup_main                                           236     223     -13
cttyhack_main                                        266     253     -13
chroot_main                                           94      81     -13
chpst_main                                           746     733     -13
timeout_main                                         297     279     -18
taskset_main                                         541     522     -19
vfork_child                                           67      45     -22
parse                                                975     953     -22
lpd_main                                             770     748     -22
launch_helper                                        192     170     -22
tcpudpsvd_main                                      1810    1782     -28
nice_main                                            190     156     -34
env_main                                             242     206     -36
run_command                                          221     174     -47
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/17 up/down: 48/-352)         Total: -304 bytes

Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agolosetup: use LOOP_foo defines
Lauri Kasanen [Sat, 3 Jul 2010 22:04:03 +0000 (00:04 +0200)]
losetup: use LOOP_foo defines

Signed-off-by: Lauri Kasanen <curaga@operamail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agofix compile breakage with "make -j"
Denys Vlasenko [Sat, 3 Jul 2010 12:28:35 +0000 (14:28 +0200)]
fix compile breakage with "make -j"

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agochrt: code shrink
Denys Vlasenko [Thu, 1 Jul 2010 14:42:27 +0000 (16:42 +0200)]
chrt: code shrink

function                                             old     new   delta
show_min_max                                          80      60     -20
packed_usage                                       26929   26896     -33
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-53)             Total: -53 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoconsolidate xz format comment. no code changes
Denys Vlasenko [Thu, 1 Jul 2010 08:38:10 +0000 (10:38 +0200)]
consolidate xz format comment. no code changes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoconspy: stop losing some keyboard keys.
Pascal Bellard [Thu, 1 Jul 2010 05:18:41 +0000 (07:18 +0200)]
conspy: stop losing some keyboard keys.

11 bytes shrink.

Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoxz compression detection: avoid the need to seek
Denys Vlasenko [Thu, 1 Jul 2010 03:12:28 +0000 (05:12 +0200)]
xz compression detection: avoid the need to seek

function                                             old     new   delta
unpack_unxz                                           12      67     +55
unpack_xz_stream                                    2357    2373     +16
xmalloc_read                                         197     199      +2
setup_unzip_on_fd                                    118      99     -19
rpm2cpio_main                                        222     203     -19
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/2 up/down: 73/-38)             Total: 35 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agobzip2 decompression: simple code shrink
Denys Vlasenko [Wed, 30 Jun 2010 17:43:44 +0000 (19:43 +0200)]
bzip2 decompression: simple code shrink

function                                             old     new   delta
unpack_bz2_stream_prime                               60      55      -5
get_header_tar                                      1508    1496     -12

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoconspy: code shrink
Pascal Bellard [Wed, 30 Jun 2010 05:05:31 +0000 (07:05 +0200)]
conspy: code shrink

function                                             old     new   delta
screen_read_close                                    114     187     +73
set_cursor                                             -      53     +53
cleanup                                               93      91      -2
screen_dump                                          202     197      -5
curon                                                 34       -     -34
screen_char                                          351     308     -43
conspy_main                                         1444    1264    -180
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 1/4 up/down: 126/-264)         Total: -138 bytes

Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agobootchartd: fix sample period calculations
Keisuke Yasui [Mon, 28 Jun 2010 14:04:00 +0000 (16:04 +0200)]
bootchartd: fix sample period calculations

Signed-off-by: Keisuke Yasui <keisuke.yasui@toshiba.co.jp>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoconspy: code shrink
Pascal Bellard [Mon, 28 Jun 2010 13:50:22 +0000 (15:50 +0200)]
conspy: code shrink

function                                             old     new   delta
conspy_main                                         1446    1444      -2
screen_read_close                                    114     108      -6
screen_char                                          299     293      -6

Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agonc: better comments. no code changes
Denys Vlasenko [Mon, 28 Jun 2010 02:17:06 +0000 (04:17 +0200)]
nc: better comments. no code changes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoconspy: significant output minimization; blink attribute support
Denys Vlasenko [Sun, 27 Jun 2010 18:42:17 +0000 (20:42 +0200)]
conspy: significant output minimization; blink attribute support

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoremove recently added erroneous _and_die()
Denys Vlasenko [Sun, 27 Jun 2010 14:57:55 +0000 (16:57 +0200)]
remove recently added erroneous _and_die()

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agomount: fix a case when sometimes error message is not printed
Denys Vlasenko [Sun, 27 Jun 2010 14:47:40 +0000 (16:47 +0200)]
mount: fix a case when sometimes error message is not printed

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agonc: introduce CONFIG_NC_110_COMPAT option.
Denys Vlasenko [Sun, 27 Jun 2010 02:22:02 +0000 (04:22 +0200)]
nc: introduce CONFIG_NC_110_COMPAT option.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years ago*: s/"/bin/sh"/DEFAULT_SHELL, run_shell() API fix, remove unneeded strdup
Ladislav Michl [Sun, 27 Jun 2010 01:23:31 +0000 (03:23 +0200)]
*: s/"/bin/sh"/DEFAULT_SHELL, run_shell() API fix, remove unneeded strdup

function                                             old     new   delta
run_shell                                            157     166      +9
su_main                                              477     470      -7
sulogin_main                                         515     503     -12

Signed-off-by: Ladislav Michl <Ladislav.Michl@seznam.cz>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agomodinfo: support relative paths in modules.dep
Lauri Kasanen [Sat, 26 Jun 2010 22:35:49 +0000 (00:35 +0200)]
modinfo: support relative paths in modules.dep

function                                             old     new   delta
modinfo                                              272     329     +57
modinfo_main                                         325     344     +19

Signed-off-by: Lauri Kasanen <curaga@operamail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agomodinfo: needs DEFAULT_MODULES_DIR and DEFAULT_DEPMOD_FILE
Lauri Kasanen [Sat, 26 Jun 2010 10:41:35 +0000 (13:41 +0300)]
modinfo: needs DEFAULT_MODULES_DIR and DEFAULT_DEPMOD_FILE

Signed-off-by: Lauri Kasanen <curaga@operamail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agolibbb/copyfd.c: fix the case of copy buffer <= 4kb
Denys Vlasenko [Sat, 26 Jun 2010 21:08:59 +0000 (23:08 +0200)]
libbb/copyfd.c: fix the case of copy buffer <= 4kb

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoash: fix obscure case of replacing + globbing + backslashes
Denys Vlasenko [Sat, 26 Jun 2010 20:55:44 +0000 (22:55 +0200)]
ash: fix obscure case of replacing + globbing + backslashes

function                                             old     new   delta
subevalvar                                          1152    1178     +26
readtoken1                                          3267    3275      +8
redirect                                            1284    1286      +2
expandarg                                            957     958      +1
expdir                                                 4       -      -4
evalcommand                                         1219    1209     -10
expmeta                                              481     469     -12
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 4/2 up/down: 37/-26)             Total: 11 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotar: make typical extraction less memory-hungry
Denys Vlasenko [Sat, 26 Jun 2010 16:22:41 +0000 (18:22 +0200)]
tar: make typical extraction less memory-hungry

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years ago*: tar-related cleanups: move struct to unarchive.h; move help to tar.c
Denys Vlasenko [Sat, 26 Jun 2010 16:21:36 +0000 (18:21 +0200)]
*: tar-related cleanups: move struct to unarchive.h; move help to tar.c

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotar: fix --to-command wrt short writes
Denys Vlasenko [Sat, 26 Jun 2010 16:11:44 +0000 (18:11 +0200)]
tar: fix --to-command wrt short writes

function                                             old     new   delta
bb_copyfd_exact_size                                  51      98     +47
bb_full_fd_action                                    362     394     +32
get_header_tar                                      1546    1558     +12
data_extract_to_command                              430     439      +9
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/0 up/down: 100/0)             Total: 100 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agofix breakage in compressed file detection
Denys Vlasenko [Sat, 26 Jun 2010 03:01:16 +0000 (05:01 +0200)]
fix breakage in compressed file detection

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agouniversal parser: do not leak parser->data
Denys Vlasenko [Sat, 26 Jun 2010 02:00:52 +0000 (04:00 +0200)]
universal parser: do not leak parser->data

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agobuild system: do not rebuild ash and hush on any change to any .c file
Denys Vlasenko [Sat, 26 Jun 2010 00:40:08 +0000 (02:40 +0200)]
build system: do not rebuild ash and hush on any change to any .c file

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoconspy: make "conspy 0" use vcsa0 but "conspy" (no param) use vcsa
Denys Vlasenko [Fri, 25 Jun 2010 12:40:25 +0000 (14:40 +0200)]
conspy: make "conspy 0" use vcsa0 but "conspy" (no param) use vcsa

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoanother fix to gen_build_files / autoconf.h dependency
Denys Vlasenko [Fri, 25 Jun 2010 11:56:28 +0000 (13:56 +0200)]
another fix to gen_build_files / autoconf.h dependency

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agogen_build_files.sh is an order prerequisite only for autoconf.h
Denys Vlasenko [Fri, 25 Jun 2010 11:30:59 +0000 (13:30 +0200)]
gen_build_files.sh is an order prerequisite only for autoconf.h

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agobuild system: make gen_build_files.sh run before autoconf.h generation
Denys Vlasenko [Fri, 25 Jun 2010 10:58:17 +0000 (12:58 +0200)]
build system: make gen_build_files.sh run before autoconf.h generation

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years ago*: make exec failure message more consistent
Denys Vlasenko [Thu, 24 Jun 2010 23:46:53 +0000 (01:46 +0200)]
*: make exec failure message more consistent

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotar: optional support for --to-command
Ladislav Michl [Thu, 24 Jun 2010 23:33:00 +0000 (01:33 +0200)]
tar: optional support for --to-command

function                                             old     new   delta
data_extract_to_command                                -     430    +430
dec2env                                                -      44     +44
tar_main                                             778     819     +41
str2env                                                -      37     +37
tar_var                                                -      32     +32
xputenv                                                -      22     +22
tar_longopts                                         257     270     +13
------------------------------------------------------------------------------
(add/remove: 6/0 grow/shrink: 2/0 up/down: 619/0)             Total: 619 bytes

Signed-off-by: Ladislav Michl <Ladislav.Michl@seznam.cz>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoconspy: code shrink
Denys Vlasenko [Thu, 24 Jun 2010 22:57:57 +0000 (00:57 +0200)]
conspy: code shrink

function                                             old     new   delta
conspy_main                                         1385    1380      -5
screen_dump                                          215     202     -13

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: step correction to variables had wrong sign, fixing
Denys Vlasenko [Thu, 24 Jun 2010 18:23:40 +0000 (20:23 +0200)]
ntpd: step correction to variables had wrong sign, fixing

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoconspy: document attribute byte format
Denys Vlasenko [Thu, 24 Jun 2010 15:50:00 +0000 (17:50 +0200)]
conspy: document attribute byte format

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agosmemcap: new applet
Denys Vlasenko [Thu, 24 Jun 2010 03:05:12 +0000 (05:05 +0200)]
smemcap: new applet

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years ago*: introduce and use bb_unsetenv_and_free
Denys Vlasenko [Thu, 24 Jun 2010 03:00:50 +0000 (05:00 +0200)]
*: introduce and use bb_unsetenv_and_free

function                                             old     new   delta
bb_unsetenv_and_free                                   -      17     +17
tcpudpsvd_main                                      1819    1810      -9
safe_setenv                                           58      47     -11
udhcp_run_script                                     630     616     -14
make_device                                         1683    1663     -20
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/4 up/down: 17/-54)            Total: -37 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoash: <> redir should not truncate
Andreas Bühmann [Thu, 24 Jun 2010 02:32:37 +0000 (04:32 +0200)]
ash: <> redir should not truncate

Signed-off-by: Andreas Bühmann <buehmann@users.berlios.de>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoconspy: code shrink ~200 bytes
Pascal Bellard [Wed, 23 Jun 2010 18:25:00 +0000 (20:25 +0200)]
conspy: code shrink ~200 bytes

Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotypo fix
Denys Vlasenko [Tue, 22 Jun 2010 16:33:15 +0000 (18:33 +0200)]
typo fix

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agorev: new applet
Marek Polacek [Tue, 22 Jun 2010 10:53:35 +0000 (12:53 +0200)]
rev: new applet

   text   data    bss    dec    hexfilename
    377      0      0    377    179rev.o

Signed-off-by: Marek Polacek <mmpolacek@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agofix config help text
Denys Vlasenko [Mon, 21 Jun 2010 05:25:36 +0000 (07:25 +0200)]
fix config help text

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agobootchartd: added optional compat features
Denys Vlasenko [Mon, 21 Jun 2010 05:17:23 +0000 (07:17 +0200)]
bootchartd: added optional compat features

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agofix errors in detecting non-modified areas
Denys Vlasenko [Mon, 21 Jun 2010 02:00:16 +0000 (04:00 +0200)]
fix errors in detecting non-modified areas

function                                             old     new   delta
screen_char                                          100     102      +2
cleanup                                               84      86      +2
screen_dump                                          215     210      -5
conspy_main                                         1503    1491     -12

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoconspy: new applet
Pascal Bellard [Mon, 21 Jun 2010 00:17:29 +0000 (02:17 +0200)]
conspy: new applet

Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agodecompress_unxz: use common string
Denys Vlasenko [Mon, 21 Jun 2010 00:16:51 +0000 (02:16 +0200)]
decompress_unxz: use common string

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agounxz: update from XZ embedded git
Denys Vlasenko [Sun, 20 Jun 2010 00:40:56 +0000 (02:40 +0200)]
unxz: update from XZ embedded git

function                                             old     new   delta
rc_reset                                               -      21     +21
unpack_xz_stream                                    2342    2357     +15
lzma_reset                                           102      64     -38
lzma_len                                             506     443     -63
xz_dec_lzma2_run                                    1438    1374     -64
xz_dec_reset                                          73       -     -73
lzma_main                                           2517    2183    -334
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 1/4 up/down: 36/-572)          Total: -536 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotweak TODO file
Denys Vlasenko [Sat, 19 Jun 2010 20:15:20 +0000 (22:15 +0200)]
tweak TODO file

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoxargs: bump default -sNUM up to 32k. Use sysconf() to trim it down if necessary
Denys Vlasenko [Sat, 19 Jun 2010 19:44:01 +0000 (21:44 +0200)]
xargs: bump default -sNUM up to 32k. Use sysconf() to trim it down if necessary

function                                             old     new   delta
xargs_main                                           819     830     +11

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoadded Config.in to .gitignore
Denys Vlasenko [Sat, 19 Jun 2010 18:42:02 +0000 (20:42 +0200)]
added Config.in to .gitignore

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agocosmetics on top of Dan's patches
Denys Vlasenko [Sat, 19 Jun 2010 18:07:23 +0000 (20:07 +0200)]
cosmetics on top of Dan's patches

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoDefine GNU-specific link options in one place
Dan Fandrich [Sat, 19 Jun 2010 05:36:10 +0000 (22:36 -0700)]
Define GNU-specific link options in one place

This makes them easier to change to support a non-GNU toolchain.

Signed-off-by: Dan Fandrich <dan@coneharvesters.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoAdded code for nonstandard function strsep()
Dan Fandrich [Sat, 19 Jun 2010 05:36:45 +0000 (22:36 -0700)]
Added code for nonstandard function strsep()

Signed-off-by: Dan Fandrich <dan@coneharvesters.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoA few minor portability improvements
Dan Fandrich [Sat, 19 Jun 2010 05:37:42 +0000 (22:37 -0700)]
A few minor portability improvements

Signed-off-by: Dan Fandrich <dan@coneharvesters.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agosed: trivial code shrink -18 bytes
Denys Vlasenko [Sat, 19 Jun 2010 15:51:06 +0000 (17:51 +0200)]
sed: trivial code shrink -18 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoMerge branch 'master' of git+ssh://vda@busybox.net/var/lib/git/busybox
Denys Vlasenko [Sat, 19 Jun 2010 15:50:44 +0000 (17:50 +0200)]
Merge branch 'master' of git+ssh://vda@busybox.net/var/lib/git/busybox

14 years agoRevert "sed: trivial code shrink"
Denys Vlasenko [Sat, 19 Jun 2010 15:50:23 +0000 (17:50 +0200)]
Revert "sed: trivial code shrink"

This reverts commit c2c7aa4b0d16049322ca2ebc69ca1093f6944e3a.

14 years agosed: trivial code shrink
Denys Vlasenko [Sat, 19 Jun 2010 15:47:46 +0000 (17:47 +0200)]
sed: trivial code shrink

function                                             old     new   delta
sed_main                                             685     667     -18

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoash: times builtin: use unsigned type; take free-of-charge modulo
Denys Vlasenko [Fri, 18 Jun 2010 13:36:48 +0000 (15:36 +0200)]
ash: times builtin: use unsigned type; take free-of-charge modulo

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years ago*: stop defining _GNU_SOURCE in source files, it's in CFLAGS anyway
Denys Vlasenko [Fri, 18 Jun 2010 13:15:24 +0000 (15:15 +0200)]
*: stop defining _GNU_SOURCE in source files, it's in CFLAGS anyway

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoash: fix unset in standalone mode
Denys Vlasenko [Fri, 18 Jun 2010 12:23:47 +0000 (14:23 +0200)]
ash: fix unset in standalone mode

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoash: cosmetics, no code changes
Denys Vlasenko [Fri, 18 Jun 2010 12:09:48 +0000 (14:09 +0200)]
ash: cosmetics, no code changes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoImprove unzip's handling of stream ZIP files
Dan Fandrich [Fri, 18 Jun 2010 04:39:44 +0000 (21:39 -0700)]
Improve unzip's handling of stream ZIP files

Search harder for the ZIP magic numbers at the end of a file by checking
16 KiB from the end instead of just 1 KiB.  ZIP files with long comments
(such as certain cryptographically signed files) or those sitting in a
wrapper could have more than 1 KiB of data after the magic numbers, so
they couldn't be read.

Signed-off-by: Dan Fandrich <dan@coneharvesters.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoAllow CONFIG_VOLUMEID to be turned off
Dan Fandrich [Fri, 18 Jun 2010 06:30:27 +0000 (23:30 -0700)]
Allow CONFIG_VOLUMEID to be turned off

Signed-off-by: Dan Fandrich <dan@coneharvesters.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoignore changes to Kbuild files, they are generated
Dan Fandrich [Fri, 18 Jun 2010 11:26:11 +0000 (13:26 +0200)]
ignore changes to Kbuild files, they are generated

Signed-off-by: Dan Fandrich <dan@coneharvesters.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agomkfs_ext2: improve comments a bit
Denys Vlasenko [Fri, 18 Jun 2010 10:40:57 +0000 (12:40 +0200)]
mkfs_ext2: improve comments a bit

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agocpio.tests: mention suid bits too, not only sgid
Denys Vlasenko [Fri, 18 Jun 2010 10:28:05 +0000 (12:28 +0200)]
cpio.tests: mention suid bits too, not only sgid

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agomkfs_ext2: reuse string
Bernhard Reutner-Fischer [Fri, 18 Jun 2010 09:49:44 +0000 (11:49 +0200)]
mkfs_ext2: reuse string

function                                             old     new   delta
mkfs_ext2_main                                      2376    2378      +2
.rodata                                           135872  135848     -24
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 2/-24)             Total: -22 bytes

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agomkfs_ext2: fix handling of -I argument
Bernhard Reutner-Fischer [Fri, 18 Jun 2010 09:47:45 +0000 (11:47 +0200)]
mkfs_ext2: fix handling of -I argument

-I <unsigned int> but was treated as a character

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agomktemp: be more compatible: bare "mktemp" creates tempfile in /tmp, not cwd
Denys Vlasenko [Fri, 18 Jun 2010 01:16:27 +0000 (03:16 +0200)]
mktemp: be more compatible: bare "mktemp" creates tempfile in /tmp, not cwd

function                                             old     new   delta
mktemp_main                                          171     152     -19

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agodate: make %N work without -lrt on glibc
Denys Vlasenko [Fri, 18 Jun 2010 00:55:48 +0000 (02:55 +0200)]
date: make %N work without -lrt on glibc

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotftp: increase initial retry timeout from 50 to 100 ms
Denys Vlasenko [Fri, 18 Jun 2010 00:47:27 +0000 (02:47 +0200)]
tftp: increase initial retry timeout from 50 to 100 ms

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoadd a comment about sed and suid bits
Denys Vlasenko [Fri, 18 Jun 2010 00:12:56 +0000 (02:12 +0200)]
add a comment about sed and suid bits

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agodata_extract_all: do not chmod symlink. Closes 2053
Denys Vlasenko [Fri, 18 Jun 2010 00:00:55 +0000 (02:00 +0200)]
data_extract_all: do not chmod symlink. Closes 2053

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agonetworking/Config.src: make tftp/tftpd-related options less confusing. Closes 2017
Denys Vlasenko [Thu, 17 Jun 2010 21:48:59 +0000 (23:48 +0200)]
networking/Config.src: make tftp/tftpd-related options less confusing. Closes 2017

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agofix extra bogus files generation in include/config/*
Denys Vlasenko [Thu, 17 Jun 2010 18:20:24 +0000 (20:20 +0200)]
fix extra bogus files generation in include/config/*

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoubiattach,ubidetach: new applets
Baruch Siach [Wed, 16 Jun 2010 10:22:58 +0000 (12:22 +0200)]
ubiattach,ubidetach: new applets

function                                             old     new   delta
ubi_attach_detach_main                                 -     175    +175
packed_usage                                       27056   27136     +80
applet_names                                        2262    2282     +20
applet_main                                         1328    1336      +8
applet_nameofs                                       664     668      +4
applet_install_loc                                   166     167      +1
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 5/0 up/down: 288/0)             Total: 288 bytes

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agofindutils/*: move usage and applet bits to *.c files
Denys Vlasenko [Tue, 15 Jun 2010 13:40:16 +0000 (15:40 +0200)]
findutils/*: move usage and applet bits to *.c files

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agofile rename: TODO_config_nommu -> TEST_config_nommu
Denys Vlasenko [Tue, 15 Jun 2010 13:15:57 +0000 (15:15 +0200)]
file rename: TODO_config_nommu -> TEST_config_nommu

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoxargs: another code shrink
Denys Vlasenko [Tue, 15 Jun 2010 08:18:01 +0000 (10:18 +0200)]
xargs: another code shrink

function                                             old     new   delta
process0_stdin                                       117     103     -14
process_stdin                                        336     314     -22

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoxargs: trivial code shrink
Denys Vlasenko [Tue, 15 Jun 2010 08:02:04 +0000 (10:02 +0200)]
xargs: trivial code shrink

function                                             old     new   delta
xargs_main                                           807     787     -20

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agorfkill: do not enable by default, it requires new-ish Linux headers
Denys Vlasenko [Mon, 14 Jun 2010 12:28:31 +0000 (14:28 +0200)]
rfkill: do not enable by default, it requires new-ish Linux headers

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoscripts/echo.c: remove bb-ism
Denys Vlasenko [Mon, 14 Jun 2010 12:27:26 +0000 (14:27 +0200)]
scripts/echo.c: remove bb-ism

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoxargs: trivial code shrink
Denys Vlasenko [Mon, 14 Jun 2010 10:38:36 +0000 (12:38 +0200)]
xargs: trivial code shrink

function                                             old     new   delta
process_stdin                                        343     336      -7
process0_stdin                                       124     117      -7
xargs_main                                           807     787     -20

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoxargs: simplify logic
Denys Vlasenko [Sun, 13 Jun 2010 22:57:05 +0000 (00:57 +0200)]
xargs: simplify logic

Removed double-buffering in a linked list.

function                                             old     new   delta
store_param                                            -      56     +56
xargs_main                                           871     840     -31
process_stdin                                        458     396     -62
process0_stdin                                       267     143    -124
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/3 up/down: 56/-217)          Total: -161 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoxargs: fix accounting of -sNUM
Denys Vlasenko [Sun, 13 Jun 2010 10:43:54 +0000 (12:43 +0200)]
xargs: fix accounting of -sNUM

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>