oweals/busybox.git
16 years agodd: support conv=fsync
Denis Vlasenko [Wed, 2 Apr 2008 21:20:35 +0000 (21:20 -0000)]
dd: support conv=fsync
dd: support "dd --" if CONFIG_DESKTOP=y

function                                             old     new   delta
static.conv_words                                      -      28     +28
dd_main                                             1369    1373      +4
static.keywords                                      848     827     -21
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/1 up/down: 32/-21)             Total: 11 bytes

16 years agoexpr: fix comparisons 'a < b' where we were overflowing a-b
Denis Vlasenko [Wed, 2 Apr 2008 20:24:09 +0000 (20:24 -0000)]
expr: fix comparisons 'a < b' where we were overflowing a-b
(not to mention that we used int, not arith_t). closes bug 2744.
Also, shrink a bit and add testsuite entry

function                                             old     new   delta
nextarg                                               75      84      +9
tostring                                              38      35      -3
toarith                                               89      86      -3
str_value                                             35      32      -3
eval6                                                555     552      -3
int_value                                             29      23      -6
eval4                                                128     120      -8
eval3                                                112     104      -8
eval2                                                512     417     -95
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/8 up/down: 9/-129)           Total: -120 bytes

16 years agoudhcpc: add -o "do not request options by default" switch
Denis Vlasenko [Wed, 2 Apr 2008 13:04:19 +0000 (13:04 -0000)]
udhcpc: add -o "do not request options by default" switch
(by L. Gabriel Somlo <somlo AT cmu.edu>)

function                                             old     new   delta
udhcpc_main                                         2513    2554     +41
static.udhcpc_longopts                               226     247     +21
add_param_req_option                                 119     132     +13
packed_usage                                       23952   23964     +12
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/0 up/down: 87/0)               Total: 87 bytes

16 years agoxfunc_die: resurrect (actually, it's "svn add" being forgotten again)
Denis Vlasenko [Tue, 1 Apr 2008 17:43:03 +0000 (17:43 -0000)]
xfunc_die: resurrect (actually, it's "svn add" being forgotten again)

16 years agobasename: tiny shrink
Denis Vlasenko [Tue, 1 Apr 2008 16:29:21 +0000 (16:29 -0000)]
basename: tiny shrink

16 years agochpst: fix "env directory" parsing to not strip everything
Denis Vlasenko [Tue, 1 Apr 2008 16:13:14 +0000 (16:13 -0000)]
chpst: fix "env directory" parsing to not strip everything
after 1st whitespace. -6 bytes.

16 years agoscript: do not ignore poll() errors. ~+20 bytes.
Denis Vlasenko [Tue, 1 Apr 2008 16:12:17 +0000 (16:12 -0000)]
script: do not ignore poll() errors. ~+20 bytes.

16 years agoshells: do not frocibly enable test, echo and kill _applets_,
Denis Vlasenko [Tue, 1 Apr 2008 14:47:57 +0000 (14:47 -0000)]
shells: do not frocibly enable test, echo and kill _applets_,
just build relevant source and use xxx_main functions.
build system: add a special case when we have exactly one applet enabled
(makes "true", "false", "basename" REALLY tiny).
getopt32: do not use stdio.

function                                             old     new   delta
getopt32                                            1385    1412     +27
make_device                                         1187    1200     +13
basename_main                                        120     127      +7
tcpudpsvd_main                                      1922    1926      +4
testcmd                                                5       -      -5
echocmd                                                5       -      -5
fuser_main                                          1243    1231     -12
------------------------------------------------------------------------------
(add/remove: 0/2 grow/shrink: 4/1 up/down: 51/-22)             Total: 29 bytes

16 years agotcpudp: trivial build fix
Denis Vlasenko [Mon, 31 Mar 2008 20:30:38 +0000 (20:30 -0000)]
tcpudp: trivial build fix

16 years agolibbb: preventive fix for SIGxxx >= 32
Denis Vlasenko [Sun, 30 Mar 2008 15:56:38 +0000 (15:56 -0000)]
libbb: preventive fix for SIGxxx >= 32

16 years agog[un]zip: accept and ignore -n (needed for kernel compile)
Denis Vlasenko [Sun, 30 Mar 2008 13:11:47 +0000 (13:11 -0000)]
g[un]zip: accept and ignore -n (needed for kernel compile)

16 years agofuser: fix vda's breakage: DOH! chdir'ing to /proc breaks relative paths
Denis Vlasenko [Sat, 29 Mar 2008 17:59:27 +0000 (17:59 -0000)]
fuser: fix vda's breakage: DOH! chdir'ing to /proc breaks relative paths

16 years agomdev: optional support for regex pattern group substitution.
Denis Vlasenko [Sat, 29 Mar 2008 17:26:10 +0000 (17:26 -0000)]
mdev: optional support for regex pattern group substitution.
+142 bytes.

16 years agomdev: fix block/char device detection. Closes bug 2144.
Denis Vlasenko [Sat, 29 Mar 2008 16:07:46 +0000 (16:07 -0000)]
mdev: fix block/char device detection. Closes bug 2144.

16 years agoinetd: small shrink for NOMMU case
Denis Vlasenko [Sat, 29 Mar 2008 16:00:52 +0000 (16:00 -0000)]
inetd: small shrink for NOMMU case

function                                             old     new   delta
cat_args                                               -       8      +8
echo_stream                                           64      63      -1
discard_stream                                        64      63      -1
static.args                                           32      12     -20
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/3 up/down: 8/-22)             Total: -14 bytes

16 years agomdev: fix "foo 0:0 444 >bar/baz" rule handling. make_device() +23 bytes
Denis Vlasenko [Sat, 29 Mar 2008 15:11:07 +0000 (15:11 -0000)]
mdev: fix "foo 0:0 444 >bar/baz" rule handling. make_device() +23 bytes

16 years agomdev: fix a bug where it was not stopping on first matching rule
Denis Vlasenko [Sat, 29 Mar 2008 13:10:57 +0000 (13:10 -0000)]
mdev: fix a bug where it was not stopping on first matching rule
(testsuite entry added). Revamped line parsing while at it.

function                                             old     new   delta
next_field                                             -      36     +36
make_device                                         1104    1022     -82
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/1 up/down: 36/-82)            Total: -46 bytes

