oweals/busybox.git
14 years agodnsd: fix one big-endian goof; add a TODO about RA bit
Denys Vlasenko [Sat, 6 Feb 2010 21:48:10 +0000 (22:48 +0100)]
dnsd: fix one big-endian goof; add a TODO about RA bit

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoadduser: copy /etc/skel to mew homes. +100 bytes
Denys Vlasenko [Sat, 6 Feb 2010 20:50:59 +0000 (21:50 +0100)]
adduser: copy /etc/skel to mew homes. +100 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agocosmetic fixes
Denys Vlasenko [Sat, 6 Feb 2010 20:11:49 +0000 (21:11 +0100)]
cosmetic fixes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agohexdump: fix "hexdump nonexistent_file" handling
Denys Vlasenko [Sat, 6 Feb 2010 12:53:21 +0000 (13:53 +0100)]
hexdump: fix "hexdump nonexistent_file" handling

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agowhitespace fix
Denys Vlasenko [Sat, 6 Feb 2010 12:25:12 +0000 (13:25 +0100)]
whitespace fix

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoudhcp[cd]: fix aliasing warnings
Denys Vlasenko [Fri, 5 Feb 2010 14:35:05 +0000 (15:35 +0100)]
udhcp[cd]: fix aliasing warnings

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoawk: remove wrong comment
Denys Vlasenko [Fri, 5 Feb 2010 13:54:22 +0000 (14:54 +0100)]
awk: remove wrong comment

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years ago*: fix 1/4 remaining aliasing warnings
Denys Vlasenko [Fri, 5 Feb 2010 13:40:23 +0000 (14:40 +0100)]
*: fix 1/4 remaining aliasing warnings

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years ago*: eliminate more aliasing warnings
Denys Vlasenko [Thu, 4 Feb 2010 17:41:18 +0000 (18:41 +0100)]
*: eliminate more aliasing warnings

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years ago*: suppress ~60% of "aliased warnings" on gcc-4.4.1
Denys Vlasenko [Thu, 4 Feb 2010 14:00:15 +0000 (15:00 +0100)]
*: suppress ~60% of "aliased warnings" on gcc-4.4.1

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agodiff: more compiler compat fixes. no code changes
Dan Fandrich [Thu, 4 Feb 2010 03:04:56 +0000 (04:04 +0100)]
diff: more compiler compat fixes. no code changes

Signed-off-by: Dan Fandrich <dan@coneharvesters.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agodiff: make code more portable
Dan Fandrich [Wed, 3 Feb 2010 23:10:30 +0000 (00:10 +0100)]
diff: make code more portable

function                                             old     new   delta
create_J                                            1835    1849     +14
diffreg                                             1268    1255     -13

Signed-off-by: Dan Fandrich <dan@coneharvesters.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agolibbb: fix bb_ask() to operate on correct fd
Denys Vlasenko [Wed, 3 Feb 2010 11:17:06 +0000 (12:17 +0100)]
libbb: fix bb_ask() to operate on correct fd

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agobloat-o-meter: teach it to handle aliases
Bernhard Reutner-Fischer [Sat, 30 Jan 2010 17:01:17 +0000 (18:01 +0100)]
bloat-o-meter: teach it to handle aliases

Previously aliases were counted as full implementation taking up space:
setservent                                            64      55      -9
__GI_setservent                                       64      55      -9
getservent_r                                         420     319    -101
__GI_getservent_r                                    420     319    -101

Teach it to properly handle aliases.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agomkfs_ext2: fix bad comment. no code changes
Denys Vlasenko [Tue, 2 Feb 2010 11:54:19 +0000 (12:54 +0100)]
mkfs_ext2: fix bad comment. no code changes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agomore thorough fix for systems with strange socklen_t
Denys Vlasenko [Tue, 2 Feb 2010 11:45:38 +0000 (12:45 +0100)]
more thorough fix for systems with strange socklen_t

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agostat: get rid on intmax_t
Denys Vlasenko [Tue, 2 Feb 2010 02:08:57 +0000 (03:08 +0100)]
stat: get rid on intmax_t

