Denis Vlasenko [Thu, 4 Dec 2008 15:29:35 +0000 (15:29 -0000)]
libbb/crypt: code shrink
function old new delta
to64_msb_first - 63 +63
des_crypt 1509 1338 -171
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/1 up/down: 63/-171) Total: -108 bytes
Bernhard Reutner-Fischer [Thu, 4 Dec 2008 14:19:21 +0000 (14:19 -0000)]
- -4b and use proper define; add license note
Denis Vlasenko [Thu, 4 Dec 2008 13:57:59 +0000 (13:57 -0000)]
clarify which version of crond is known to put tasks in separate pgrps
Denis Vlasenko [Thu, 4 Dec 2008 12:15:19 +0000 (12:15 -0000)]
iproute: fix ipXXX utilities trying to parse their applet name
as their 1st parameter.
Denis Vlasenko [Thu, 4 Dec 2008 12:05:26 +0000 (12:05 -0000)]
Fold mkpasswd applet into cryptpw.
mkpasswd is in Debian, OTOH cryptpw was added to busybox earlier.
Trying to make both camps happy by making those two applets just aliases.
They are command-line compatible. We can decide whether we want to drop one
(and which one) later.
function old new delta
cryptpw_main 183 314 +131
static.methods 21 - -21
packed_usage 25707 25648 -59
mkpasswd_main 307 - -307
------------------------------------------------------------------------------
(add/remove: 0/2 grow/shrink: 1/1 up/down: 131/-387) Total: -256 bytes
Denis Vlasenko [Wed, 3 Dec 2008 20:16:11 +0000 (20:16 -0000)]
iptunnel: fix problems with including linux/ip_tunnel.h
on some systems
Denis Vlasenko [Wed, 3 Dec 2008 19:05:55 +0000 (19:05 -0000)]
libbb: introduce and use xgetpwnam. ~ -150 bytes.
Bernhard Reutner-Fischer [Wed, 3 Dec 2008 18:49:44 +0000 (18:49 -0000)]
- remove superfluous comment from previous commit
Bernhard Reutner-Fischer [Wed, 3 Dec 2008 18:48:39 +0000 (18:48 -0000)]
- add new applet mkpasswd(1)
function old new delta
bb_ask - 355 +355
mkpasswd_main - 296 +296
.rodata 121746 121847 +101
packed_usage 24632 24689 +57
static.methods - 21 +21
gmatch 229 248 +19
bb_ask_stdin - 11 +11
applet_names 1949 1958 +9
applet_main 1172 1176 +4
sulogin_main 503 505 +2
applet_nameofs 586 588 +2
sha256_hash 329 327 -2
correct_password 208 206 -2
parse_command 1442 1439 -3
get_cred_or_die 145 141 -4
passwd_main 1054 1044 -10
bb_askpass 348 - -348
------------------------------------------------------------------------------
(add/remove: 4/1 grow/shrink: 7/5 up/down: 877/-369) Total: 508 bytes
Denis Vlasenko [Wed, 3 Dec 2008 11:59:12 +0000 (11:59 -0000)]
ash: remove TODO which seems to actually work now.
no code changes
Denis Vlasenko [Wed, 3 Dec 2008 10:46:12 +0000 (10:46 -0000)]
crond: use bb_setpgrp, not setpgrp
platform.h: make a bit more readable
Denis Vlasenko [Wed, 3 Dec 2008 10:36:26 +0000 (10:36 -0000)]
ash: finally installed it as /bin/sh on my machine.
some breakage noticed, the most dire is mishandled ^C.
fixing it.
function old new delta
blocking_wait_with_raise_on_sig - 40 +40
waitforjob 85 100 +15
setsignal 280 278 -2
evalvar 1376 1374 -2
waitcmd 186 182 -4
dowait 350 316 -34
redirect 1231 1185 -46
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/5 up/down: 55/-88) Total: -33 bytes
Denis Vlasenko [Tue, 2 Dec 2008 22:56:59 +0000 (22:56 -0000)]
libbb: password/group function helpers rewritten by Tito:
function old new delta
xgetpwuid - 27 +27
uid2uname_utoa - 22 +22
gid2group_utoa - 22 +22
uid2uname - 18 +18
gid2group - 18 +18
buffer_fill_and_print 179 196 +17
print_user 12 24 +12
print_group 12 24 +12
get_cached 89 99 +10
...
print_common 134 120 -14
vlock_main 415 396 -19
logger_main 410 387 -23
crontab_main 642 609 -33
bb_getpwuid 42 - -42
bb_getgrgid 42 - -42
bb_getug 80 - -80
------------------------------------------------------------------------------
(add/remove: 6/3 grow/shrink: 9/11 up/down: 187/-296) Total: -109 bytes
Denis Vlasenko [Tue, 2 Dec 2008 21:52:24 +0000 (21:52 -0000)]
crond: put tasks in separate process groups
Denis Vlasenko [Tue, 2 Dec 2008 20:38:36 +0000 (20:38 -0000)]
vconfig: style fix, no code changes
Denis Vlasenko [Tue, 2 Dec 2008 18:18:50 +0000 (18:18 -0000)]
libbb: add strncpy_IFNAMSIZ
function old new delta
...
udhcp_read_interface 225 220 -5
brctl_main 1151 1146 -5
add_interface 109 104 -5
ipaddr_list_or_flush 2174 2167 -7
do_add_ioctl 88 80 -8
vconfig_main 249 240 -9
do_del_ioctl 78 68 -10
do_iplink 1186 1173 -13
do_if_fetch 766 753 -13
buffer_fill_and_print 196 179 -17
parse_args 1709 1684 -25
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/20 up/down: 11/-140) Total: -129 bytes
Denis Vlasenko [Mon, 1 Dec 2008 12:38:36 +0000 (12:38 -0000)]
...and exclude LC_ALL too
Denis Vlasenko [Mon, 1 Dec 2008 12:36:41 +0000 (12:36 -0000)]
build system: fix sorting + locale in make objsizes
Denis Vlasenko [Sun, 30 Nov 2008 17:41:31 +0000 (17:41 -0000)]
volume_id/fat: careful with sector#, it may not fit in 32 bits. +91 bytes
volume_id/*: a bit of code shrink
Denis Vlasenko [Sat, 29 Nov 2008 23:14:37 +0000 (23:14 -0000)]
init: O_NONBLOCK needs more thought. reverted for now
Denis Vlasenko [Sat, 29 Nov 2008 12:54:16 +0000 (12:54 -0000)]
mountpoint: add -n option (by Vladimir)
text data bss dec hex filename
799859 560 7748 808167 c54e7 busybox_old
799845 560 7748 808153 c54d9 busybox_unstripped
Denis Vlasenko [Sat, 29 Nov 2008 09:07:24 +0000 (09:07 -0000)]
inotifyd: save resourses by closing unused inotify descriptors
Denis Vlasenko [Sat, 29 Nov 2008 09:05:50 +0000 (09:05 -0000)]
acpid: new applet by Vladimir. +737 bytes
Denis Vlasenko [Sat, 29 Nov 2008 06:57:53 +0000 (06:57 -0000)]
Announce 1.13.1 and 1.12.3
Denis Vlasenko [Fri, 28 Nov 2008 04:01:03 +0000 (04:01 -0000)]
ash: add FIXME
Denis Vlasenko [Fri, 28 Nov 2008 03:50:46 +0000 (03:50 -0000)]
ash: "ash: syntax error: XXX unexpected" -> "ash: syntax error: unexpected XXX"
Denis Vlasenko [Fri, 28 Nov 2008 03:42:31 +0000 (03:42 -0000)]
ash: shrink on top of previous change
function old new delta
readtoken1 3201 3221 +20
xxreadtoken 306 313 +7
pungetc 13 12 -1
ash_main 1380 1379 -1
setinputfile 196 192 -4
plinno 4 - -4
parsenleft 4 - -4
parsenextc 4 - -4
parselleft 4 - -4
setinputstring 67 62 -5
pushstring 123 114 -9
pgetc 455 438 -17
pushfile 69 31 -38
popfile 114 76 -38
------------------------------------------------------------------------------
(add/remove: 0/4 grow/shrink: 2/8 up/down: 27/-129) Total: -102 bytes
text data bss dec hex filename
798750 564 7756 807070 c509e busybox_old
798664 560 7748 806972 c503c busybox_unstripped
Denis Vlasenko [Fri, 28 Nov 2008 03:41:47 +0000 (03:41 -0000)]
ash: better fix for ash -c 'echo 5&' and ash -c 'sleep 5&'
with testcase
Denis Vlasenko [Tue, 25 Nov 2008 13:33:11 +0000 (13:33 -0000)]
remove a few superfluous includes
Denis Vlasenko [Tue, 25 Nov 2008 01:36:03 +0000 (01:36 -0000)]
ash,hush: add TODO for rare build failure
*: remove some redundant includes
Denis Vlasenko [Tue, 25 Nov 2008 01:34:52 +0000 (01:34 -0000)]
ash: fix bad interaction between ash -c '....&' and bash compat
Denis Vlasenko [Mon, 24 Nov 2008 22:34:47 +0000 (22:34 -0000)]
timeout: fix a few bugs. vda is stupid
Denis Vlasenko [Mon, 24 Nov 2008 13:42:24 +0000 (13:42 -0000)]
trim help text a bit
Denis Vlasenko [Mon, 24 Nov 2008 13:25:20 +0000 (13:25 -0000)]
timeout: new applet. 370 bytes. by Roberto Foglietta.
Denis Vlasenko [Mon, 24 Nov 2008 07:34:42 +0000 (07:34 -0000)]
vi: speedup and code shrink (Walter Harms)
networking/interface.c: silence warning (Vladimir)
wget: more robust EINTR detection
Denis Vlasenko [Sun, 23 Nov 2008 14:58:14 +0000 (14:58 -0000)]
strings: code shrink -22 bytes by Tito
Denis Vlasenko [Sun, 23 Nov 2008 14:40:00 +0000 (14:40 -0000)]
diff: emit /dev/null if diff -rN diffs a file against /dev/null
function old new delta
diffreg 1782 1786 +4
Bernhard Reutner-Fischer [Sat, 22 Nov 2008 20:30:53 +0000 (20:30 -0000)]
- documentation fix
Denis Vlasenko [Sat, 22 Nov 2008 20:29:35 +0000 (20:29 -0000)]
httpd: set $HOST to Host: header value. +83 bytes.
by Tobias Poschwatta (tp AT fonz.de)
Denis Vlasenko [Sat, 22 Nov 2008 20:18:37 +0000 (20:18 -0000)]
modutils-24: small fixes by Harald Kuthe (harald-tuxbox AT arcor.de)
function old new delta
obj_load 819 832 +13
obj_allocate_commons 488 462 -26
bb_init_module_24 4800 4759 -41
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/2 up/down: 13/-67) Total: -54 bytes
Denis Vlasenko [Sat, 22 Nov 2008 18:58:11 +0000 (18:58 -0000)]
networking/interface.c: better readability (by Walter Harms)
mkfs_minix: whitespace fix
Denis Vlasenko [Sat, 22 Nov 2008 18:41:41 +0000 (18:41 -0000)]
tftpd: can also have TFTP_DEBUG
Denis Vlasenko [Sat, 22 Nov 2008 18:29:01 +0000 (18:29 -0000)]
insmod: clarify module_name / file_name distinction
Denis Vlasenko [Sat, 22 Nov 2008 01:32:40 +0000 (01:32 -0000)]
ash: NTO2 needs #if ENABLE_ASH_BASH_COMPAT
Denis Vlasenko [Fri, 21 Nov 2008 10:36:36 +0000 (10:36 -0000)]
ash: fix miscalculation of memory needed for eval tree
found by Timo Teras (timo.teras AT iki.fi)
Denis Vlasenko [Thu, 20 Nov 2008 23:41:56 +0000 (23:41 -0000)]
dpkg: better and shorter code to compare versions
(taken from "official" dpkg).
By Eugene T. Bordenkircher (eugebo AT gmail.com)
function old new delta
order - 48 +48
test_version 273 276 +3
version_compare_part 396 187 -209
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/1 up/down: 51/-209) Total: -158 bytes
Denis Vlasenko [Thu, 20 Nov 2008 01:24:39 +0000 (01:24 -0000)]
inotifyd: exit if x event happened for all files
fix FIONREAD parameter type
fix default mask code
shrink help text
function old new delta
inotifyd_main 497 506 +9
packed_usage 25446 25431 -15
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 9/-15) Total: -6 bytes
Denis Vlasenko [Wed, 19 Nov 2008 13:25:14 +0000 (13:25 -0000)]
vi: fix several instances of major goof: when text grows, text[]
might get reallocated! We were keeping around pointers to old place...
function old new delta
colon 3017 3037 +20
char_insert 336 354 +18
stupid_insert 18 24 +6
string_insert 89 94 +5
do_cmd 4461 4465 +4
file_insert 328 329 +1
text_hole_make 134 120 -14
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 6/1 up/down: 54/-14) Total: 40 bytes
Denis Vlasenko [Wed, 19 Nov 2008 09:35:00 +0000 (09:35 -0000)]
klogd: fix small buglet in previous commit
Denis Vlasenko [Wed, 19 Nov 2008 07:59:49 +0000 (07:59 -0000)]
klogctl: fix a problem where we don't terminate read data with '\0'
and then misinterpret it. Code shrink while at it.
function old new delta
klogd_main 404 362 -42
Denis Vlasenko [Mon, 17 Nov 2008 22:19:18 +0000 (22:19 -0000)]
inotify: add x, o, and u events
Denis Vlasenko [Mon, 17 Nov 2008 15:36:36 +0000 (15:36 -0000)]
nslookup: glibc + IPv6 address of DNS server don't mix (yet)
Denis Vlasenko [Mon, 17 Nov 2008 00:12:17 +0000 (00:12 -0000)]
id: do not abort build if we use internal password/group functions.
Denis Vlasenko [Sun, 16 Nov 2008 22:21:23 +0000 (22:21 -0000)]
libbb: replace some memmove's with memcpy's (Ron (ron AT debian.org))
bb_dump_dump 2674 2611 -63
Denis Vlasenko [Sun, 16 Nov 2008 19:02:26 +0000 (19:02 -0000)]
nslookup: allow usage of IPv6 addresses or hostnames
for DNS server name; allow for port specification.
Tested to work: "nslookup google.com [::1]:5353"
Denis Vlasenko [Sun, 16 Nov 2008 15:03:11 +0000 (15:03 -0000)]
id: abort the build of uclibc is less than 0.9.30
Denis Vlasenko [Sun, 16 Nov 2008 04:05:13 +0000 (04:05 -0000)]
man: better check for duplicated MANPATH. Also -10 bytes.
Denis Vlasenko [Fri, 14 Nov 2008 22:14:12 +0000 (22:14 -0000)]
inotifyd: fix "inotifyd with no params" case
Denis Vlasenko [Fri, 14 Nov 2008 21:52:16 +0000 (21:52 -0000)]
inotify: document waiting behavior
Denis Vlasenko [Fri, 14 Nov 2008 21:34:13 +0000 (21:34 -0000)]
inotify: fix buffer overflow and "unreaped zombies" problem
Wade Berrier [Fri, 14 Nov 2008 21:18:45 +0000 (21:18 -0000)]
ifupdown.c: allow options to udhcpc to be configurable from .config
This allows more control over options that are passed to udhcpc
that are not configurable via /etc/network/interfaces.
Example: rather than quit when an initial lease isn't found,
you could use "--background" so that udhcpc keeps running and
continually attempts to get an ip. That way, when you plug in
the ethernet after powering on the device, you'll still get an ip.
Denis Vlasenko [Thu, 13 Nov 2008 21:53:32 +0000 (21:53 -0000)]
stat: fix compile breakage (get_f_fsid() is used even if !FEATURE_STAT_FORMAT)
Denis Vlasenko [Thu, 13 Nov 2008 13:25:18 +0000 (13:25 -0000)]
libbb: sha_crypt -123 bytes
Denis Vlasenko [Thu, 13 Nov 2008 12:55:11 +0000 (12:55 -0000)]
libbb/pw_encrypt_sha: -28 bytes
Denis Vlasenko [Thu, 13 Nov 2008 12:23:46 +0000 (12:23 -0000)]
libbb: remove glibc-style bloat from sha_crypt. -1130 bytes.
cryptpw: add more difficult test vectors.
Denis Vlasenko [Thu, 13 Nov 2008 00:05:17 +0000 (00:05 -0000)]
arp: stop using globals
function old new delta
hw_set 1 - -1
arp_main 1559 1558 -1
sockfd 8 4 -4
hw 4 - -4
device 4 - -4
ap 4 - -4
packed_usage 25402 25393 -9
------------------------------------------------------------------------------
(add/remove: 0/4 grow/shrink: 0/3 up/down: 0/-27) Total: -27 bytes
Denis Vlasenko [Wed, 12 Nov 2008 22:06:46 +0000 (22:06 -0000)]
gzip: fix gzip -dc case caused by using stale getopt state
Denis Vlasenko [Wed, 12 Nov 2008 21:37:19 +0000 (21:37 -0000)]
seq: shrink by 10 bytes
Denis Vlasenko [Wed, 12 Nov 2008 21:18:58 +0000 (21:18 -0000)]
correct help texts
Denis Vlasenko [Wed, 12 Nov 2008 21:14:50 +0000 (21:14 -0000)]
telnetd: fix compile problem for non-standalone telnetd
Bernhard Reutner-Fischer [Wed, 12 Nov 2008 13:22:24 +0000 (13:22 -0000)]
- add support for seq -s <separator>
Bernhard Reutner-Fischer [Wed, 12 Nov 2008 12:59:56 +0000 (12:59 -0000)]
- add seq -w support (Natanael Copa)
Denis Vlasenko [Wed, 12 Nov 2008 00:09:58 +0000 (00:09 -0000)]
modprobe-small: fix failure to load when no arguments are given
modutils-24: fix bad interaction of xzalloc with xrealloc_vector; style fixes
Denis Vlasenko [Tue, 11 Nov 2008 22:59:41 +0000 (22:59 -0000)]
cksum, printenv: report errors via exitcode
function old new delta
cksum_main 296 315 +19
printenv_main 74 86 +12
Denis Vlasenko [Tue, 11 Nov 2008 22:43:10 +0000 (22:43 -0000)]
head: report file open errors with exitcode 1 (was happily returning 0)
head_main 409 417 +8
Denis Vlasenko [Tue, 11 Nov 2008 22:36:58 +0000 (22:36 -0000)]
expr: on error, exit with exitcode 2
expr_main 101 110 +9
Denis Vlasenko [Tue, 11 Nov 2008 22:25:34 +0000 (22:25 -0000)]
stat: make stat -f show filesystem "ID:" as coreutils does
print_statfs 358 370 +12
Denis Vlasenko [Tue, 11 Nov 2008 21:32:39 +0000 (21:32 -0000)]
env: support -uVAR=VAL
function old new delta
env_main 245 233 -12
Denis Vlasenko [Tue, 11 Nov 2008 21:15:56 +0000 (21:15 -0000)]
du: fix "du /dir /dir" case
reset_ino_dev_hashtable - 84 +84
du 388 376 -12
du_main 327 301 -26
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/2 up/down: 84/-38) Total: 46 bytes
Denis Vlasenko [Tue, 11 Nov 2008 09:33:24 +0000 (09:33 -0000)]
runsvdir: straighten some convoluted code. logic is unchanged
Denis Vlasenko [Tue, 11 Nov 2008 02:56:39 +0000 (02:56 -0000)]
telnetd: correctly output 0xff char. ~100 bytes.
telnet: fix some atrocious names and style. no code changes
Denis Vlasenko [Tue, 11 Nov 2008 01:38:04 +0000 (01:38 -0000)]
libbb: disable a second md5 implementation which managed to creep in :)
function old new delta
sha512_end 239 237 -2
sha256_end 162 160 -2
sha1_end 191 189 -2
md5_end 168 166 -2
__md5__magic 4 - -4
md5_crypt 627 621 -6
static.S 16 - -16
__md5_Init 42 - -42
static.P 64 - -64
__md5_Final 131 - -131
__md5_Update 153 - -153
static.C 268 12 -256
__md5_Transform 293 - -293
------------------------------------------------------------------------------
(add/remove: 0/7 grow/shrink: 0/6 up/down: 0/-973) Total: -973 bytes
Denis Vlasenko [Mon, 10 Nov 2008 22:23:20 +0000 (22:23 -0000)]
webpage: announce 1.13.0 and 1.12.2
Denis Vlasenko [Mon, 10 Nov 2008 18:52:35 +0000 (18:52 -0000)]
libbb: add optionl support for SHA256/512 encrypted passwords
function old new delta
sha_crypt - 2423 +2423
cryptpw_main 128 183 +55
to64 - 29 +29
pw_encrypt 974 1000 +26
str_rounds - 11 +11
login_main 1532 1541 +9
packed_usage 25215 25200 -15
__md5_to64 29 - -29
------------------------------------------------------------------------------
(add/remove: 3/1 grow/shrink: 3/1 up/down: 2553/-44) Total: 2509 bytes
Denis Vlasenko [Mon, 10 Nov 2008 13:32:50 +0000 (13:32 -0000)]
sha256,sha512: new applets. +4.9kb
we will require sha256/512 code for new $5$ and $6$ style
password hashes anyway, they are showing up already
in people's /etc/passwd...
Denis Vlasenko [Mon, 10 Nov 2008 10:47:47 +0000 (10:47 -0000)]
Typo fixes
Denis Vlasenko [Mon, 10 Nov 2008 09:51:15 +0000 (09:51 -0000)]
libbb: constify some data in sha1. gcc is clever enough to do it itself,
thus no actual code changes. Also some pointless beautifuing crept in.
Denis Vlasenko [Mon, 10 Nov 2008 09:33:42 +0000 (09:33 -0000)]
build system: reorder less' options in config so that
they are properly indented
Denis Vlasenko [Sun, 9 Nov 2008 17:32:46 +0000 (17:32 -0000)]
Bump version to 1.14.0.svn
Denis Vlasenko [Sun, 9 Nov 2008 17:28:41 +0000 (17:28 -0000)]
Bump version to 1.13.0
Denis Vlasenko [Sun, 9 Nov 2008 16:12:38 +0000 (16:12 -0000)]
update "maximum nommu" config
Denis Vlasenko [Sun, 9 Nov 2008 16:08:31 +0000 (16:08 -0000)]
update random config tester
Denis Vlasenko [Sun, 9 Nov 2008 02:23:42 +0000 (02:23 -0000)]
randomconfig fixes
Denis Vlasenko [Sun, 9 Nov 2008 00:44:40 +0000 (00:44 -0000)]
telnetd: set SO_KEEPALIVE, users report it's useful. +20 bytes.
Denis Vlasenko [Sun, 9 Nov 2008 00:15:11 +0000 (00:15 -0000)]
*: a bit of code shrink
function old new delta
stop_handler 41 38 -3
sulogin_main 508 504 -4
got_cont 4 - -4
cont_handler 11 - -11
startservice 309 297 -12
processorstart 423 409 -14
tcpudpsvd_main 1861 1843 -18
------------------------------------------------------------------------------
(add/remove: 0/2 grow/shrink: 0/5 up/down: 0/-66) Total: -66 bytes
Denis Vlasenko [Sat, 8 Nov 2008 22:31:19 +0000 (22:31 -0000)]
move documentation to docs/
Denis Vlasenko [Sat, 8 Nov 2008 21:42:14 +0000 (21:42 -0000)]
kbd_mode: s/ioctl/xioctl. also saves 12 bytes
Denis Vlasenko [Sat, 8 Nov 2008 21:39:06 +0000 (21:39 -0000)]
kbd_mode: support -C TTY option
function old new delta
packed_usage 25334 25361 +27
kbd_mode_main 146 173 +27
Denis Vlasenko [Sat, 8 Nov 2008 20:36:32 +0000 (20:36 -0000)]
build system: remove '-Wl,' when we pass flags to ld.
Denis Vlasenko [Fri, 7 Nov 2008 13:36:46 +0000 (13:36 -0000)]
libbb: add a TODO to support new SHA-based encrypted passwords