16 years agoftpgetput: move control_stream to "struct globals";
Denis Vlasenko [Sat, 29 Mar 2008 07:40:35 +0000 (07:40 -0000)]
ftpgetput: move control_stream to "struct globals";
unify common data pumpung stage for upload and download;
other small shrinkage. EPSV still not implemented...

function                                             old     new   delta
pump_data_and_QUIT                                     -      82     +82
xconnect_ftpdata                                     127     156     +29
ftpcmd                                               301     304      +3
ftp_die                                               59      55      -4
ftpgetput_main                                       352     344      -8
ftp_send                                             185      91     -94
ftp_receive                                          394     293    -101
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 2/4 up/down: 114/-207)          Total: -93 bytes

16 years agoftpgetput: deal with long-standing TODOs:
Denis Vlasenko [Sat, 29 Mar 2008 07:37:42 +0000 (07:37 -0000)]
ftpgetput: deal with long-standing TODOs:
- do not use ALLO on upload
- move globals to "struct globals"
- move buf[] there too
- remove commented out "filesize" code
- other shrinkage

function                                             old     new   delta
xconnect_ftpdata                                     117     127     +10
ftp_die                                               49      59     +10
ftpcmd                                               292     301      +9
verbose_flag                                           1       -      -1
do_continue                                            1       -      -1
ftpgetput_main                                       405     352     -53
ftp_receive                                          451     394     -57
ftp_send                                             325     185    -140
------------------------------------------------------------------------------
(add/remove: 0/2 grow/shrink: 3/3 up/down: 29/-252)          Total: -223 bytes

16 years agoftpgetput: add comment about EPSV (extended PASV).
Denis Vlasenko [Fri, 28 Mar 2008 22:11:49 +0000 (22:11 -0000)]
ftpgetput: add comment about EPSV (extended PASV).
Fix bug where we were using lstat instead of stat.
Added many TODOs.

