oweals/busybox.git
14 years ago*: add/remove safe_, it seems we had a few incorrect uses
Denys Vlasenko [Tue, 12 Jan 2010 11:29:55 +0000 (12:29 +0100)]
*: add/remove safe_, it seems we had a few incorrect uses

function                                             old     new   delta
chat_main                                           1359    1361      +2
microcom_main                                        712     713      +1
ifplugd_main                                        1109    1110      +1
arpping                                              465     466      +1
acpid_main                                           440     441      +1
script_main                                         1069    1067      -2
cgi_io_loop_and_exit                                 594     591      -3
telnet_main                                         1475    1469      -6
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 5/3 up/down: 6/-11)              Total: -5 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agohush: plug a memory leak
Denys Vlasenko [Tue, 12 Jan 2010 05:47:39 +0000 (06:47 +0100)]
hush: plug a memory leak

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: explain algorithm
Denys Vlasenko [Mon, 11 Jan 2010 01:14:04 +0000 (02:14 +0100)]
ntpd: explain algorithm

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: expose more data to the script; more eagerly drop to lower poll
Denys Vlasenko [Mon, 11 Jan 2010 00:31:59 +0000 (01:31 +0100)]
ntpd: expose more data to the script; more eagerly drop to lower poll

function                                             old     new   delta
run_script                                           340     395     +55
recv_and_process_peer_pkt                            817     869     +52
passwd_main                                         1027    1058     +31
ntpd_main                                            845     855     +10
update_local_clock                                   853     823     -30
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/1 up/down: 148/-30)           Total: 118 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agomodprobe: it's not an error if module is already loaded. Closes bug 833
Denys Vlasenko [Sun, 10 Jan 2010 03:52:45 +0000 (04:52 +0100)]
modprobe: it's not an error if module is already loaded. Closes bug 833

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoadduser: create a group for net user too
Denys Vlasenko [Sun, 10 Jan 2010 03:25:05 +0000 (04:25 +0100)]
adduser: create a group for net user too

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agocpio: add a test for recent fix
Denys Vlasenko [Sun, 10 Jan 2010 01:47:32 +0000 (02:47 +0100)]
cpio: add a test for recent fix

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agofind: correct handling of -xdev
Denys Vlasenko [Sun, 10 Jan 2010 01:33:02 +0000 (02:33 +0100)]
find: correct handling of -xdev

function                                             old     new   delta
find_main                                            467     448     -19
fileAction                                          1336    1311     -25

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agopasswd: do not complain about /etc/shadow needlessly
Denys Vlasenko [Sat, 9 Jan 2010 21:21:55 +0000 (22:21 +0100)]
passwd: do not complain about /etc/shadow needlessly

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoadduser: more fixes to "add user to specified group"
Denys Vlasenko [Sat, 9 Jan 2010 19:57:06 +0000 (20:57 +0100)]
adduser: more fixes to "add user to specified group"

function                                             old     new   delta
update_passwd                                       1246    1295     +49
adduser_main                                         727     725      -2

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agocpio: fix -o-less cpio -F FILE
Denys Vlasenko [Sat, 9 Jan 2010 19:25:42 +0000 (20:25 +0100)]
cpio: fix -o-less cpio -F FILE

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agocpio: improve help text more; fix -p and -F interaction
Denys Vlasenko [Sat, 9 Jan 2010 19:23:03 +0000 (20:23 +0100)]
cpio: improve help text more; fix -p and -F interaction

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agocpio: improve help text; document two TODOs
Denys Vlasenko [Sat, 9 Jan 2010 18:56:15 +0000 (19:56 +0100)]
cpio: improve help text; document two TODOs

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years ago*: make it easier to distinquish "struct tm", pointer to one, etc
Denys Vlasenko [Sat, 9 Jan 2010 18:10:49 +0000 (19:10 +0100)]
*: make it easier to distinquish "struct tm", pointer to one, etc

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoadduser: fix a logical inversion which made -G GRP inoperative
Tito Ragusa [Sat, 9 Jan 2010 17:06:40 +0000 (18:06 +0100)]
adduser: fix a logical inversion which made -G GRP inoperative