function                                             old     new   delta
print_it                                             225     218      -7
print_stat                                           919     889     -30
print_statfs                                         370     339     -31
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-68)             Total: -68 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotftpd: fix file creation with bogus mode. Closes bug 1021.
Denys Vlasenko [Tue, 2 Feb 2010 00:01:40 +0000 (01:01 +0100)]
tftpd: fix file creation with bogus mode. Closes bug 1021.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agomkXXXX: unify [KBYTES] parameter handling (added it to mkswap)
Denys Vlasenko [Mon, 1 Feb 2010 22:48:27 +0000 (23:48 +0100)]
mkXXXX: unify [KBYTES] parameter handling (added it to mkswap)

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agodocs/unicode.txt: added more TODOs
Denys Vlasenko [Mon, 1 Feb 2010 21:35:30 +0000 (22:35 +0100)]
docs/unicode.txt: added more TODOs

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoadd unicode.txt
Denys Vlasenko [Mon, 1 Feb 2010 14:58:08 +0000 (15:58 +0100)]
add unicode.txt

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoremove now-unneeded memset
Denys Vlasenko [Mon, 1 Feb 2010 12:45:04 +0000 (13:45 +0100)]
remove now-unneeded memset

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agomake echo -e "foo\nfoo" | passwd USER work
Denys Vlasenko [Mon, 1 Feb 2010 03:55:30 +0000 (04:55 +0100)]
make  echo -e "foo\nfoo" | passwd USER  work

Suggested by Michael Zhu (linuxsir320 AT gmail.com)

function                                             old     new   delta
bb_ask                                               333     340      +7

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agobetter wording in Config
Denys Vlasenko [Sun, 31 Jan 2010 17:12:57 +0000 (18:12 +0100)]
better wording in Config

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agounicode: exclude FDD0..FDEF range too
Denys Vlasenko [Sun, 31 Jan 2010 15:34:37 +0000 (16:34 +0100)]
unicode: exclude FDD0..FDEF range too

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoexclude more invalid unicode chars
Denys Vlasenko [Sun, 31 Jan 2010 15:04:30 +0000 (16:04 +0100)]
exclude more invalid unicode chars

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotypo fix
Denys Vlasenko [Sun, 31 Jan 2010 04:57:47 +0000 (05:57 +0100)]
typo fix

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agols: fix handling of broken unicode sequences
Denys Vlasenko [Sun, 31 Jan 2010 04:55:55 +0000 (05:55 +0100)]
ls: fix handling of broken unicode sequences

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agols: unicode fixes
Denys Vlasenko [Sun, 31 Jan 2010 04:15:38 +0000 (05:15 +0100)]
ls: unicode fixes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agocal: add a unicode test
Denys Vlasenko [Sat, 30 Jan 2010 23:10:18 +0000 (00:10 +0100)]
cal: add a unicode test

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agofurther work on unicodization
Denys Vlasenko [Sat, 30 Jan 2010 22:16:21 +0000 (23:16 +0100)]
further work on unicodization

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agofix Unicode config option limits and some comments in less
Denys Vlasenko [Sat, 30 Jan 2010 17:09:18 +0000 (18:09 +0100)]
fix Unicode config option limits and some comments in less

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agosyslog: remove stray umask(0)
Denys Vlasenko [Fri, 29 Jan 2010 15:44:48 +0000 (16:44 +0100)]
syslog: remove stray umask(0)

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoExample Unicode files
Denys Vlasenko [Fri, 29 Jan 2010 08:12:31 +0000 (09:12 +0100)]
Example Unicode files

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agomore fine-grained Unicode support
Denys Vlasenko [Fri, 29 Jan 2010 08:11:47 +0000 (09:11 +0100)]
more fine-grained Unicode support

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agostyle fixes, no code changes
Denys Vlasenko [Thu, 28 Jan 2010 11:30:24 +0000 (12:30 +0100)]
style fixes, no code changes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years ago*: style fixes. no code changes (verified with objdump)
Denys Vlasenko [Thu, 28 Jan 2010 01:24:24 +0000 (02:24 +0100)]
*: style fixes. no code changes (verified with objdump)

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agohush: more "greppable" field names. no code changes
Denys Vlasenko [Thu, 28 Jan 2010 00:57:05 +0000 (01:57 +0100)]
hush: more "greppable" field names. no code changes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoupdate TODO_config_nommu
Denys Vlasenko [Wed, 27 Jan 2010 20:03:34 +0000 (21:03 +0100)]
update TODO_config_nommu

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoupdate defconfig
Denys Vlasenko [Wed, 27 Jan 2010 19:57:00 +0000 (20:57 +0100)]
update defconfig

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agolibiproute: eliminate unused fields in struct filter_t's; style fixes
Denys Vlasenko [Tue, 26 Jan 2010 10:03:16 +0000 (11:03 +0100)]
libiproute: eliminate unused fields in struct filter_t's; style fixes