16 years agocopy_file: handle "cp /dev/foo file" (almost) compatibly to coreutils.
Denis Vlasenko [Fri, 28 Mar 2008 17:49:31 +0000 (17:49 -0000)]
copy_file: handle "cp /dev/foo file" (almost) compatibly to coreutils.
(almost because we do not copy mode, which is probably wasn't intended).
+61 bytes.

16 years agofbsplash: move to /sbin; small shrink
Denis Vlasenko [Fri, 28 Mar 2008 11:17:35 +0000 (11:17 -0000)]
fbsplash: move to /sbin; small shrink

function                                             old     new   delta
fb_drawprogressbar                                   413     423     +10
fbsplash_main                                       1146    1121     -25

16 years agofix a few stray unguarded strdup's
Denis Vlasenko [Fri, 28 Mar 2008 02:24:59 +0000 (02:24 -0000)]
fix a few stray unguarded strdup's

16 years agowhitespace fixes
Denis Vlasenko [Fri, 28 Mar 2008 01:00:09 +0000 (01:00 -0000)]
whitespace fixes

16 years agomdev: plug a few memory and fd leaks; simplify code a bit
Denis Vlasenko [Thu, 27 Mar 2008 22:45:44 +0000 (22:45 -0000)]
mdev: plug a few memory and fd leaks; simplify code a bit

16 years agomdev: add testsuite entry
Denis Vlasenko [Thu, 27 Mar 2008 20:49:26 +0000 (20:49 -0000)]
mdev: add testsuite entry

16 years agoopenvt: fix gross mismatch between us and "standard" openvt.
Denis Vlasenko [Thu, 27 Mar 2008 16:26:35 +0000 (16:26 -0000)]
openvt: fix gross mismatch between us and "standard" openvt.
  standard one even has different syntax!
  std: "openvt -c 12", we: "openvt 12"
  std: "openvt top", we: complain that "top" is not a number.
openvt: implement -c -w -s (-l -f -v are also accepted but ingnored)

openvt_main                                          188     343    +155
vfork_child                                            -      67     +67
not_vt_fd                                              -      23     +23
packed_usage                                       23932   23952     +20
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 2/0 up/down: 265/0)             Total: 265 bytes
   text    data     bss     dec     hex filename
 801344     641    7380  809365   c5995 busybox_old
 801617     641    7380  809638   c5aa6 busybox_unstripped

16 years agofbsplash: support this usage:
Denis Vlasenko [Thu, 27 Mar 2008 13:14:29 +0000 (13:14 -0000)]
fbsplash: support this usage:

mkfifo cmd_pipe
fbsplash -f cmd_pipe .... &
...
echo 33 >cmd_pipe
...
echo 66 >cmd_pipe

Code size: fbsplash_main +116 bytes :(

16 years agofbsplash: fix broken handling of buffered case:
Denis Vlasenko [Wed, 26 Mar 2008 20:06:24 +0000 (20:06 -0000)]
fbsplash: fix broken handling of buffered case:
"{echo 45; echo 33; } | { sleep 1; fbsplash -f - ...; }"

function                                             old     new   delta
fb_drawprogressbar                                     -     413    +413
xmalloc_fgetline                                       -      46     +46
xmalloc_reads                                        184     183      -1
xmalloc_getline                                       46       -     -46
fbsplash_main                                       1472    1030    -442
------------------------------------------------------------------------------
(add/remove: 2/1 grow/shrink: 0/2 up/down: 459/-489)          Total: -30 bytes
   text    data     bss     dec     hex filename
 801181     641    7380  809202   c58f2 busybox_old
 801151     641    7380  809172   c58d4 busybox_unstripped

16 years ago*: more uniform naming: s/xmalloc_getline/xmalloc_fgetline/
Denis Vlasenko [Wed, 26 Mar 2008 20:04:27 +0000 (20:04 -0000)]
*: more uniform naming: s/xmalloc_getline/xmalloc_fgetline/

16 years ago- add fbsplash and CONFIG_ASH_BASH_COMPAT to defconfig
Bernhard Reutner-Fischer [Wed, 26 Mar 2008 16:15:13 +0000 (16:15 -0000)]
- add fbsplash and CONFIG_ASH_BASH_COMPAT to defconfig

16 years agofbsplash: cosmetic comment and Config text fixes; rename .ini -> .cfg
Denis Vlasenko [Wed, 26 Mar 2008 15:12:11 +0000 (15:12 -0000)]
fbsplash: cosmetic comment and Config text fixes; rename .ini -> .cfg

16 years agofbsplash: shrink, better help text; inifile cannot specify image now;
Denis Vlasenko [Wed, 26 Mar 2008 14:57:49 +0000 (14:57 -0000)]
fbsplash: shrink, better help text; inifile cannot specify image now;
image can come from stdin

function                                             old     new   delta
packed_usage                                       23872   23932     +60
static.param_names                                     -      57     +57
fbsplash_main                                       1525    1472     -53
static.param_value                                   100       -    -100
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 1/1 up/down: 117/-153)          Total: -36 bytes
   text    data     bss     dec     hex filename
 801202     641    7380  809223   c5907 busybox_old
 801181     641    7380  809202   c58f2 busybox_unstripped