Signed-off-by: Tito Ragusa <farmatito@tiscali.it>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agodpkg: fix handling of names with leading dots. Closes bug 783
Denys Vlasenko [Fri, 8 Jan 2010 17:07:33 +0000 (18:07 +0100)]
dpkg: fix handling of names with leading dots. Closes bug 783

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agonc: fix "nc -nl -p LPORT RHOST" case (was expecting remote port 0). closes bug 837
Denys Vlasenko [Fri, 8 Jan 2010 15:09:45 +0000 (16:09 +0100)]
nc: fix "nc -nl -p LPORT RHOST" case (was expecting remote port 0). closes bug 837

function                                             old     new   delta
dolisten                                             742     830     +88

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoash: fix for read $IFS splitting. Closes bug 235
Denys Vlasenko [Fri, 8 Jan 2010 14:44:07 +0000 (15:44 +0100)]
ash: fix for read $IFS splitting. Closes bug 235

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoash: fix mishandling of bash-style redirects
Chris Metcalf [Fri, 8 Jan 2010 12:18:06 +0000 (13:18 +0100)]
ash: fix mishandling of bash-style redirects

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoifplugd: clarify -a in help text
Denys Vlasenko [Fri, 8 Jan 2010 12:03:48 +0000 (13:03 +0100)]
ifplugd: clarify -a in help text

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoifplugd: restore auto-ifup unless -a; make iff method less iffy :D
Denys Vlasenko [Fri, 8 Jan 2010 11:27:57 +0000 (12:27 +0100)]
ifplugd: restore auto-ifup unless -a; make iff method less iffy :D

function                                             old     new   delta
up_iface                                               -     112    +112
network_ioctl                                         13      38     +25
detect_link_iff                                       58      71     +13
detect_link                                          143     152      +9
ifplugd_main                                        1107    1109      +2
detect_link_wlan                                     131     125      -6
detect_link_ethtool                                   71      65      -6
detect_link_priv                                      88      80      -8
detect_link_mii                                       88      80      -8
maybe_up_new_iface                                   144      27    -117
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 4/5 up/down: 161/-145)           Total: 16 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years ago*: fix places where we were still using malloc/realloc
Denys Vlasenko [Fri, 8 Jan 2010 08:07:50 +0000 (09:07 +0100)]
*: fix places where we were still using malloc/realloc

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoold_e2fsprogs/e2fsck.c: fix indentation
Denys Vlasenko [Fri, 8 Jan 2010 08:07:25 +0000 (09:07 +0100)]
old_e2fsprogs/e2fsck.c: fix indentation

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoifplugd: mention iff mode in help
Denys Vlasenko [Thu, 7 Jan 2010 13:56:50 +0000 (14:56 +0100)]
ifplugd: mention iff mode in help

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: show at loglevel 2 and export in env current poll interval
Denys Vlasenko [Thu, 7 Jan 2010 10:51:13 +0000 (11:51 +0100)]
ntpd: show at loglevel 2 and export in env current poll interval

function                                             old     new   delta
run_script                                           273     340     +67
ntpd_main                                            832     845     +13

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agohwclock: tiny tweak in comment
Denys Vlasenko [Thu, 7 Jan 2010 09:52:20 +0000 (10:52 +0100)]
hwclock: tiny tweak in comment

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agohwclock: make commented-out code compilable
Denys Vlasenko [Thu, 7 Jan 2010 09:36:41 +0000 (10:36 +0100)]
hwclock: make commented-out code compilable

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agohwclock: disable time diff code; ntpd -S script: do not wait for completion
Denys Vlasenko [Thu, 7 Jan 2010 07:31:46 +0000 (08:31 +0100)]
hwclock: disable time diff code; ntpd -S script: do not wait for completion

function                                             old     new   delta
rtcname                                                4       -      -4
run_script                                           278     273      -5
hwclock_main                                         466     439     -27
read_rtc                                              86      38     -48
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 0/3 up/down: 0/-84)             Total: -84 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agohwclock: make it report system/rtc clock difference
Denys Vlasenko [Wed, 6 Jan 2010 21:43:39 +0000 (22:43 +0100)]
hwclock: make it report system/rtc clock difference