function                                             old     new   delta
print_route                                         1603    1588     -15
iproute_list_or_flush                               1254    1230     -24
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-39)             Total: -39 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agostart 1.17.x development
Denys Vlasenko [Tue, 26 Jan 2010 07:34:49 +0000 (08:34 +0100)]
start 1.17.x development

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoBump version to 1.16.0 1_16_0
Denys Vlasenko [Tue, 26 Jan 2010 07:19:00 +0000 (08:19 +0100)]
Bump version to 1.16.0

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agomodprobe: protect against possible SEGV
Denys Vlasenko [Tue, 26 Jan 2010 07:17:45 +0000 (08:17 +0100)]
modprobe: protect against possible SEGV

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agowhitespace fix
Denys Vlasenko [Tue, 26 Jan 2010 07:04:18 +0000 (08:04 +0100)]
whitespace fix

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: explain why scripts can be run in quick succession
Denys Vlasenko [Mon, 25 Jan 2010 18:30:16 +0000 (19:30 +0100)]
ntpd: explain why scripts can be run in quick succession

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agowhitespace fixes
Denys Vlasenko [Mon, 25 Jan 2010 12:39:24 +0000 (13:39 +0100)]
whitespace fixes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agounicode_wcwidth.c: shrink
Denys Vlasenko [Mon, 25 Jan 2010 12:24:06 +0000 (13:24 +0100)]
unicode_wcwidth.c: shrink

function                                             old     new   delta
static.combining1                                      -     184    +184
in_interval_table                                      -      78     +78
bb_wcwidth                                           328     406     +78
in_table                                              78       -     -78
static.combining                                     516     148    -368
------------------------------------------------------------------------------
(add/remove: 2/1 grow/shrink: 1/1 up/down: 340/-446)         Total: -106 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotestsuite-discovered fixes
Denys Vlasenko [Mon, 25 Jan 2010 01:00:16 +0000 (02:00 +0100)]
testsuite-discovered fixes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoscripts/randomtest: tweaks for non-eliminable warnings and broken static glibc
Denys Vlasenko [Sun, 24 Jan 2010 22:33:06 +0000 (23:33 +0100)]
scripts/randomtest: tweaks for non-eliminable warnings and broken static glibc

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agorandomconfig fixes
Denys Vlasenko [Sun, 24 Jan 2010 21:52:21 +0000 (22:52 +0100)]
randomconfig fixes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agolibbb: better unicode width support. Hopefully fixes bug 839.
Denys Vlasenko [Sun, 24 Jan 2010 06:44:03 +0000 (07:44 +0100)]
libbb: better unicode width support. Hopefully fixes bug 839.

Also opens up a possibility to make other unicode stuff smaller
and more correct later. but:

function                                             old     new   delta
static.combining                                       -     516    +516
bb_wcwidth                                             -     328    +328
unicode_cut_nchars                                     -     141    +141
mbstowc_internal                                       -      93     +93
in_table                                               -      78     +78
cal_main                                             899     961     +62
static.combining0x10000                                -      40     +40
unicode_strlen                                         -      31     +31
bb_mbstrlen                                           31       -     -31
bb_mbstowcs                                          173     102     -71
------------------------------------------------------------------------------
(add/remove: 7/1 grow/shrink: 1/1 up/down: 1289/-102)        Total: 1187 bytes

Uses code of Markus Kuhn, which is in public domain:
http://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c
"Permission to use, copy, modify, and distribute this software
 for any purpose and without fee is hereby granted. The author
 disclaims all warranties with regard to this software."

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agodate: introduce FEATURE_DATE_COMPAT; shrink
Denys Vlasenko [Sat, 23 Jan 2010 22:37:52 +0000 (23:37 +0100)]
date: introduce FEATURE_DATE_COMPAT; shrink