16 years agopatch: add support for -R. ~ +110 byte. By Pascal Bellard <pascal.bellard AT ads...
Denis Vlasenko [Wed, 26 Mar 2008 13:32:30 +0000 (13:32 -0000)]
patch: add support for -R. ~ +110 byte. By Pascal Bellard <pascal.bellard AT ads-lu.com>
fbsplash: new applet by Michele Sanges <michele.sanges AT otomelara.it

function                                             old     new   delta
fbsplash_main                                          -    1525   +1525
fb_drawfullrectangle                                   -     118    +118
static.param_value                                     -     100    +100
packed_usage                                       23776   23872     +96
applet_names                                        1843    1852      +9
applet_main                                         1120    1124      +4
read_line_input                                     3156    3158      +2
applet_nameofs                                       560     562      +2
applet_install_loc                                   140     141      +1
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 6/0 up/down: 1857/0)           Total: 1857 bytes
   text    data     bss     dec     hex filename
 799233     641    7380  807254   c5156 busybox_old
 801202     641    7380  809223   c5907 busybox_unstripped

16 years agopatch: fix vda's thinko: we need to open new_filename.orig, always!
Denis Vlasenko [Tue, 25 Mar 2008 14:15:39 +0000 (14:15 -0000)]
patch: fix vda's thinko: we need to open new_filename.orig, always!
plug memory leak; add testsuite

patch_main                                          1009     988     -21

16 years agoash: support for && and || in [[ expr ]]; add testsuite checks
Denis Vlasenko [Tue, 25 Mar 2008 07:49:43 +0000 (07:49 -0000)]
ash: support for && and || in [[ expr ]]; add testsuite checks

16 years agoifupdown: support for %retries% (L. Gabriel Somlo <somlo AT cmu.edu>)
Denis Vlasenko [Tue, 25 Mar 2008 06:10:14 +0000 (06:10 -0000)]
ifupdown: support for %retries% (L. Gabriel Somlo <somlo AT cmu.edu>)

16 years agoudhcp: build fix for ppc kernel 2.4.36
Denis Vlasenko [Tue, 25 Mar 2008 06:04:58 +0000 (06:04 -0000)]
udhcp: build fix for ppc kernel 2.4.36

16 years agolpd: small shrink
Denis Vlasenko [Tue, 25 Mar 2008 06:03:19 +0000 (06:03 -0000)]
lpd: small shrink

lpd_main     761     747     -14