function                                             old     new   delta
rtc_tm2time                                            -      89     +89
read_rtc                                              23      86     +63
rtc_read_tm                                            -      49     +49
hwclock_main                                         428     466     +38
rtcwake_main                                         453     477     +24
rtc_read_time                                        142       -    -142
------------------------------------------------------------------------------
(add/remove: 2/1 grow/shrink: 3/0 up/down: 263/-142)          Total: 121 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agohwclock: fix sizeof bug (used it on pointer, not array); make --systohc exact
Denys Vlasenko [Wed, 6 Jan 2010 17:16:39 +0000 (18:16 +0100)]
hwclock: fix sizeof bug (used it on pointer, not array); make --systohc exact

function                                             old     new   delta
hwclock_main                                         329     428     +99
rtc_adjtime_is_utc                                   138     134      -4
edir                                                 365     354     -11
read_rtc                                              39      23     -16
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/3 up/down: 99/-31)             Total: 68 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: renew cur_time after script run, it can take a while
Denys Vlasenko [Wed, 6 Jan 2010 12:05:08 +0000 (13:05 +0100)]
ntpd: renew cur_time after script run, it can take a while

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: add -S PROG option. This feature is crucial for CMOS/RTC syncronization
Denys Vlasenko [Wed, 6 Jan 2010 11:27:47 +0000 (12:27 +0100)]
ntpd: add -S PROG option. This feature is crucial for CMOS/RTC syncronization

function                                             old     new   delta
run_script                                           112     278    +166
ntpd_main                                            779     825     +46
update_local_clock                                   824     858     +34
packed_usage                                       26518   26540     +22
ntp_init                                             366     371      +5
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 5/0 up/down: 273/0)             Total: 273 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoifplugd: simplify run_script()
Denys Vlasenko [Wed, 6 Jan 2010 11:27:18 +0000 (12:27 +0100)]
ifplugd: simplify run_script()

function                                             old     new   delta
packed_usage                                       26505   26518     +13
run_script                                           158     112     -46

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agolibunarchive: clean up dirty hacks. code shrank as a result
Denys Vlasenko [Wed, 6 Jan 2010 09:53:17 +0000 (10:53 +0100)]
libunarchive: clean up dirty hacks. code shrank as a result

function                                             old     new   delta
cpio_main                                            526     539     +13
init_handle                                           57      58      +1
init_archive_deb_ar                                   34      35      +1
get_header_ar                                        408     409      +1
dpkg_main                                           3900    3901      +1
unpack_package                                       516     515      -1
rpm_main                                            1673    1672      -1
tar_main                                             774     767      -7
get_header_cpio                                      990     972     -18
data_extract_all                                     750     727     -23
get_header_tar                                      1631    1576     -55
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 5/6 up/down: 17/-105)           Total: -88 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agocal: document the location of unicode bug. no code changes
Denys Vlasenko [Wed, 6 Jan 2010 09:18:37 +0000 (10:18 +0100)]
cal: document the location of unicode bug. no code changes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agolibunarchive: trivial code shrink
Denys Vlasenko [Wed, 6 Jan 2010 08:43:11 +0000 (09:43 +0100)]
libunarchive: trivial code shrink

function                                             old     new   delta
header_verbose_list                                  257     237     -20

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agofind: add optional support for -links. +100 bytes
Matheus Izvekov [Wed, 6 Jan 2010 08:19:04 +0000 (09:19 +0100)]
find: add optional support for -links. +100 bytes

Signed-off-by: Matheus Izvekov <mizvekov@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agogzip: add optional support for --long-opts
Matheus Izvekov [Wed, 6 Jan 2010 07:54:49 +0000 (08:54 +0100)]
gzip: add optional support for --long-opts

Signed-off-by: Matheus Izvekov <mizvekov@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoAUTHORS: mention Jie Zhang
Denys Vlasenko [Tue, 5 Jan 2010 11:57:44 +0000 (12:57 +0100)]
AUTHORS: mention Jie Zhang

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agocpio: fix unpacking of names with leading slashes
Denys Vlasenko [Tue, 5 Jan 2010 03:43:21 +0000 (04:43 +0100)]
cpio: fix unpacking of names with leading slashes

