oweals/busybox.git
15 years agoudhcpc: if got IP successfully, disable -n for future renewals
Justin Maggard [Wed, 12 Aug 2009 23:26:17 +0000 (01:26 +0200)]
udhcpc: if got IP successfully, disable -n for future renewals

Signed-off-by: Justin Maggard <jmaggard10@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agovolname: new applet
Matthew Stoltenberg [Wed, 12 Aug 2009 22:59:32 +0000 (00:59 +0200)]
volname: new applet

function                                             old     new   delta
volname_main                                           -      90     +90
packed_usage                                       26373   26387     +14
applet_names                                        2078    2086      +8
applet_main                                         1232    1236      +4
applet_nameofs                                       616     618      +2
applet_install_loc                                   154     155      +1
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 5/0 up/down: 119/0)             Total: 119 bytes

Signed-off-by: Matthew Stoltenberg <d3matt@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agohust test: complain if busybox binary can't be found
Denys Vlasenko [Wed, 12 Aug 2009 19:24:29 +0000 (21:24 +0200)]
hust test: complain if busybox binary can't be found

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agohush: fix \<newline> handling on NOMMU
Denys Vlasenko [Wed, 12 Aug 2009 17:47:44 +0000 (19:47 +0200)]
hush: fix \<newline> handling on NOMMU

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agohush tests: remove the requirement that .config is in ../..
Denys Vlasenko [Wed, 12 Aug 2009 12:53:44 +0000 (14:53 +0200)]
hush tests: remove the requirement that .config is in ../..

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agohush: do not use ps -o in leak_argv1; do not hardcode path in negate
Denys Vlasenko [Wed, 12 Aug 2009 12:21:30 +0000 (14:21 +0200)]
hush: do not use ps -o in leak_argv1; do not hardcode path in negate

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agotail: read only a portion of a file if it's huge. closes bug 551
Denys Vlasenko [Mon, 10 Aug 2009 01:16:18 +0000 (03:16 +0200)]
tail: read only a portion of a file if it's huge. closes bug 551

function                                             old     new   delta
tail_main                                           1494    1526     +32
tail_read                                            125     129      +4

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agofdisk: add handling of avr32. closes bug 555
Denys Vlasenko [Sun, 9 Aug 2009 22:08:35 +0000 (00:08 +0200)]
fdisk: add handling of avr32. closes bug 555

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agotail: fix "tail +N file_shorter_than_N"
Denys Vlasenko [Sun, 9 Aug 2009 20:06:56 +0000 (22:06 +0200)]
tail: fix "tail +N file_shorter_than_N"

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agorandomconfig fixes
Denys Vlasenko [Sat, 8 Aug 2009 01:20:12 +0000 (03:20 +0200)]
randomconfig fixes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agodd: conv=noerror should skip read errors using lseek (bug 539)
Denys Vlasenko [Wed, 5 Aug 2009 21:16:27 +0000 (23:16 +0200)]
dd: conv=noerror should skip read errors using lseek (bug 539)

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agocorrect mode of testsuite/rx.tests
Denys Vlasenko [Mon, 3 Aug 2009 08:36:58 +0000 (10:36 +0200)]
correct mode of testsuite/rx.tests

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agonc: fix nc -ll; report vfork errors; make select loop faster
Tomoya Adachi [Mon, 3 Aug 2009 00:59:22 +0000 (02:59 +0200)]
nc: fix nc -ll; report vfork errors; make select loop faster

function                                             old     new   delta
nc_main                                              933     946     +13

Signed-off-by: Tomoya Adachi <adachi@il.is.s.u-tokyo.ac.jp>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agorx: strip padding from last block. closes bug 501.
Denys Vlasenko [Sun, 2 Aug 2009 17:45:31 +0000 (19:45 +0200)]
rx: strip padding from last block. closes bug 501.

function                                             old     new   delta
rx_main                                              876     974     +98

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agorunsv: run ./finish with parameters (runit compat)
Earl Chew [Sun, 2 Aug 2009 00:23:27 +0000 (02:23 +0200)]
runsv: run ./finish with parameters (runit compat)

function                                             old     new   delta
startservice                                         288     377     +89
runsv_main                                          1763    1783     +20