function                                             old     new   delta
date_main                                            889     862     -27

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoping: use ICMP_MINLEN
Bernhard Reutner-Fischer [Sat, 23 Jan 2010 11:52:40 +0000 (12:52 +0100)]
ping: use ICMP_MINLEN

no code changes

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agofbset: add possibility to set timing and sync polarity
Michael Grzeschik [Sat, 23 Jan 2010 02:40:28 +0000 (03:40 +0100)]
fbset: add possibility to set timing and sync polarity

function                                             old     new   delta
copy_changed_values                                    -      48     +48
copy_if_gt0                                            -      27     +27
fbset_main                                          1268    1235     -33
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 0/1 up/down: 75/-33)             Total: 42 bytes

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agochown: -2 bytes
Denys Vlasenko [Fri, 22 Jan 2010 23:13:32 +0000 (00:13 +0100)]
chown: -2 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agochown: support long options
Matheus Izvekov [Thu, 21 Jan 2010 21:30:25 +0000 (19:30 -0200)]
chown: support long options

function                                             old     new   delta
chown_longopts                                         -      81     +81
chown_main                                           182     192     +10

Signed-off-by: Matheus Izvekov <mizvekov@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agopatch: accept and ignore -g NUM
Denys Vlasenko [Fri, 22 Jan 2010 04:10:33 +0000 (05:10 +0100)]
patch: accept and ignore -g NUM

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agodiff: fix flag -B, cleanups and a couple more tests V2
Matheus Izvekov [Thu, 21 Jan 2010 20:58:03 +0000 (18:58 -0200)]
diff: fix flag -B, cleanups and a couple more tests V2

function                                             old     new   delta
diffreg                                             1157    1268    +111
uni_range                                             51       -     -51

Signed-off-by: Matheus Izvekov <mizvekov@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agopatch: add more long opts; but remove -g for now
Denys Vlasenko [Fri, 22 Jan 2010 03:17:07 +0000 (04:17 +0100)]
patch: add more long opts; but remove -g for now

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years ago*: small code shrinks and compile fix for unicode
Denys Vlasenko [Wed, 20 Jan 2010 01:51:09 +0000 (02:51 +0100)]
*: small code shrinks and compile fix for unicode

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotar: handle -m (--touch) switch, enabled by FEATURE_TAR_NOPRESERVE_TIME
Mikhail Gusarov [Tue, 19 Jan 2010 14:22:30 +0000 (20:22 +0600)]
tar: handle -m (--touch) switch, enabled by FEATURE_TAR_NOPRESERVE_TIME

function                                             old     new   delta
.rodata                                             2731    2779     +48
usage_messages                                       432     471     +39
tar_main                                             603     614     +11
tar_longopts                                         211     219      +8
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/0 up/down: 106/0)             Total: 106 bytes

Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agopatch: ignore flag -g. +22 bytes
Matheus Izvekov [Tue, 19 Jan 2010 20:44:15 +0000 (18:44 -0200)]
patch: ignore flag -g. +22 bytes

Signed-off-by: Matheus Izvekov <mizvekov@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agodiff: don't exit in case we can't open input files. -2 bytes
Matheus Izvekov [Tue, 19 Jan 2010 01:34:29 +0000 (23:34 -0200)]
diff: don't exit in case we can't open input files. -2 bytes

>>From d4cf19d20596bca797d58563f4404cf6a4932977 Mon Sep 17 00:00:00 2001
From: Matheus Izvekov <mizvekov@gmail.com>
Date: Mon, 18 Jan 2010 23:27:56 -0200
Subject: [PATCH] diff: don't exit in case we can't open input files

This prevents recursion being aborted due to failures to open files.

Signed-off-by: Matheus Izvekov <mizvekov@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agodiff: don't use FILE_and_pos_t where it's not needed. -31 bytes
Matheus Izvekov [Tue, 19 Jan 2010 00:21:40 +0000 (22:21 -0200)]
diff: don't use FILE_and_pos_t where it's not needed. -31 bytes

>>From 3ead41fc3cbdd904e478ff7a710f5960c8ed4288 Mon Sep 17 00:00:00 2001
From: Matheus Izvekov <mizvekov@gmail.com>
Date: Mon, 18 Jan 2010 22:14:46 -0200
Subject: [PATCH] diff: don't use FILE_and_pos_t where it's not needed. -31 bytes