function                                             old     new   delta
get_header_cpio                                      968     990     +22
cpio_main                                            533     526      -7

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: make -w less cumbersome to use
Denys Vlasenko [Mon, 4 Jan 2010 22:58:13 +0000 (23:58 +0100)]
ntpd: make -w less cumbersome to use

function                                             old     new   delta
packed_usage                                       26767   26779     +12
recv_and_process_peer_pkt                            808     817      +9

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agofold: unicode support. Based on a patch by Tomas Heinrich <heinrich.tomas@gmail.com>
Denys Vlasenko [Mon, 4 Jan 2010 19:49:58 +0000 (20:49 +0100)]
fold: unicode support. Based on a patch by Tomas Heinrich <heinrich.tomas@gmail.com>

General Unicode support is tweaked to expose unicode_status.

function                                             old     new   delta
init_unicode                                           -      77     +77
write2stdout                                           -      19     +19
adjust_column                                         68      71      +3
unicode_status                                         -       1      +1
unicode_is_enabled                                     1       -      -1
grep_main                                            780     773      -7
fold_main                                            619     552     -67
check_unicode_in_env                                  77       -     -77
------------------------------------------------------------------------------
(add/remove: 3/2 grow/shrink: 1/2 up/down: 100/-152)          Total: -52 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years ago[un]expand: unicode support
Tomas Heinrich [Mon, 4 Jan 2010 15:21:31 +0000 (16:21 +0100)]
[un]expand: unicode support

function                                             old     new   delta
expand_main                                          633     663     +30

Signed-off-by: Tomas Heinrich <heinrich.tomas@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoar: heh, there *was* "-1" already...
Denys Vlasenko [Mon, 4 Jan 2010 13:32:31 +0000 (14:32 +0100)]
ar: heh, there *was* "-1" already...

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoar: fix two bugs, one added by prev comment and other we SEGV with no params
Denys Vlasenko [Mon, 4 Jan 2010 13:30:37 +0000 (14:30 +0100)]
ar: fix two bugs, one added by prev comment and other we SEGV with no params

cpio: use optind less

function                                             old     new   delta
ar_main                                              189     184      -5
cpio_main                                            549     533     -16
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-21)             Total: -21 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years ago*: remove some uses of argc
Denys Vlasenko [Mon, 4 Jan 2010 13:15:38 +0000 (14:15 +0100)]
*: remove some uses of argc

function                                             old     new   delta
whoami_main                                           34      37      +3
logname_main                                          60      63      +3
hostid_main                                           35      38      +3
ttysize_main                                         136     135      -1
nmeter_main                                          673     672      -1
logger_main                                          387     386      -1
uuencode_main                                        330     328      -2
ifupdown_main                                       2125    2123      -2
mesg_main                                            158     155      -3
free_main                                            333     330      -3
cal_main                                             902     899      -3
acpid_main                                           443     440      -3
ar_main                                              196     189      -7
find_main                                            476     467      -9
ifconfig_main                                       1235    1221     -14
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/12 up/down: 9/-49)            Total: -40 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years ago*: make 2 more "int argc"'s unused; more saved if !DESKTOP
Denys Vlasenko [Mon, 4 Jan 2010 12:16:08 +0000 (13:16 +0100)]
*: make 2 more "int argc"'s unused; more saved if !DESKTOP

function                                             old     new   delta
sync_main                                             18      20      +2
tty_main                                              90      87      -3
iprule_list                                           83      79      -4

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agohush: fix exitcodes of killed processes
Denys Vlasenko [Mon, 4 Jan 2010 10:37:09 +0000 (11:37 +0100)]
hush: fix exitcodes of killed processes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: add -w "watch" option, useful for debugging to look at our own data
Denys Vlasenko [Sun, 3 Jan 2010 23:19:13 +0000 (00:19 +0100)]
ntpd: add -w "watch" option, useful for debugging to look at our own data

Also fixed a small buglet discovered using -w