Signed-off-by: Earl Chew <earl_chew@agilent.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agosvlogd: fix bug 521: use line buffering if any filtering is done
Denys Vlasenko [Sat, 1 Aug 2009 22:55:49 +0000 (00:55 +0200)]
svlogd: fix bug 521: use line buffering if any filtering is done

function                                             old     new   delta
logdirs_reopen                                      1296    1310     +14
svlogd_main                                         1439    1444      +5

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agolibbb: prevent resursion on malloc failure
Denys Vlasenko [Sat, 1 Aug 2009 04:53:03 +0000 (06:53 +0200)]
libbb: prevent resursion on malloc failure

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agorename _BB_SUID_ALWAYS and NEVER into REQUIRE and DROP. No code changes.
Denys Vlasenko [Thu, 30 Jul 2009 10:57:19 +0000 (12:57 +0200)]
rename _BB_SUID_ALWAYS and NEVER into REQUIRE and DROP. No code changes.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoping6: make it setuid just like ping
Denys Vlasenko [Thu, 30 Jul 2009 10:42:16 +0000 (12:42 +0200)]
ping6: make it setuid just like ping

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agomake find_pid_by_name look at /proc/PID/exe too
Alexander Shishkin [Tue, 28 Jul 2009 23:35:13 +0000 (01:35 +0200)]
make find_pid_by_name look at /proc/PID/exe too

function                                             old     new   delta
procps_scan                                         1642    1709     +67
find_pid_by_name                                     193     223     +30
free_procps_scan                                      29      37      +8

Signed-off-by: Alexander Shishkin <virtuoso@slind.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agogrep: fix -E + {range}; fix -o not printing all matches (bug 489)
Denys Vlasenko [Tue, 28 Jul 2009 23:20:09 +0000 (01:20 +0200)]
grep: fix -E  + {range}; fix -o not printing all matches (bug 489)

two different bugs, one with EXTRA_COMPAT, other without.

function                                             old     new   delta
grep_file                                           1132    1129      -3

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agohalt/reboot/poweroff: add a CONFIG_xxx to act SysV compatibly
Alexander Shishkin [Mon, 27 Jul 2009 00:49:35 +0000 (02:49 +0200)]
halt/reboot/poweroff: add a CONFIG_xxx to act SysV compatibly

Signed-off-by: Alexander Shishkin <virtuoso@slind.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agodpkg: delete postrm script after it's run, not before. closes bug 449
Denys Vlasenko [Sat, 25 Jul 2009 09:52:32 +0000 (11:52 +0200)]
dpkg: delete postrm script after it's run, not before. closes bug 449

function                                             old     new   delta
purge_package                                        220     252     +32

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agounzip: try lseek before resorting to reading
Stefani Seibold [Sat, 25 Jul 2009 00:02:22 +0000 (02:02 +0200)]
unzip: try lseek before resorting to reading

function                                             old     new   delta
unzip_skip                                            16      43     +27

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agotftp: add comment, no code changes
Denys Vlasenko [Fri, 24 Jul 2009 23:56:23 +0000 (01:56 +0200)]
tftp: add comment, no code changes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agotftp[d]: fix block# handling on upload with non-default blocksize
Atsushi Nemoto [Fri, 24 Jul 2009 20:34:47 +0000 (22:34 +0200)]
tftp[d]: fix block# handling on upload with non-default blocksize