Signed-off-by: Matheus Izvekov <mizvekov@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agodiff: correct handling of labels. -10 bytes
Matheus Izvekov [Mon, 18 Jan 2010 22:40:23 +0000 (20:40 -0200)]
diff: correct handling of labels. -10 bytes

>>From 05eeb173f0431b4fbed7684d7a9cea42f747f63e Mon Sep 17 00:00:00 2001
From: Matheus Izvekov <mizvekov@gmail.com>
Date: Mon, 18 Jan 2010 20:33:55 -0200
Subject: [PATCH] diff: correct handling of labels

This fixes an issue where diff would apply labels to files in the
inverse order, when using -L or --label.
This fixes it in order to be compatible with gnu diff.
It also makes it not an error to specify more than one label.
The behavior for such cases is that they override the label for the new
file.

Signed-off-by: Matheus Izvekov <mizvekov@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agodiff: support long options
Matheus Izvekov [Mon, 18 Jan 2010 20:40:02 +0000 (18:40 -0200)]
diff: support long options

>>From 7b74284ebe6222cb714c37cdbb94633965f29e9b Mon Sep 17 00:00:00 2001
From: Matheus Izvekov <mizvekov@gmail.com>
Date: Mon, 18 Jan 2010 18:36:52 -0200
Subject: [PATCH] diff: support long options

Signed-off-by: Matheus Izvekov <mizvekov@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agodiff: implement flag -B (Ignore changes whose lines are all blank)
Matheus Izvekov [Mon, 18 Jan 2010 18:07:07 +0000 (16:07 -0200)]
diff: implement flag -B (Ignore changes whose lines are all blank)

>>From 7c3ce93213590bd0592435dc27d1272d0fd3309b Mon Sep 17 00:00:00 2001
From: Matheus Izvekov <mizvekov@gmail.com>
Date: Mon, 18 Jan 2010 15:52:31 -0200
Subject: [PATCH] diff: implement flag -B (Ignore changes whose lines are all blank)

function                                             old     new   delta
diffreg                                             1196    1240     +44
.rodata                                             6538    6561     +23
packed_usage                                         457     478     +21
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 88/0)               Total: 88 bytes
   text    data     bss     dec     hex filename
  70123     733    8576   79432   13648 busybox_old
  70190     733    8576   79499   1368b busybox_unstripped

Signed-off-by: Matheus Izvekov <mizvekov@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agodiff: honor flag -i (ignore case differences)
Matheus Izvekov [Mon, 18 Jan 2010 16:25:46 +0000 (14:25 -0200)]
diff: honor flag -i (ignore case differences)

>>From 503a1e1d2597f7cdf86a9ea39ebd2aee050ca759 Mon Sep 17 00:00:00 2001
From: Matheus Izvekov <mizvekov@gmail.com>
Date: Mon, 18 Jan 2010 14:06:26 -0200
Subject: [PATCH] diff: honor flag -i (ignore case differences)

function                                             old     new   delta
read_token                                           157     178     +21
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/0 up/down: 21/0)               Total: 21 bytes
   text    data     bss     dec     hex filename
  70102     733    8576   79411   13633 busybox_old
  70123     733    8576   79432   13648 busybox_unstripped

Signed-off-by: Matheus Izvekov <mizvekov@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agowatch: compat: use stderr to determine screen dimensions
Denys Vlasenko [Tue, 19 Jan 2010 01:26:38 +0000 (02:26 +0100)]
watch: compat: use stderr to determine screen dimensions

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agols: fix sort of very large files. +21 byte
Denys Vlasenko [Mon, 18 Jan 2010 12:02:27 +0000 (13:02 +0100)]
ls: fix sort of very large files. +21 byte

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agofix examples which used non-standard cut -b0-NNN
Denys Vlasenko [Mon, 18 Jan 2010 11:25:09 +0000 (12:25 +0100)]
fix examples which used non-standard cut -b0-NNN

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agodiff: add NOINLINE
Denys Vlasenko [Mon, 18 Jan 2010 05:15:57 +0000 (06:15 +0100)]
diff: add NOINLINE