function                                             old     new   delta
recv_and_process_peer_pkt                            895     944     +49
select_and_cluster                                  1132    1150     +18
packed_usage                                       26769   26767      -2

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotar: fix problem handling tarballs with chksums prepended by spaces
Denys Vlasenko [Sun, 3 Jan 2010 22:41:11 +0000 (23:41 +0100)]
tar: fix problem handling tarballs with chksums prepended by spaces

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: fix comment, no code changes
Denys Vlasenko [Sun, 3 Jan 2010 20:52:46 +0000 (21:52 +0100)]
ntpd: fix comment, no code changes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: try to avoid using libm. -1.2k if we succeed
Denys Vlasenko [Sun, 3 Jan 2010 20:06:27 +0000 (21:06 +0100)]
ntpd: try to avoid using libm. -1.2k if we succeed

uclibc's sqrt(x) is pathetic, 411 bytes? it can be ~100...

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: remove an old hack for faster initialization
Denys Vlasenko [Sun, 3 Jan 2010 11:00:26 +0000 (12:00 +0100)]
ntpd: remove an old hack for faster initialization

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: better selection of initial sync; fewer gettimeofday calls
Denys Vlasenko [Sun, 3 Jan 2010 07:59:59 +0000 (08:59 +0100)]
ntpd: better selection of initial sync; fewer gettimeofday calls

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoupdate link to the comp.lang.c FAQ
Denys Vlasenko [Sat, 2 Jan 2010 17:57:45 +0000 (18:57 +0100)]
update link to the comp.lang.c FAQ

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years ago*: do not assign to stdout/stderr, it's not portable.
Denys Vlasenko [Sat, 2 Jan 2010 17:49:22 +0000 (18:49 +0100)]
*: do not assign to stdout/stderr, it's not portable.

Based on patch by Aaron Carroll <xaaronc@gmail.com>

function                                             old     new   delta
time_main                                           1062    1052     -10
cpio_main                                            563     549     -14

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: fix jitter calculations and status propagation
Denys Vlasenko [Sat, 2 Jan 2010 14:57:07 +0000 (15:57 +0100)]
ntpd: fix jitter calculations and status propagation

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agowatch: more compatible screen format
Denys Vlasenko [Sat, 2 Jan 2010 00:57:32 +0000 (01:57 +0100)]
watch: more compatible screen format

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: speed up reaction to poll interval decrease
Denys Vlasenko [Sat, 2 Jan 2010 00:50:16 +0000 (01:50 +0100)]
ntpd: speed up reaction to poll interval decrease

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: improve frequency filtering
Denys Vlasenko [Fri, 1 Jan 2010 23:36:43 +0000 (00:36 +0100)]
ntpd: improve frequency filtering

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: restore forgotten delay sanitization
Denys Vlasenko [Fri, 1 Jan 2010 21:23:27 +0000 (22:23 +0100)]
ntpd: restore forgotten delay sanitization

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: add a comment, no code changes
Denys Vlasenko [Fri, 1 Jan 2010 20:59:49 +0000 (21:59 +0100)]
ntpd: add a comment, no code changes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: disable unused code; show kernel's clock drift correction
Denys Vlasenko [Fri, 1 Jan 2010 18:56:16 +0000 (19:56 +0100)]
ntpd: disable unused code; show kernel's clock drift correction

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: reduce poll interval increase rate
Denys Vlasenko [Fri, 1 Jan 2010 17:12:06 +0000 (18:12 +0100)]
ntpd: reduce poll interval increase rate

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: replace openntp's clock discipline with ntpd's
Denys Vlasenko [Fri, 1 Jan 2010 15:46:17 +0000 (16:46 +0100)]
ntpd: replace openntp's clock discipline with ntpd's

It seems to be much more precise. +2.2k:
   text    data     bss     dec     hex filename
   4670       0       0    4670    123e busybox.t2/networking/ntpd.o
   6838       0       0    6838    1ab6 busybox.t3/networking/ntpd.o

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: ntpd.c -> ntpd_simple.c
Denys Vlasenko [Fri, 1 Jan 2010 15:45:43 +0000 (16:45 +0100)]
ntpd: ntpd.c -> ntpd_simple.c

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: preparatory patches, no functional changes
Denys Vlasenko [Wed, 30 Dec 2009 17:38:05 +0000 (18:38 +0100)]
ntpd: preparatory patches, no functional changes