function                                             old     new   delta
tftp_protocol                                       1590    1618     +28

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoman: use man.config, not only man.conf (man version 1.6f compat)
Denys Vlasenko [Fri, 24 Jul 2009 00:28:12 +0000 (02:28 +0200)]
man: use man.config, not only man.conf (man version 1.6f compat)

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoash: further fixes to debug machinery (closes bug 485)
Denys Vlasenko [Thu, 23 Jul 2009 23:08:03 +0000 (01:08 +0200)]
ash: further fixes to debug machinery (closes bug 485)

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoash: make "jobs" work even in subshells
Denys Vlasenko [Thu, 23 Jul 2009 22:16:59 +0000 (00:16 +0200)]
ash: make "jobs" work even in subshells

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoash: fix debug machinery a bit
Denys Vlasenko [Thu, 23 Jul 2009 20:07:07 +0000 (22:07 +0200)]
ash: fix debug machinery a bit

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agochmod 755 some files in examples/*
Denys Vlasenko [Thu, 23 Jul 2009 19:30:30 +0000 (21:30 +0200)]
chmod 755 some files in examples/*

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agotail: implement -F
Eric Lammerts [Tue, 21 Jul 2009 22:31:27 +0000 (00:31 +0200)]
tail: implement -F

function                                             old     new   delta
tail_main                                           1190    1494    +304

Signed-off-by: Eric Lammerts <busybox@lists.lammerts.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoscriptreplay: show help text if run with no arguments
Denys Vlasenko [Sun, 19 Jul 2009 21:11:45 +0000 (23:11 +0200)]
scriptreplay: show help text if run with no arguments

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agotcpsvd,udpsvd: fix uid/gid printing when run with -u
Denys Vlasenko [Sun, 19 Jul 2009 21:07:13 +0000 (23:07 +0200)]
tcpsvd,udpsvd: fix uid/gid printing when run with -u

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoinit: make comment more understandable. no code changes
Denys Vlasenko [Sun, 19 Jul 2009 12:29:18 +0000 (14:29 +0200)]
init: make comment more understandable. no code changes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoudhcpc: small simplification
Denys Vlasenko [Sun, 19 Jul 2009 02:35:16 +0000 (04:35 +0200)]
udhcpc: small simplification

function                                             old     new   delta
udhcpc_main                                         2401    2398      -3

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agotypo
Denys Vlasenko [Sun, 19 Jul 2009 02:27:10 +0000 (04:27 +0200)]
typo

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoudhcpc: add/edit comments, no code changes
Denys Vlasenko [Sun, 19 Jul 2009 02:24:23 +0000 (04:24 +0200)]
udhcpc: add/edit comments, no code changes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoudhcpc: simplify manual renew (make it more similar to automatic one)
Denys Vlasenko [Sun, 19 Jul 2009 02:07:21 +0000 (04:07 +0200)]
udhcpc: simplify manual renew (make it more similar to automatic one)

function                                             old     new   delta
udhcp_run_script                                     669     673      +4
udhcpc_main                                         2414    2401     -13
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 4/-13)              Total: -9 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoremove msh_function.patch. msh is deprecated
Denys Vlasenko [Sat, 18 Jul 2009 23:09:42 +0000 (01:09 +0200)]
remove msh_function.patch. msh is deprecated

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agosilly whitespace fix
Denys Vlasenko [Sat, 18 Jul 2009 15:26:25 +0000 (17:26 +0200)]
silly whitespace fix

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agofix mount test false positive
Denys Vlasenko [Sat, 18 Jul 2009 15:22:03 +0000 (17:22 +0200)]
fix mount test false positive

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agominor tweaks in testsuite
Denys Vlasenko [Sat, 18 Jul 2009 14:34:01 +0000 (16:34 +0200)]
minor tweaks in testsuite

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agofix mountpoint test to not prevemt mkfs_xxx from making image in any file
Denys Vlasenko [Sat, 18 Jul 2009 14:22:26 +0000 (16:22 +0200)]
fix mountpoint test to not prevemt mkfs_xxx from making image in any file

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoadd SKIP_KNOWN_BUGS and SKIP_INTERNET_TESTS to testsuite
Denys Vlasenko [Sat, 18 Jul 2009 13:19:41 +0000 (15:19 +0200)]
add SKIP_KNOWN_BUGS and SKIP_INTERNET_TESTS to testsuite

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agofix taskset testsuite
Denys Vlasenko [Sat, 18 Jul 2009 11:08:49 +0000 (13:08 +0200)]
fix taskset testsuite

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agocorrect date testsuite to use compatible format
Denys Vlasenko [Sat, 18 Jul 2009 02:54:21 +0000 (04:54 +0200)]
correct date testsuite to use compatible format

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agotouch: implement -t TIME (needed for testsuite)
Denys Vlasenko [Sat, 18 Jul 2009 02:49:20 +0000 (04:49 +0200)]
touch: implement -t TIME (needed for testsuite)

This changes date -d TIME format a bit, makes it more compatible

function                                             old     new   delta
parse_datestr                                        391     618    +227
touch_main                                           360     361      +1
packed_usage                                       26624   26615      -9

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agotouch: implement -d --date (our own testsuite needs that)
Denys Vlasenko [Sat, 18 Jul 2009 01:41:29 +0000 (03:41 +0200)]
touch: implement -d --date (our own testsuite needs that)

function                                             old     new   delta
static.uname_longopts                                  -     137    +137
touch_main                                           231     360    +129
static.touch_longopts                                  -      32     +32
validate_tm_time                                       -      28     +28
packed_usage                                       26616   26624      +8
date_main                                            687     686      -1
static.longopts                                      162       -    -162
------------------------------------------------------------------------------
(add/remove: 3/1 grow/shrink: 2/1 up/down: 334/-163)          Total: 171 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agodate: factor out date parsing (in preparation for touch -d)
Denys Vlasenko [Sat, 18 Jul 2009 01:40:35 +0000 (03:40 +0200)]
date: factor out date parsing (in preparation for touch -d)

function                                             old     new   delta
parse_datestr                                          -     391    +391
sha512_process_block128                             1283    1310     +27
buffer_fill_and_print                                179     196     +17
nexpr                                                826     840     +14
unzip_main                                          1931    1939      +8
popstring                                            134     140      +6
qrealloc                                              33      36      +3
builtin_umask                                        121     123      +2
evalvar                                             1365    1363      -2
changepath                                           194     192      -2
do_compress                                         1698    1688     -10
hwclock_main                                         340     329     -11
cmdputs                                              414     402     -12
identify                                            4343    4329     -14
date_main                                           1186     687    -499
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 7/7 up/down: 468/-550)          Total: -82 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agotest: fix "test !" and "test abc -a !". closes bug 465
Denys Vlasenko [Thu, 16 Jul 2009 22:59:26 +0000 (00:59 +0200)]
test: fix "test !" and "test abc -a !". closes bug 465

function                                             old     new   delta
nexpr                                                826     840     +14

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agowiden "Unicode in environment" check
Denys Vlasenko [Thu, 16 Jul 2009 14:09:25 +0000 (16:09 +0200)]
widen "Unicode in environment" check

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoanother small lineedit fix
Denys Vlasenko [Thu, 16 Jul 2009 12:33:16 +0000 (14:33 +0200)]
another small lineedit fix

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agofix a thinko in lineedit completion code
Denys Vlasenko [Thu, 16 Jul 2009 12:14:34 +0000 (14:14 +0200)]
fix a thinko in lineedit completion code

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agolineedit+unicode: code shrink
Denys Vlasenko [Thu, 16 Jul 2009 01:06:22 +0000 (03:06 +0200)]
lineedit+unicode: code shrink

function                                             old     new   delta
wcrtomb_internal                                     161      83     -78

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agocomment fixes, no code changes
Denys Vlasenko [Thu, 16 Jul 2009 00:27:04 +0000 (02:27 +0200)]
comment fixes, no code changes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agolineedit: code shrink
Denys Vlasenko [Thu, 16 Jul 2009 00:19:39 +0000 (02:19 +0200)]
lineedit: code shrink

function                                             old     new   delta
collapse_pos                                           -      77     +77
read_line_input                                     4755    4757      +2
add_quote_for_spec_chars                              75      71      -4
find_match                                          1283     892    -391

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoremove trailing whitespace
Denys Vlasenko [Wed, 15 Jul 2009 18:02:19 +0000 (20:02 +0200)]
remove trailing whitespace

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agorandomconfig fixes
Denys Vlasenko [Wed, 15 Jul 2009 16:27:47 +0000 (18:27 +0200)]
randomconfig fixes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agocomment fix, no code changes
Denys Vlasenko [Wed, 15 Jul 2009 00:14:15 +0000 (02:14 +0200)]
comment fix, no code changes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agobusybox --install [-s] [DIR]: allow a parameter - destination DIR
Denys Vlasenko [Tue, 14 Jul 2009 22:35:34 +0000 (00:35 +0200)]
busybox --install [-s] [DIR]: allow a parameter - destination DIR

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agosv: fix "sv o SRV; ...; sv d SRV" (bug 461) + code shrink
Denys Vlasenko [Tue, 14 Jul 2009 22:24:08 +0000 (00:24 +0200)]
sv: fix "sv o SRV; ...; sv d SRV" (bug 461) + code shrink

function                                             old     new   delta
status                                               120     118      -2
control                                              159     126     -33
sv_main                                             1222    1183     -39

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agorunsv: rename field in a struct to not collide with other name
Denys Vlasenko [Tue, 14 Jul 2009 22:21:49 +0000 (00:21 +0200)]
runsv: rename field in a struct to not collide with other name

no code changes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agosed: simpler fix for recent GNU compat stuff (by Rob Landley)
Denys Vlasenko [Mon, 13 Jul 2009 23:02:57 +0000 (01:02 +0200)]
sed: simpler fix for recent GNU compat stuff (by Rob Landley)

function                                             old     new   delta
process_files                                       2120    2102     -18

Signed-off-by: Rob Landley <rob@landley.net>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoadd comment about /etc/gshadow, no code changes
Denys Vlasenko [Sun, 12 Jul 2009 23:27:47 +0000 (01:27 +0200)]
add comment about /etc/gshadow, no code changes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agopasswd + /etc/shadow: chage "change time" field too
Denys Vlasenko [Sun, 12 Jul 2009 23:15:30 +0000 (01:15 +0200)]
passwd + /etc/shadow: chage "change time" field too

function                                             old     new   delta
update_passwd                                       1171    1270     +99

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agolineedit+unicode: make TAB completion work again
Denys Vlasenko [Sun, 12 Jul 2009 00:50:35 +0000 (02:50 +0200)]
lineedit+unicode: make TAB completion work again

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agovi: small code shrink
Denys Vlasenko [Sat, 11 Jul 2009 22:51:15 +0000 (00:51 +0200)]
vi: small code shrink

function                                             old     new   delta
vi_word_motion                                       185     165     -20

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agotweaking Unicode support
Denys Vlasenko [Sat, 11 Jul 2009 20:26:48 +0000 (22:26 +0200)]
tweaking Unicode support

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoadded simplified Unicode support for non-locale-enabled builds
Denys Vlasenko [Sat, 11 Jul 2009 19:36:13 +0000 (21:36 +0200)]
added simplified Unicode support for non-locale-enabled builds

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoash: fixes in debug printouts
Denys Vlasenko [Sat, 11 Jul 2009 13:31:59 +0000 (15:31 +0200)]
ash: fixes in debug printouts

Signed-off-by: Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agolineedit: implement Unicode-aware line editing (optional)
Denys Vlasenko [Fri, 10 Jul 2009 16:40:49 +0000 (18:40 +0200)]
lineedit: implement Unicode-aware line editing (optional)

When off:

function                                             old     new   delta
input_delete                                         133     140      +7
vi_word_motion                                       236     240      +4
vi_Back_motion                                        89      92      +3
vi_end_motion                                        223     225      +2
cmdedit_set_out_char                                  74      76      +2
vi_back_motion                                       198     199      +1
vi_Word_motion                                        87      88      +1
vi_End_motion                                         92      86      -6
read_line_input                                     6293    6270     -23
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 7/2 up/down: 20/-29)             Total: -9 bytes

When on:

lineedit_read_key                                    146     272    +126
BB_PUTCHAR                                             -      94     +94
read_line_input                                     6293    6351     +58
save_string                                            -      43     +43
wcstombs                                               -      38     +38
mbstowcs                                               -      38     +38
save_command_ps_at_cur_history                        65      93     +28
input_delete                                         133     148     +15
vi_Back_motion                                        89      90      +1
vi_Word_motion                                        87      86      -1
cmdedit_set_out_char                                  74      73      -1
vi_End_motion                                         92      84      -8
vi_back_motion                                       198     187     -11
vi_word_motion                                       236     206     -30
vi_end_motion                                        223     184     -39
------------------------------------------------------------------------------
(add/remove: 4/0 grow/shrink: 5/6 up/down: 441/-90)           Total: 351 bytes

There is one TODO and maybe some bugs :)

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agofix fallout from BSD patches
Denys Vlasenko [Fri, 10 Jul 2009 16:37:06 +0000 (18:37 +0200)]
fix fallout from BSD patches

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agodmesg: try to detect buffer size
Denys Vlasenko [Fri, 10 Jul 2009 12:14:14 +0000 (14:14 +0200)]
dmesg: try to detect buffer size

function                                             old     new   delta
dmesg_main                                           214     246     +32

Signed-off-by: Randy Robertson <rmrobert@vmware.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agosed: deal with peculiar behavior of '2d;2,1p' in GNU sed
Denys Vlasenko [Fri, 10 Jul 2009 09:55:20 +0000 (11:55 +0200)]
sed: deal with peculiar behavior of '2d;2,1p' in GNU sed

function                                             old     new   delta
process_files                                       2173    2120     -53

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agorestore shadow.h independence
Mike Frysinger [Thu, 9 Jul 2009 05:33:20 +0000 (01:33 -0400)]
restore shadow.h independence

Commit ee5dce336597 made busybox require shadow.h from the toolchain even
if the config opted for the internal busybox implementation.  This makes
building with toolchains that lack shadow support impossible.  Since the
merge only saved us from duplicating a simple structure (whose ABI isn't
going to ever change), restore the logic for complete busybox shadow
independence by reverting that previous commit slightly.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agodepmod.pl: recurse through module dependencies
Mike Frysinger [Thu, 9 Jul 2009 04:28:48 +0000 (00:28 -0400)]
depmod.pl: recurse through module dependencies

The previous fix up loaded dependencies two deep, but really that was an
incomplete fix as we need to load dependencies all the way down.  So change
the code to run recursively through all dependencies.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agotar: handle 256-base encoding in mtime
Denys Vlasenko [Wed, 8 Jul 2009 16:58:09 +0000 (18:58 +0200)]
tar: handle 256-base encoding in mtime

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agomove libc related stuff out of platform.h
Denys Vlasenko [Wed, 8 Jul 2009 00:58:38 +0000 (02:58 +0200)]
move libc related stuff out of platform.h

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoudhcpd: fix a bug in add_lease where it was reading at [-1]
Denys Vlasenko [Tue, 7 Jul 2009 12:59:30 +0000 (14:59 +0200)]
udhcpd: fix a bug in add_lease where it was reading at [-1]

It is not correct when we read lease file!

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoreformime: small code and style fixes. no material changes in behavior.
Denys Vlasenko [Tue, 7 Jul 2009 05:52:34 +0000 (07:52 +0200)]
reformime: small code and style fixes. no material changes in behavior.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agotweak MD5 config text
Denys Vlasenko [Mon, 6 Jul 2009 21:24:20 +0000 (23:24 +0200)]
tweak MD5 config text

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agopgrep/pkill: support -s and -P options
Denys Vlasenko [Sun, 5 Jul 2009 22:00:12 +0000 (00:00 +0200)]
pgrep/pkill: support -s and -P options

function                                             old     new   delta
pgrep_main                                           510     580     +70
packed_usage                                       26575   26616     +41
act                                                  234     236      +2
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 113/0)             Total: 113 bytes

Signed-off-by: Rob Landley <rob@landley.net>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agotweak sendmail and makemime help texts
Denys Vlasenko [Sun, 5 Jul 2009 19:46:37 +0000 (21:46 +0200)]
tweak sendmail and makemime help texts

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agolibbb/sha: #undef macro names before #defining them.
Denys Vlasenko [Sun, 5 Jul 2009 18:34:38 +0000 (20:34 +0200)]
libbb/sha: #undef macro names before #defining them.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agocp: make "non-POSIX" cp a bit more consistent
Denys Vlasenko [Sun, 5 Jul 2009 11:24:17 +0000 (13:24 +0200)]
cp: make "non-POSIX" cp a bit more consistent

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agocp: by popular demand, make it POSIX compliant (but less safe)
Denys Vlasenko [Sun, 5 Jul 2009 10:49:29 +0000 (12:49 +0200)]
cp: by popular demand, make it POSIX compliant (but less safe)

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agodf: fix "df /"
Denys Vlasenko [Sun, 5 Jul 2009 02:50:36 +0000 (04:50 +0200)]
df: fix "df /"

also, clean up mount checks in mkfs/fsck.

function                                             old     new   delta
find_mount_point                                     243     261     +18
sha1_process_block64                                 497     510     +13
find_main                                            436     444      +8
display_speed                                         85      90      +5
df_main                                              795     793      -2
parse_command                                       1463    1460      -3
static.ignored_mounts                                  8       -      -8
mkfs_minix_main                                     2962    2937     -25
fsck_minix_main                                     3065    2970     -95
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 4/4 up/down: 44/-133)           Total: -89 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoPatches to enable FreeBSD build
Denys Vlasenko [Sun, 5 Jul 2009 01:34:12 +0000 (03:34 +0200)]
Patches to enable FreeBSD build

platform.h: fix wrong check for endianness, fix lchown
aliasing to chown on uclibc.

Code seems to not be affected in my testing.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agofix dependencies of FEATURE_GETOPT_LONG
Denys Vlasenko [Sat, 4 Jul 2009 14:50:43 +0000 (16:50 +0200)]
fix dependencies of FEATURE_GETOPT_LONG

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agops: conditionally support additional -o FIELDs
Denys Vlasenko [Fri, 3 Jul 2009 20:16:17 +0000 (22:16 +0200)]
ps: conditionally support additional -o FIELDs

function                                             old     new   delta
procps_scan                                         1409    1642    +233
out_spec                                             220     300     +80
func_ruser                                             -      36     +36
func_rgroup                                            -      36     +36
func_group                                            13      49     +36
func_nice                                              -      29     +29
buffer_fill_and_print                                179     196     +17
send_tree                                            355     360      +5
mkfs_vfat_main                                      1604    1609      +5
display_speed                                         85      90      +5
scriptreplay_main                                    194     197      +3
find_out_spec                                         55      58      +3
changepath                                           192     195      +3
sha1_process_block64                                 497     484     -13
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 10/1 up/down: 491/-13)          Total: 478 bytes

Signed-off-by: David Krakov <krakov@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agosvlogd: do not overrun read buffer (fixes bug 439)
Denys Vlasenko [Fri, 3 Jul 2009 16:31:23 +0000 (18:31 +0200)]
svlogd: do not overrun read buffer (fixes bug 439)

function                                             old     new   delta
rotate                                               513     534     +21
logdirs_reopen                                      1291    1296      +5
processorstart                                       409     385     -24

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoudhcpc: support option 0x79 (static routes) (part of bug 341)
Denys Vlasenko [Fri, 3 Jul 2009 16:14:03 +0000 (18:14 +0200)]
udhcpc: support option 0x79 (static routes) (part of bug 341)

function                                             old     new   delta
xmalloc_optname_optval                                 -     583    +583
dhcp_option_strings                                  258     266      +8
dhcp_options                                          70      72      +2
len_of_option_as_string                               11      12      +1
dhcp_option_lengths                                   11      12      +1
udhcp_run_script                                    1187     669    -518
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 4/1 up/down: 595/-518)           Total: 77 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoudhcp: dname_dec may return NULL, account for that case
Denys Vlasenko [Fri, 3 Jul 2009 14:59:59 +0000 (16:59 +0200)]
udhcp: dname_dec may return NULL, account for that case

Other random cleanips included...

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoMerge branch 'master' of git+ssh://vda@busybox.net/var/lib/git/busybox
Denys Vlasenko [Fri, 3 Jul 2009 14:59:37 +0000 (16:59 +0200)]
Merge branch 'master' of git+ssh://vda@busybox.net/var/lib/git/busybox

15 years agols: make --color more compatible with coreutils
Denys Vlasenko [Fri, 3 Jul 2009 10:22:19 +0000 (12:22 +0200)]
ls: make --color more compatible with coreutils

function                                             old     new   delta
static.color_str                                       -      34     +34
static.ls_longopts                                     -       9      +9
ls_color_opt                                           9       -      -9
ls_main                                              865     843     -22
------------------------------------------------------------------------------
(add/remove: 2/1 grow/shrink: 0/1 up/down: 43/-31)             Total: 12 bytes
   text    data     bss     dec     hex filename
 820145     450    7692  828287   ca37f busybox_old
 820144     450    7692  828286   ca37e busybox_unstripped

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agotest commit
Bernhard Reutner-Fischer [Thu, 2 Jul 2009 23:19:49 +0000 (01:19 +0200)]
test commit

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
15 years agotest commit
Bernhard Reutner-Fischer [Thu, 2 Jul 2009 23:15:54 +0000 (01:15 +0200)]
test commit

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
15 years agotest commit
Bernhard Reutner-Fischer [Thu, 2 Jul 2009 23:06:15 +0000 (01:06 +0200)]
test commit

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
15 years agols: fix --color handling. Closes bug 435.
Denys Vlasenko [Thu, 2 Jul 2009 12:25:51 +0000 (14:25 +0200)]
ls: fix --color handling. Closes bug 435.

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