Denys Vlasenko
4b1100edd8
*: use NULL for null pointers
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-03-05 14:10:54 +01:00
Denys Vlasenko
44fbfa78ca
libbb/loop.c: style and readability fixes, no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-03-05 13:20:28 +01:00
Denys Vlasenko
917693b5b3
top: make 's' display easier to understand
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-03-04 12:50:59 +01:00
Denys Vlasenko
197202d435
modprobe: remove 2k limit on /proc/cmdline
...
function old new delta
do_modprobe 365 520 +155
parse_and_add_kcmdline_module_options 149 - -149
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-03-03 04:20:33 +01:00
Denys Vlasenko
9341fd2d30
ping: do not leak data from stack; shrink
...
FANCY ping:
function old new delta
common_ping_main 386 1732 +1346
sendping6 98 83 -15
sendping4 188 158 -30
ping4 575 - -575
ping6 756 - -756
------------------------------------------------------------------------------
(add/remove: 0/2 grow/shrink: 1/2 up/down: 1346/-1376) Total: -30 bytes
!FANCY ping:
function old new delta
hostname 4 - -4
common_ping_main 566 499 -67
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-03-03 01:10:29 +01:00
Denys Vlasenko
5749328b56
head,tail: trim help text; make suffixes unconditional for head too
...
function old new delta
packed_usage 26411 26375 -36
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-03-02 16:18:14 +01:00
Denys Vlasenko
88aa558e5c
*: do not check for POLLIN/POLLOUT only, just in case it's POLHUP/POLERR
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-03-02 15:02:45 +01:00
Thomas Geulig
d2f7779671
syslog: allow multiple -R options
...
function old new delta
syslogd_main 1082 1177 +95
init_data 72 64 -8
Signed-off-by: Thomas Geulig <geulig@nentec.de>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-02-28 13:01:59 +01:00
Denys Vlasenko
3e26d4fa23
modprobe: pick up module options from /proc/cmdline too
...
Based on patch by Ozan Çağlayan (ozan AT pardus.org.tr)
function old new delta
parse_and_add_kcmdline_module_options - 149 +149
do_modprobe 357 365 +8
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-02-27 23:15:22 +01:00
Denys Vlasenko
f6b29a2dc9
Merge branch 'master' of git+ssh://vda@busybox.net/var/lib/git/busybox
2010-02-27 23:15:22 +01:00
Denys Vlasenko
99069330a1
*: gethostname-related fixes
...
function old new delta
hostname_main 218 231 +13
nfsmount 3541 3474 -67
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-02-27 19:38:19 +01:00
Bernhard Reutner-Fischer
45cec1ee89
Config: fix alphabetical ordering
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2010-02-26 19:33:49 +01:00
Bernhard Reutner-Fischer
836f36333a
tail: document FANCY flags in helptext
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2010-02-26 18:34:16 +01:00
Bernhard Reutner-Fischer
1359e0d1b9
df: explain FANCY options in helptext
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2010-02-26 18:21:42 +01:00
Bernhard Reutner-Fischer
ca228fb16d
reuse a few strings
...
text data bss dec hex filename
839040 453 6828 846321 ce9f1 busybox_old
839019 453 6828 846300 ce9dc busybox_unstripped
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-02-26 10:09:31 +01:00
Denys Vlasenko
26ffe81188
su: move restricted_shell into su.c (the only user)
...
function old new delta
su_main 448 468 +20
buffer_fill_and_print 179 196 +17
scriptreplay_main 205 208 +3
localcmd 275 277 +2
hash_find 233 234 +1
devmem_main 469 463 -6
install_main 724 716 -8
setusershell 11 - -11
find_pair 187 169 -18
restricted_shell 49 - -49
------------------------------------------------------------------------------
(add/remove: 0/3 grow/shrink: 5/3 up/down: 43/-92) Total: -49 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-02-26 10:01:18 +01:00
Denys Vlasenko
fd686a262f
setup_environment(): eliminate one parameter
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-02-26 09:52:45 +01:00
Bernhard Reutner-Fischer
99709ab033
crontab: use setup_environment
...
function old new delta
setup_environment 184 198 +14
.rodata 131770 131747 -23
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 14/-23) Total: -9 bytes
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2010-02-26 09:31:40 +01:00
Bernhard Reutner-Fischer
7e7728cd66
free: silence warning about unused argv
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-02-26 09:28:30 +01:00
Alexander Shishkin
d03cd3be24
awk: skip whitespace between array name and subscript
...
It is supported in both mawk and gawk and there are actually scripts
out there that use this "flexibility".
function old new delta
next_token 1144 1152 +8
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/0 up/down: 8/0) Total: 8 bytes
Signed-off-by: Alexander Shishkin <virtuoso@slind.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-02-26 08:48:56 +01:00
Bernhard Reutner-Fischer
2e73d84c02
find: tweak error message
...
big find:
find: missing argument to `-exec'
we now say
find: -exec requires an argument
instead of the cryptic message we emitted previously.
Additional benefit is that it's now 23 bytes smaller.
Add TODO to add '-exec {} +' support
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2010-02-25 13:22:37 +01:00
Denys Vlasenko
8031848938
typo fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-02-24 14:27:55 +01:00
Denys Vlasenko
64bb95a361
mdev: fix subsystem passing (new kernels broke it again) - bugs 639, 721.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-02-24 10:39:47 +01:00
Denys Vlasenko
bf1d347964
fdisk: do not treat names ending in '0' as partitions
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-02-24 08:13:30 +01:00
Denys Vlasenko
b702d9aa5a
tweak README (s/svn/git)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-02-24 06:59:54 +01:00
Denys Vlasenko
43d9747f6e
install: strip before mode/uid/gid is set, not after.
...
function old new delta
install_main 694 716 +22
basename 21 - -21
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-02-21 16:55:29 +01:00
Harald Becker
8ce1dc03c1
loadfont/setfont: optional PSF2 font support
...
Signed-off-by: Harald Becker <ralda@gmx.de>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-02-21 13:10:26 +01:00
Denys Vlasenko
bef5711dab
free: code shrink
...
function old new delta
free_main 330 302 -28
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-02-21 05:39:59 +01:00
Denys Vlasenko
153fcaa6c1
Replace __uClinux__ define with !BB_MMU
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-02-21 05:17:41 +01:00
Denys Vlasenko
7426920461
fix bug 1087. Fix by Leonid (lly.dev AT gmail.com)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-02-21 01:26:42 +01:00
Denys Vlasenko
00ddd44cda
fix typos in comments and doc
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-02-19 09:16:33 +01:00
Denys Vlasenko
2f8a46032d
fix Unicode build on glibc
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-02-19 08:47:17 +01:00
Denys Vlasenko
45e9792446
netstat: fix a trivial bug
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-02-19 08:29:32 +01:00
Bernhard Reutner-Fischer
baab327719
usage: fix typo
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2010-02-14 11:11:47 +01:00
Denys Vlasenko
5e7345770a
delete forgotten chunk in prev commit
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-02-14 05:49:14 +01:00
Denys Vlasenko
bb169f4217
trim help text
...
function old new delta
packed_usage 26860 26663 -197
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-02-14 05:43:22 +01:00
Denys Vlasenko
125c2d2690
trim/regularize help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-02-13 02:59:30 +01:00
Joakim Tjernlund
0866b36900
gunzip: inflate_codes(): add fix from upstream gzip to prevent false CRC error
...
Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-02-11 23:56:48 +01:00
Joakim Tjernlund
80f4275629
include/platform.h: PowerPC can also do unaligned access
...
Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-02-11 23:23:28 +01:00
Denys Vlasenko
81fe2b15f3
wget: fix bug 1057 "busybox wget segfaults with http_proxy environment set"
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-02-11 04:23:43 +01:00
Bernhard Reutner-Fischer
3fdba181c3
wget: ignore --no-check-certificate
...
Used in a number of scripts, don't barf on it (we don't do ssl ATM).
function old new delta
static.wget_longopts 122 145 +23
.rodata 131925 131947 +22
packed_usage 26860 26859 -1
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 45/-1) Total: 44 bytes
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2010-02-10 19:37:29 +01:00
Denys Vlasenko
10544a8410
compat and warning fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-02-09 00:26:10 +01:00
Denys Vlasenko
fb6e689554
libbb/md5.c: remove wrong comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-02-08 17:46:49 +01:00
Vladimir Dronnikov
73ccd0ca87
volume_id/linux_swap: detect suspended image signatures too
...
Signed-off-by: Vladimir Dronnikov <dronnikov@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-02-08 03:08:05 +01:00
Denys Vlasenko
14a917eaab
hush: note a FIXME
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-02-08 03:04:22 +01:00
Denys Vlasenko
3205c24a82
shaNNNsum: accept and ignore -b and -t
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-02-07 23:28:23 +01:00
Bernhard Reutner-Fischer
eb255752c1
bloat-o-meter: convert to print() calls
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2010-02-07 19:42:48 +01:00
Bernhard Reutner-Fischer
f16d7c4bdf
bloat-o-meter: fix quadric behavior in alias resolution
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2010-02-07 19:26:18 +01:00
Denys Vlasenko
343dfd7abe
dnsd: add -s option. This allows (clumsy) operation with read dns servers
...
function old new delta
packed_usage 26816 26886 +70
dnsd_main 1299 1303 +4
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-02-07 02:45:03 +01:00
Denys Vlasenko
e66a09ba9c
dnsd: add more -v messages
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-02-07 01:11:18 +01:00