function                                             old     new   delta
ntp_init                                             354     357      +3
ntpd_main                                           2945    2898     -47

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agodc: make "dc -1.23 ..." work
Denys Vlasenko [Wed, 30 Dec 2009 17:37:08 +0000 (18:37 +0100)]
dc: make "dc -1.23 ..." work

function                                             old     new   delta
stack_machine                                         97     103      +6
dc_main                                              121     110     -11
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/2 up/down: 9/-58)             Total: -49 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: fx incorrect offset display when stepping
Denys Vlasenko [Fri, 18 Dec 2009 17:50:29 +0000 (18:50 +0100)]
ntpd: fx incorrect offset display when stepping

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotar: fix recently added SEGV on "tar" w/o args
Denys Vlasenko [Fri, 18 Dec 2009 11:36:07 +0000 (12:36 +0100)]
tar: fix recently added SEGV on "tar" w/o args

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: field renames and style fixes, no code changes
Denys Vlasenko [Thu, 17 Dec 2009 22:29:33 +0000 (23:29 +0100)]
ntpd: field renames and style fixes, no code changes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: eliminate one time(NULL) call
Denys Vlasenko [Thu, 17 Dec 2009 11:17:41 +0000 (12:17 +0100)]
ntpd: eliminate one time(NULL) call

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotar: add support for --overwrite. +70 bytes.
Denys Vlasenko [Wed, 16 Dec 2009 22:18:59 +0000 (23:18 +0100)]
tar: add support for --overwrite. +70 bytes.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agolibunarchive: move dpkg-specific things into dpkg.c. 0 byte size differences
Denys Vlasenko [Wed, 16 Dec 2009 21:46:01 +0000 (22:46 +0100)]
libunarchive: move dpkg-specific things into dpkg.c. 0 byte size differences

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agohttpd -m: output salted MD5 hash. By (forrest AT hifulltech.com)
Denys Vlasenko [Wed, 16 Dec 2009 01:28:50 +0000 (02:28 +0100)]
httpd -m: output salted MD5 hash. By (forrest AT hifulltech.com)

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agomount: dont include NFS headers if not needed; drop support for Linux <2.2.0
Denys Vlasenko [Wed, 16 Dec 2009 01:06:56 +0000 (02:06 +0100)]
mount: dont include NFS headers if not needed; drop support for Linux <2.2.0