16 years agoash: comment about [[; code style fixes. No code changes.
Denis Vlasenko [Tue, 25 Mar 2008 05:51:41 +0000 (05:51 -0000)]
ash: comment about [[; code style fixes. No code changes.

16 years agohelp text shrinkage
Denis Vlasenko [Tue, 25 Mar 2008 03:17:04 +0000 (03:17 -0000)]
help text shrinkage

16 years agodate: even more of help text shrink
Denis Vlasenko [Tue, 25 Mar 2008 02:49:11 +0000 (02:49 -0000)]
date: even more of help text shrink

16 years agodate: make help text more understandable; small shrink
Denis Vlasenko [Tue, 25 Mar 2008 02:43:34 +0000 (02:43 -0000)]
date: make help text more understandable; small shrink

   text    data     bss     dec     hex filename
 799025     641    7380  807046   c5086 busybox_old
 799009     641    7380  807030   c5076 busybox_unstripped

16 years agoash: optional bash-like pattern subst and substring opts
Denis Vlasenko [Tue, 25 Mar 2008 01:17:40 +0000 (01:17 -0000)]
ash: optional bash-like pattern subst and substring opts
(by James Simmons <jsimmons AT infradead.org>)
TODO: write testsuite!

BASH_COMPAT off:
scanleft                                             101     262    +161
subevalvar                                           346     335     -11
BASH_COMPAT on:
subevalvar                                           346    1397   +1051
scanleft                                             101     262    +161
readtoken1                                          2739    2807     +68
cmdputs                                              397     399      +2
static.vstype                                         64      48     -16
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/1 up/down: 1282/-16)         Total: 1266 bytes

16 years agoash: add read -u; fix read -t and read -n; add testsuite entries.
Denis Vlasenko [Tue, 25 Mar 2008 00:07:12 +0000 (00:07 -0000)]
ash: add read -u; fix read -t and read -n; add testsuite entries.

16 years agolpd: debugging by Vladimir: he found vda's breakage (trashed s[0])!
Denis Vlasenko [Mon, 24 Mar 2008 21:19:51 +0000 (21:19 -0000)]
lpd: debugging by Vladimir: he found vda's breakage (trashed s[0])!

16 years agodiff: add testsuite entry for it
Denis Vlasenko [Mon, 24 Mar 2008 20:33:47 +0000 (20:33 -0000)]
diff: add testsuite entry for it

16 years agodiff: improve comments (no code chages)
Denis Vlasenko [Mon, 24 Mar 2008 18:40:32 +0000 (18:40 -0000)]
diff: improve comments (no code chages)

16 years agopatch: support for patches without dates and generated with -U1; shrink
Denis Vlasenko [Mon, 24 Mar 2008 18:18:03 +0000 (18:18 -0000)]
patch: support for patches without dates and generated with -U1; shrink

function                                             old     new   delta
extract_filename                                       -      92     +92
extract_filename_and_free_line                        70       -     -70
patch_main                                          1096    1009     -87
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 0/1 up/down: 92/-157)           Total: -65 bytes

16 years agodiff: exclude D_EMPTY code if there is no support for -r
Denis Vlasenko [Mon, 24 Mar 2008 16:55:13 +0000 (16:55 -0000)]
diff: exclude D_EMPTY code if there is no support for -r

function                                             old     new   delta
diffreg                                             1808    1825     +17
files_differ                                         189     166     -23

16 years agodiff: fix small bug; don't make a copy for "/dev/null" case
Denis Vlasenko [Mon, 24 Mar 2008 16:28:47 +0000 (16:28 -0000)]
diff: fix small bug; don't make a copy for "/dev/null" case

16 years agodiff: reordering and renaming of variables
Denis Vlasenko [Mon, 24 Mar 2008 16:19:21 +0000 (16:19 -0000)]
diff: reordering and renaming of variables

function                                             old     new   delta
diff_main                                            843     848      +5
get_recursive_dirlist                                177     180      +3
add_to_dirlist                                        64      66      +2
change                                               329     326      -3
files_differ                                         182     176      -6
diffreg                                             1823    1808     -15
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/3 up/down: 10/-24)            Total: -14 bytes

16 years agodiff: make a few variables local
Denis Vlasenko [Mon, 24 Mar 2008 15:04:24 +0000 (15:04 -0000)]
diff: make a few variables local

function                                             old     new   delta
diffreg                                             1844    1823     -21

16 years agodiff: make it work on pipes etc (needed for kernel compile)
Denis Vlasenko [Mon, 24 Mar 2008 14:44:59 +0000 (14:44 -0000)]
diff: make it work on pipes etc (needed for kernel compile)

function                                             old     new   delta
get_recursive_dirlist                                  -     177    +177
make_temp                                              -     144    +144
diffreg                                             1818    1844     +26
files_differ                                         175     182      +7
diff_main                                            842     843      +1
get_dir                                              177       -    -177
------------------------------------------------------------------------------
(add/remove: 2/1 grow/shrink: 3/0 up/down: 355/-177)          Total: 178 bytes

16 years agodiff: shrink
Denis Vlasenko [Mon, 24 Mar 2008 14:44:20 +0000 (14:44 -0000)]
diff: shrink

function                                             old     new   delta
check                                                678    1607    +929
files_differ                                           -     175    +175
do_diff                                              436     433      -3
asciifile                                             94      90      -4
print_only                                            23      16      -7
diff_main                                            868     842     -26
prepare                                              339     301     -38
print_status                                         316     178    -138
diffreg                                             2993    1818   -1175
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/7 up/down: 1104/-1391)       Total: -287 bytes