function                                             old     new   delta
create_J                                               -    1805   +1805
diffreg                                             3159    1176   -1983
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/1 up/down: 1805/-1983)       Total: -178 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agodiff: defeat gcc's optimization
Denys Vlasenko [Mon, 18 Jan 2010 04:22:34 +0000 (05:22 +0100)]
diff: defeat gcc's optimization

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agodiff: rewrite. much smaller and more correct
Matheus Izvekov [Mon, 18 Jan 2010 03:57:17 +0000 (04:57 +0100)]
diff: rewrite. much smaller and more correct

function                                             old     new   delta
diffreg                                             1815    3156   +1341
diff_main                                            860    1194    +334
read_token                                             -     161    +161
skip_dir                                               -      44     +44
seek_ft                                                -      31     +31
fetch                                                362     392     +30
line_compar                                            -      21     +21
add_to_dirlist                                        65      61      -4
print_only                                            16       -     -16
skipline                                              51       -     -51
newcand                                               85       -     -85
asciifile                                             89       -     -89
print_status                                         178      73    -105
make_temp                                            148       -    -148
files_differ                                         168       -    -168
get_recursive_dirlist                                182       -    -182
sort                                                 226       -    -226
prepare                                              283       -    -283
change                                               283       -    -283
do_diff                                              416       -    -416
dump_unified_vec                                     457       -    -457
check                                               1512     595    -917
------------------------------------------------------------------------------
(add/remove: 4/12 grow/shrink: 3/3 up/down: 1962/-3430)     Total: -1468 bytes

Signed-off-by: Matheus Izvekov <mizvekov@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoftpd: conditional support for broken clients
Stefan Seyfried [Mon, 18 Jan 2010 01:08:30 +0000 (02:08 +0100)]
ftpd: conditional support for broken clients

Signed-off-by: Stefan Seyfried <stefan.seyfried@googlemail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agols: make it so that group never glues itself to file size
Denys Vlasenko [Mon, 18 Jan 2010 00:55:00 +0000 (01:55 +0100)]
ls: make it so that group never glues itself to file size

+ smaller enhancements: inode is long long; -h is a bit narrower; etc

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agodiff: add more tests
Denys Vlasenko [Mon, 18 Jan 2010 00:04:20 +0000 (01:04 +0100)]
diff: add more tests

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoftpd: code shrink
Denys Vlasenko [Sun, 17 Jan 2010 21:32:22 +0000 (22:32 +0100)]
ftpd: code shrink

function                                             old     new   delta
MMU:
handle_dir_common                                    354     338     -16
NOMMU:
ftpd_main                                           2437    2442      +5
popen_ls                                             201     174     -27

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agobunzip2.tests: replace $? with \$?
Denys Vlasenko [Sun, 17 Jan 2010 18:08:39 +0000 (19:08 +0100)]
bunzip2.tests: replace $? with \$?

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: remove some code which is at best unneeded and at worst wrong
Denys Vlasenko [Sun, 17 Jan 2010 02:01:15 +0000 (03:01 +0100)]
ntpd: remove some code which is at best unneeded and at worst wrong

function                                             old     new   delta
step_time                                            246     256     +10
ntpd_main                                            855     844     -11
update_local_clock                                   767     714     -53

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: add anti-clock-hopping code
Denys Vlasenko [Sun, 17 Jan 2010 01:51:33 +0000 (02:51 +0100)]
ntpd: add anti-clock-hopping code

function                                             old     new   delta
select_and_cluster                                   837     950    +113
update_local_clock                                   759     767      +8
root_distance                                         61       -     -61

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: disable frequency estimation code
Denys Vlasenko [Sun, 17 Jan 2010 00:05:58 +0000 (01:05 +0100)]
ntpd: disable frequency estimation code

function                                             old     new   delta
reset_peer_stats                                     164     168      +4
ntp_init                                             371     368      -3
recv_and_process_peer_pkt                            869     852     -17
update_local_clock                                   823     759     -64
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/3 up/down: 4/-84)             Total: -80 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agofix testing of busybox "applet" itself
Denys Vlasenko [Sat, 16 Jan 2010 01:49:40 +0000 (02:49 +0100)]
fix testing of busybox "applet" itself

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agocp: improve test coverage
Denys Vlasenko [Sat, 16 Jan 2010 01:27:31 +0000 (02:27 +0100)]
cp: improve test coverage

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotrim usage text a bit; fix cp usage (meaning of -H option)
Denys Vlasenko [Fri, 15 Jan 2010 21:30:30 +0000 (22:30 +0100)]
trim usage text a bit; fix cp usage (meaning of -H option)