function                                             old     new   delta
nfs_err_stat                                           -      18     +18
nfs_err_errnum                                         -      18     +18
nfs_strerror                                          56      50      -6
nfsmount                                            3567    3541     -26
nfs_errtbl                                            80       -     -80
------------------------------------------------------------------------------
(add/remove: 2/1 grow/shrink: 0/2 up/down: 36/-112)           Total: -76 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agomount: fix goof in last commit; clear errno since we use perror_msg later
Denys Vlasenko [Tue, 15 Dec 2009 15:36:14 +0000 (16:36 +0100)]
mount: fix goof in last commit; clear errno since we use perror_msg later

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoswitch_root: more clear error messages
Denys Vlasenko [Tue, 15 Dec 2009 00:55:55 +0000 (01:55 +0100)]
switch_root: more clear error messages

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agomount: if we mount //host/xxx, add ip=IPADDR to options
Denys Vlasenko [Tue, 15 Dec 2009 00:28:59 +0000 (01:28 +0100)]
mount: if we mount //host/xxx, add ip=IPADDR to options

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoinit: fix logically inverted FEATURE_EXTRA_QUIET check
Denys Vlasenko [Mon, 14 Dec 2009 23:34:59 +0000 (00:34 +0100)]
init: fix logically inverted FEATURE_EXTRA_QUIET check

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoinit: use applet_name instead of "init" - we can be linuxrc
Denys Vlasenko [Mon, 14 Dec 2009 02:16:28 +0000 (03:16 +0100)]
init: use applet_name instead of "init" - we can be linuxrc

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoinit: for paranoid reasons, restore SIGCONT too.
Denys Vlasenko [Mon, 14 Dec 2009 02:08:30 +0000 (03:08 +0100)]
init: for paranoid reasons, restore SIGCONT too.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoinit: fix "while true; do reboot; done" bug. +15 bytes. Closes bug 781
Denys Vlasenko [Mon, 14 Dec 2009 02:03:29 +0000 (03:03 +0100)]
init: fix "while true; do reboot; done" bug. +15 bytes. Closes bug 781

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoinit: make FEATURE_EXTRA_QUIET more consistent. +1 byte
Denys Vlasenko [Mon, 14 Dec 2009 00:32:11 +0000 (01:32 +0100)]
init: make FEATURE_EXTRA_QUIET more consistent. +1 byte

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agocrond: do not log info messages at LOG_ERR. Closes bug 681. +62 bytes.
Denys Vlasenko [Sun, 13 Dec 2009 16:42:49 +0000 (17:42 +0100)]
crond: do not log info messages at LOG_ERR. Closes bug 681. +62 bytes.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agosort: make sort -o FILE FILE (same FILE) work. Closes bug 785. -3 bytes
Denys Vlasenko [Sun, 13 Dec 2009 01:09:22 +0000 (02:09 +0100)]
sort: make sort -o FILE FILE (same FILE) work. Closes bug 785. -3 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agorandomconfig fixes
Denys Vlasenko [Sat, 12 Dec 2009 01:42:35 +0000 (02:42 +0100)]
randomconfig fixes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agomount: needs find_mount_point.o
Denys Vlasenko [Fri, 11 Dec 2009 14:01:54 +0000 (15:01 +0100)]
mount: needs find_mount_point.o

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agostty: code shrink -44 bytes
Denys Vlasenko [Fri, 11 Dec 2009 14:00:17 +0000 (15:00 +0100)]
stty: code shrink -44 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agostty: fix columns command. closes bug 791.
Denys Vlasenko [Fri, 11 Dec 2009 13:17:02 +0000 (14:17 +0100)]
stty: fix columns command. closes bug 791.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agowget: fix signedness in the compare (paranoia only, G.content_len is never < 0)
Denys Vlasenko [Fri, 11 Dec 2009 13:12:28 +0000 (14:12 +0100)]
wget: fix signedness in the compare (paranoia only, G.content_len is never < 0)

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agowget: check for close success; fix chunked; do not bother to send QUIT to ftp
Denys Vlasenko [Fri, 11 Dec 2009 11:36:10 +0000 (12:36 +0100)]
wget: check for close success; fix chunked; do not bother to send QUIT to ftp

Also, random fixes to use %u for unsigned quantities. -14 bytes in wget.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoreplace APP_xxDHCPxx with xxDHCPxx, it's more consistent with the rest
Denys Vlasenko [Fri, 11 Dec 2009 01:21:10 +0000 (02:21 +0100)]
replace APP_xxDHCPxx with xxDHCPxx, it's more consistent with the rest

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agomount: "already mounted" msg appears only if -v
Denys Vlasenko [Thu, 10 Dec 2009 20:32:28 +0000 (21:32 +0100)]
mount: "already mounted" msg appears only if -v

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoash: trivial optimization -6 bytes
Denys Vlasenko [Thu, 10 Dec 2009 20:27:13 +0000 (21:27 +0100)]
ash: trivial optimization -6 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agolsusb: new applet. +400 bytes
Souf Oued [Mon, 7 Dec 2009 00:37:34 +0000 (01:37 +0100)]
lsusb: new applet. +400 bytes

Signed-off-by: Souf Oued <souf_oued@yahoo.fr>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agolspci: new applet. +573 bytes
Souf Oued [Sat, 5 Dec 2009 16:56:25 +0000 (17:56 +0100)]
lspci: new applet. +573 bytes

Signed-off-by: Souf Oued <souf_oued@yahoo.fr>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoreplace /bin/mdev with /sbin/mdev
Denys Vlasenko [Sat, 5 Dec 2009 14:59:05 +0000 (15:59 +0100)]
replace /bin/mdev with /sbin/mdev

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agomount: prevent second mount -a from mounting everything again
Denys Vlasenko [Sat, 5 Dec 2009 03:25:19 +0000 (04:25 +0100)]
mount: prevent second mount -a from mounting everything again

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotrim usage text. -238 bytes
Denys Vlasenko [Sat, 5 Dec 2009 01:44:34 +0000 (02:44 +0100)]
trim usage text. -238 bytes

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