16 years ago*: whitespace fixes, no code changes
Denis Vlasenko [Mon, 24 Mar 2008 02:18:03 +0000 (02:18 -0000)]
*: whitespace fixes, no code changes

16 years agolpr: add more accurate comments
Denis Vlasenko [Mon, 24 Mar 2008 02:05:58 +0000 (02:05 -0000)]
lpr: add more accurate comments
*: trailing whitespace removal

16 years agolpd: much safer against malicious input. Does not fork anymore,
Denis Vlasenko [Mon, 24 Mar 2008 01:52:52 +0000 (01:52 -0000)]
lpd: much safer against malicious input. Does not fork anymore,
as this is not needed.

16 years agolpd: fix OOM vulnerability (was eating arbitrarily large commands)
Denis Vlasenko [Mon, 24 Mar 2008 00:04:42 +0000 (00:04 -0000)]
lpd: fix OOM vulnerability (was eating arbitrarily large commands)

16 years agolpd: maintainer's update: now with spool helpers
Denis Vlasenko [Sun, 23 Mar 2008 23:40:18 +0000 (23:40 -0000)]
lpd: maintainer's update: now with spool helpers

function                                             old     new   delta
exec_helper                                            -     227    +227
sane                                                  66     117     +51
packed_usage                                       23806   23828     +22
lpd_main                                             486     504     +18
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 3/0 up/down: 318/0)             Total: 318 bytes

16 years agopatch: shrink by Pascal Bellard <pascal.bellard AT ads-lu.com> (-80 bytes)
Denis Vlasenko [Sun, 23 Mar 2008 22:55:25 +0000 (22:55 -0000)]
patch: shrink by Pascal Bellard <pascal.bellard AT ads-lu.com> (-80 bytes)
*: removal of #include <getopt.h>

16 years agopscan: fix a typo in help text
Denis Vlasenko [Sun, 23 Mar 2008 18:44:59 +0000 (18:44 -0000)]
pscan: fix a typo in help text

16 years agopscan: add -c, -b: report closed, blocked ports
Denis Vlasenko [Sun, 23 Mar 2008 14:46:14 +0000 (14:46 -0000)]
pscan: add -c, -b: report closed, blocked ports

16 years agotail: fix fallout from tail -c optimization
Denis Vlasenko [Sun, 23 Mar 2008 03:28:40 +0000 (03:28 -0000)]
tail: fix fallout from tail -c optimization

16 years agobump version to 1.11.0.svn
Denis Vlasenko [Sat, 22 Mar 2008 17:46:43 +0000 (17:46 -0000)]
bump version to 1.11.0.svn

16 years agotaskset: fix false failure in testsuite
Denis Vlasenko [Sat, 22 Mar 2008 17:46:16 +0000 (17:46 -0000)]
taskset: fix false failure in testsuite

16 years agowebpage: typo fix
Denis Vlasenko [Fri, 21 Mar 2008 21:22:24 +0000 (21:22 -0000)]
webpage: typo fix

16 years agoBump version to 1.10.0 and announce it on website. 1_10_0
Denis Vlasenko [Fri, 21 Mar 2008 20:50:37 +0000 (20:50 -0000)]
Bump version to 1.10.0 and announce it on website.

16 years agoupdate defconfig
Denis Vlasenko [Fri, 21 Mar 2008 20:37:16 +0000 (20:37 -0000)]
update defconfig

16 years agowebsite: fix double include of menubar
Denis Vlasenko [Fri, 21 Mar 2008 20:06:42 +0000 (20:06 -0000)]
website: fix double include of menubar

16 years agowebpage: fix English
Denis Vlasenko [Fri, 21 Mar 2008 18:52:18 +0000 (18:52 -0000)]
webpage: fix English

16 years agowebsite: announce stable point releases
Denis Vlasenko [Fri, 21 Mar 2008 18:41:21 +0000 (18:41 -0000)]
website: announce stable point releases