function                                             old     new   delta
packed_usage                                       26596   26540     -56

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agocp: fix -H handling
Denys Vlasenko [Fri, 15 Jan 2010 21:05:07 +0000 (22:05 +0100)]
cp: fix -H handling

function                                             old     new   delta
copy_file                                           1495    1518     +23

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agosmall doc update
Denys Vlasenko [Thu, 14 Jan 2010 12:27:34 +0000 (13:27 +0100)]
small doc update

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agowhitespace fix
Denys Vlasenko [Thu, 14 Jan 2010 00:11:54 +0000 (01:11 +0100)]
whitespace fix

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoINSTALL: update obsolete doc, as suggested by Doug Clapp (doug.clapp AT triad.rr...
Denys Vlasenko [Wed, 13 Jan 2010 21:43:13 +0000 (22:43 +0100)]
INSTALL: update obsolete doc, as suggested by Doug Clapp (doug.clapp AT triad.rr.com)

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoexamples: add example ntpd service
Denys Vlasenko [Wed, 13 Jan 2010 21:07:34 +0000 (22:07 +0100)]
examples: add example ntpd service

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agofix configure sha256sum problem. Closes bug 895
Denys Vlasenko [Wed, 13 Jan 2010 17:55:37 +0000 (18:55 +0100)]
fix configure sha256sum problem. Closes bug 895

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoash: remove config items for read options which are no longer optional
Denys Vlasenko [Wed, 13 Jan 2010 17:31:29 +0000 (18:31 +0100)]
ash: remove config items for read options which are no longer optional

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoshell/read: check that variable names are sane
Denys Vlasenko [Wed, 13 Jan 2010 17:22:35 +0000 (18:22 +0100)]
shell/read: check that variable names are sane

function                                             old     new   delta
shell_builtin_read                                  1000    1055     +55
parse_command                                       1460    1463      +3
builtin_umask                                        121     123      +2
is_well_formed_var_name                               73      66      -7

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agobuiltin_read: note about better implementation
Denys Vlasenko [Wed, 13 Jan 2010 13:53:49 +0000 (14:53 +0100)]
builtin_read: note about better implementation

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agohush: use ash's read builtin
Denys Vlasenko [Tue, 12 Jan 2010 22:29:57 +0000 (23:29 +0100)]
hush: use ash's read builtin

function                                             old     new   delta
shell_builtin_read                                     -    1000   +1000
set_local_var_from_halves                              -      24     +24
setvar2                                                -       7      +7
...
popstring                                            140     134      -6
ash_main                                            1375    1368      -7
setvar                                               184     174     -10
arith_set_local_var                                   36       -     -36
builtin_read                                        1096     185    -911
------------------------------------------------------------------------------
(add/remove: 3/1 grow/shrink: 5/23 up/down: 1038/-1007)        Total: 31 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoshell/read: fix "'read' without parameters" bash compat thingy
Denys Vlasenko [Tue, 12 Jan 2010 21:12:10 +0000 (22:12 +0100)]
shell/read: fix "'read' without parameters" bash compat thingy

previous change:

function                                             old     new   delta
builtin_read                                          82    1074    +992
popstring                                            134     140      +6
readcmd                                             1034     148    -886
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 998/-886)          Total: 112 bytes

this change:

builtin_read                                        1074    1096     +22
static.arg_REPLY                                       8       -      -8
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 1/0 up/down: 22/-8)              Total: 14 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoshell: split read builtin from ash
Denys Vlasenko [Tue, 12 Jan 2010 21:11:24 +0000 (22:11 +0100)]
shell: split read builtin from ash

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agohush: fix potential buffer overflow on NOMMU
Denys Vlasenko [Tue, 12 Jan 2010 18:28:10 +0000 (19:28 +0100)]
hush: fix potential buffer overflow on NOMMU

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agohush: fix subshell.tests failure on NOMMU
Denys Vlasenko [Tue, 12 Jan 2010 14:19:31 +0000 (15:19 +0100)]
hush: fix subshell.tests failure on NOMMU

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