16 years ago*: fix build problems found with randomconfig
Denis Vlasenko [Fri, 21 Mar 2008 18:29:01 +0000 (18:29 -0000)]
*: fix build problems found with randomconfig

16 years agoscripts/bb_release: release script (I nearly lost it last time)
Denis Vlasenko [Fri, 21 Mar 2008 09:56:19 +0000 (09:56 -0000)]
scripts/bb_release: release script (I nearly lost it last time)
website: update links to latest releases

16 years ago*: use fopen_or_warn in few more places
Denis Vlasenko [Thu, 20 Mar 2008 21:19:35 +0000 (21:19 -0000)]
*: use fopen_or_warn in few more places

16 years agolet top build without TERMIOS enabled
Paul Fox [Thu, 20 Mar 2008 16:05:02 +0000 (16:05 -0000)]
let top build without TERMIOS enabled

16 years agotermios can be used by either top or more.
Paul Fox [Thu, 20 Mar 2008 16:04:36 +0000 (16:04 -0000)]
termios can be used by either top or more.

16 years agoinetd: use change_identity().
Denis Vlasenko [Thu, 20 Mar 2008 15:12:58 +0000 (15:12 -0000)]
inetd: use change_identity().
libbb: shrink our internal initgroups().
httpd: remove stray 'else' and 'index_page = "index.html"'

function                                             old     new   delta
httpd_main                                           750     743      -7
inetd_main                                          2033    2011     -22
bb_internal_initgroups                               251     228     -23
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-52)             Total: -52 bytes

16 years agosmall NOMMU fixes
Denis Vlasenko [Thu, 20 Mar 2008 14:04:30 +0000 (14:04 -0000)]
small NOMMU fixes

16 years agohdparm: do not lie about supporting -q (quiet)
Denis Vlasenko [Thu, 20 Mar 2008 13:44:50 +0000 (13:44 -0000)]
hdparm: do not lie about supporting -q (quiet)
hdparm: interpret_standby() shrink
hdparm: make HDIO_GET/SET_QDMA #ifdef more complete
 (by Joe Krahn <krahn AT niehs.nih.gov>)

function                                             old     new   delta
packed_usage                                       23798   23776     -22
process_dev                                         5342    5315     -27

16 years agogcc compat fix and warning suppression
Denis Vlasenko [Thu, 20 Mar 2008 13:13:09 +0000 (13:13 -0000)]
gcc compat fix and warning suppression
by Joe Krahn <krahn AT niehs.nih.gov>

16 years agoudhcp: fix wrong order of args here: index_in_strings(opt, dhcp_option_strings);
Denis Vlasenko [Thu, 20 Mar 2008 12:47:01 +0000 (12:47 -0000)]
udhcp: fix wrong order of args here: index_in_strings(opt, dhcp_option_strings);
code shrink while at it:

function                                             old     new   delta
read_config                                          406     323     -83

16 years agotftpd: small trivial shrink
Denis Vlasenko [Wed, 19 Mar 2008 23:37:32 +0000 (23:37 -0000)]
tftpd: small trivial shrink

tftpd_main                                           502     488     -14

16 years agodie_if_bad_username: shrink: 88 -> 77 bytes
Denis Vlasenko [Wed, 19 Mar 2008 23:25:00 +0000 (23:25 -0000)]
die_if_bad_username: shrink:  88 -> 77 bytes

16 years ago...and actually adding new file now...
Denis Vlasenko [Wed, 19 Mar 2008 23:15:55 +0000 (23:15 -0000)]
...and actually adding new file now...

16 years agoadduser/addgroup: check username for invalid chars
Denis Vlasenko [Wed, 19 Mar 2008 23:15:26 +0000 (23:15 -0000)]
adduser/addgroup: check username for invalid chars
(by Tito <farmatito AT tiscali.it>). +129 bytes when enabled.

16 years ago*: s/BB_SIGS_FATAL/BB_FATAL_SIGS/ (latter proved easier to remember)
Denis Vlasenko [Wed, 19 Mar 2008 19:38:46 +0000 (19:38 -0000)]
*: s/BB_SIGS_FATAL/BB_FATAL_SIGS/ (latter proved easier to remember)
top: fix "top </dev/null" case (by Cristian Ionescu-Idbohrn)

16 years agoifupdown: make it NOMMU-capable
Denis Vlasenko [Wed, 19 Mar 2008 16:24:17 +0000 (16:24 -0000)]
ifupdown: make it NOMMU-capable

16 years agotftpd: fix download: we must change user AFTER bind
Denis Vlasenko [Wed, 19 Mar 2008 13:24:13 +0000 (13:24 -0000)]
tftpd: fix download: we must change user AFTER bind

tftp_protocol                                       1466    1468      +2

16 years agotftpd: options -c (allow _new_ files to be uploaded) and -u USER
Denis Vlasenko [Wed, 19 Mar 2008 13:07:00 +0000 (13:07 -0000)]
tftpd: options -c (allow _new_ files to be uploaded) and -u USER

function                                             old     new   delta
tftp_protocol                                       1316    1466    +150
packed_usage                                       23774   23798     +24
tftpd_main                                           509     502      -7
tftp_main                                            311     252     -59
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/2 up/down: 174/-66)           Total: 108 bytes
   text    data     bss     dec     hex filename
 797700     641    7380  805721   c4b59 busybox_old
 797833     641    7380  805854   c4bde busybox_unstripped

16 years agotftp(d): a bit more verbose error reporting
Denis Vlasenko [Wed, 19 Mar 2008 09:43:50 +0000 (09:43 -0000)]
tftp(d): a bit more verbose error reporting

16 years agotftpd: make it emit error packets
Denis Vlasenko [Wed, 19 Mar 2008 05:00:05 +0000 (05:00 -0000)]
tftpd: make it emit error packets
telnetd: use login always, not "sometimes login, sometimes shell"

   text    data     bss     dec     hex filename
 797612     641    7380  805633   c4b01 busybox_old
 797695     641    7380  805716   c4b54 busybox_unstripped

16 years agounlzma: shrink by Pascal Bellard <pascal.bellard AT ads-lu.com>
Denis Vlasenko [Tue, 18 Mar 2008 03:13:25 +0000 (03:13 -0000)]
unlzma: shrink by Pascal Bellard <pascal.bellard AT ads-lu.com>

16 years agomount: #ifdef out MOUNT_LABEL code parts if it is not selected
Denis Vlasenko [Tue, 18 Mar 2008 01:44:52 +0000 (01:44 -0000)]
mount: #ifdef out MOUNT_LABEL code parts if it is not selected

16 years agopatch: don't trash permissions of patched file
Denis Vlasenko [Tue, 18 Mar 2008 01:38:04 +0000 (01:38 -0000)]
patch: don't trash permissions of patched file

16 years agotftpd: make open() check r/w permissions instead of doing it ourself.
Denis Vlasenko [Tue, 18 Mar 2008 01:13:11 +0000 (01:13 -0000)]
tftpd: make open() check r/w permissions instead of doing it ourself.
Add -r "prohibit upload" opt for those lazy people who run tftpd as root.
-40 bytes.

16 years agotftpd: fix bugs spotted by Vladimir
Denis Vlasenko [Tue, 18 Mar 2008 00:11:46 +0000 (00:11 -0000)]
tftpd: fix bugs spotted by Vladimir

16 years agoinit: do not close all descriptors > 2. We were doing it - sometimes.
Denis Vlasenko [Mon, 17 Mar 2008 22:01:42 +0000 (22:01 -0000)]
init: do not close all descriptors > 2. We were doing it - sometimes.
Good choices are "do it, always" or "don't do it". Second is smaller.

16 years agoremove alarm() calls which were functioning as a primitive
Paul Fox [Mon, 17 Mar 2008 15:28:07 +0000 (15:28 -0000)]
remove alarm() calls which were functioning as a primitive
watchdog function, presumably to catch infinite loop bugs.
(control-C can do the same thing, and the alarms were too short in
any case.)  also, switch to sigsetjmp/siglongjmp in order to allow
repeated use of control-C -- otherwise it works once, then not again.

16 years agoinit: do not use bb_sanitize_stdio(), "/dev/null" may be missing (yet)
Denis Vlasenko [Mon, 17 Mar 2008 13:26:51 +0000 (13:26 -0000)]
init: do not use bb_sanitize_stdio(), "/dev/null" may be missing (yet)