Denis Vlasenko [Sun, 27 Apr 2008 03:33:29 +0000 (03:33 -0000)]
runtest: further fixes from Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn AT axis.com>
Denis Vlasenko [Sat, 26 Apr 2008 10:14:25 +0000 (10:14 -0000)]
runtest: use numeric compare instead of string where appropriate
Denis Vlasenko [Fri, 25 Apr 2008 23:20:25 +0000 (23:20 -0000)]
libbb: fix wrong sscanf count check (affects pidof etc)
Denis Vlasenko [Fri, 25 Apr 2008 19:00:39 +0000 (19:00 -0000)]
fix KCONFIG_NOTIMESTAMP=1 mode (just learned that we have such thing)
Denis Vlasenko [Fri, 25 Apr 2008 18:44:35 +0000 (18:44 -0000)]
lineedit: hack for making it sort-of-work even if term width is wrong
function old new delta
read_line_input 3158 3153 -5
input_end 29 24 -5
input_delete 115 110 -5
input_forward 27 20 -7
cmdedit_set_out_char 88 80 -8
Denis Vlasenko [Fri, 25 Apr 2008 17:01:06 +0000 (17:01 -0000)]
taskset: (1ull < 65) like ops are not good, avoid that
Denis Vlasenko [Fri, 25 Apr 2008 08:43:01 +0000 (08:43 -0000)]
testsuite/runtest: remove (last) bashism
mkswap: fix selinux build
Denis Vlasenko [Fri, 25 Apr 2008 08:13:36 +0000 (08:13 -0000)]
arping: save a few bytes by using mempcpy
function old new delta
catcher 357 339 -18
Denis Vlasenko [Fri, 25 Apr 2008 02:14:07 +0000 (02:14 -0000)]
date: make it accept ISO date format. Fix help text.
make testsuite actually test something useful.
function old new delta
date_main 1094 1149 +55
Denis Vlasenko [Thu, 24 Apr 2008 19:37:11 +0000 (19:37 -0000)]
partially fix date testsuite
Bernhard Reutner-Fischer [Thu, 24 Apr 2008 10:44:31 +0000 (10:44 -0000)]
- fsetfilecon_war is hidden so use fsetfilecon instead.
Fixes dynamic linking-error:
util-linux/lib.a(mkswap.o): In function `mkswap_selinux_setcontext':
util-linux/mkswap.c:38: undefined reference to `fsetfilecon_raw'
Bernhard Reutner-Fischer [Thu, 24 Apr 2008 10:35:50 +0000 (10:35 -0000)]
- bump copyright year
Bernhard Reutner-Fischer [Thu, 24 Apr 2008 10:27:20 +0000 (10:27 -0000)]
- update screenshot
Denis Vlasenko [Thu, 24 Apr 2008 04:42:52 +0000 (04:42 -0000)]
lineedit: filename completion on symlinks-to-dirs should add / too
Paul Fox [Wed, 23 Apr 2008 15:31:29 +0000 (15:31 -0000)]
delay reconfig of input tty until target device has been both opened
and configured correctly.
Denis Vlasenko [Wed, 23 Apr 2008 07:22:31 +0000 (07:22 -0000)]
getopt32: fix "tar x" case; fix memory leak
Denis Vlasenko [Wed, 23 Apr 2008 07:02:02 +0000 (07:02 -0000)]
testsuite: fix du testsuite to not use changing directories
Denis Vlasenko [Wed, 23 Apr 2008 06:45:11 +0000 (06:45 -0000)]
testsuite: runtest enhancements by Cristian Ionescu-Idbohrn
Denis Vlasenko [Wed, 23 Apr 2008 06:42:49 +0000 (06:42 -0000)]
testsuite: fix
Denis Vlasenko [Wed, 23 Apr 2008 05:46:55 +0000 (05:46 -0000)]
build system: typo fix in help text
Denis Vlasenko [Wed, 23 Apr 2008 05:44:59 +0000 (05:44 -0000)]
dd: fix recent breakage (was comparing "if" with "if=" etc).
Denis Vlasenko [Tue, 22 Apr 2008 18:07:41 +0000 (18:07 -0000)]
add forgotten files. I am forgetting it all the time :(
Denis Vlasenko [Tue, 22 Apr 2008 00:16:29 +0000 (00:16 -0000)]
whitespace fixes. no code changes
Denis Vlasenko [Tue, 22 Apr 2008 00:08:27 +0000 (00:08 -0000)]
*: remove remaining instances of ".data" hack
Denis Vlasenko [Mon, 21 Apr 2008 22:04:21 +0000 (22:04 -0000)]
getopt32: fix recently broken opt_complementary "--"
Denis Vlasenko [Mon, 21 Apr 2008 21:56:07 +0000 (21:56 -0000)]
tar: move vfork into separate function (smaller code)
open_transformer: more informative error messages
function old new delta
vfork_compressor - 210 +210
writeTarFile 547 299 -248
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/1 up/down: 210/-248) Total: -38 bytes
Denis Vlasenko [Mon, 21 Apr 2008 20:27:29 +0000 (20:27 -0000)]
udhcp: fix config help text
Denis Vlasenko [Mon, 21 Apr 2008 05:07:15 +0000 (05:07 -0000)]
build system: use spaces in Kbuild files
Denis Vlasenko [Mon, 21 Apr 2008 05:05:17 +0000 (05:05 -0000)]
build system: move misplaced config entry for script applet
Denis Vlasenko [Mon, 21 Apr 2008 03:23:59 +0000 (03:23 -0000)]
tentative fix for ppc64 problems with ioctl.
Zero code size impact.
Denis Vlasenko [Mon, 21 Apr 2008 02:21:45 +0000 (02:21 -0000)]
*: s/IF_NAMESIZE/IFNAMSIZ/, regularize its use a bit.
function old new delta
strncpy_IFNAMSIZ - 13 +13
set_slave_mtu 39 37 -2
set_slave_hwaddr 52 50 -2
set_master_hwaddr 52 50 -2
set_if_flags 40 38 -2
get_if_settings 101 98 -3
ifenslave_main 1680 1661 -19
vconfig_main 306 280 -26
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/7 up/down: 13/-56) Total: -43 bytes
Denis Vlasenko [Sun, 20 Apr 2008 14:45:43 +0000 (14:45 -0000)]
xmalloc_open_read_close: use fstat to get file size (instead of lseek).
by Joakim Tjernlund <Joakim.Tjernlund AT transmode.se>
function old new delta
xmalloc_open_read_close 190 181 -9
Denis Vlasenko [Sun, 20 Apr 2008 14:25:26 +0000 (14:25 -0000)]
start_stop_daemon: stat executable only once
function old new delta
start_stop_daemon_main 954 976 +22
check 1661 1632 -29
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 22/-29) Total: -7 bytes
Denis Vlasenko [Sun, 20 Apr 2008 01:27:59 +0000 (01:27 -0000)]
libbb: prevent xmalloc_open_read_close from dying on seek failure
start_stop_daemon: use open_read_close instead of xmalloc_open_read_close
start_stop_daemon: use local structure instead of global one
function old new delta
check 1620 1661 +41
xmalloc_open_read_close 171 190 +19
start_stop_daemon_main 976 954 -22
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 60/-22) Total: 38 bytes
Denis Vlasenko [Sat, 19 Apr 2008 21:57:57 +0000 (21:57 -0000)]
remove whitespace damage. No code changes
Denis Vlasenko [Sat, 19 Apr 2008 21:30:52 +0000 (21:30 -0000)]
start_stop_daemon: optimization - do not pass paramenter, use
existing globals instead
function old new delta
start_stop_daemon_main 792 976 +184
check 1618 1620 +2
do_procinit 196 - -196
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 2/0 up/down: 186/-196) Total: -10 bytes
Denis Vlasenko [Sat, 19 Apr 2008 20:19:45 +0000 (20:19 -0000)]
start_stop_daemon: do not stop /proc scan prematurely
function old new delta
do_procinit 185 196 +11
Denis Vlasenko [Sat, 19 Apr 2008 19:32:08 +0000 (19:32 -0000)]
libbb: introduce xmalloc_xopen_read_close and use where appropriate
instead of xmalloc_open_read_close.
function old new delta
xmalloc_xopen_read_close - 34 +34
xmalloc_open_read_close 163 171 +8
passwd_main 1070 1074 +4
rexecve 254 257 +3
handle_incoming_and_exit 2657 2659 +2
parse_command 1509 1510 +1
buffer_fill_and_print 76 73 -3
evaltreenr 599 589 -10
evaltree 599 589 -10
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 5/3 up/down: 52/-23) Total: 29 bytes
Denis Vlasenko [Sat, 19 Apr 2008 19:06:23 +0000 (19:06 -0000)]
start-stop-daemon: make --exec follow symlinks
by Joakim Tjernlund <joakim.tjernlund AT transmode.se>
function old new delta
check 1591 1618 +27
start_stop_daemon_main 770 792 +22
Denis Vlasenko [Sat, 19 Apr 2008 19:05:12 +0000 (19:05 -0000)]
style fixes. no code changes
Denis Vlasenko [Sat, 19 Apr 2008 17:40:29 +0000 (17:40 -0000)]
start_stop_daemon: mark argc as unused
Bernhard Reutner-Fischer [Sat, 19 Apr 2008 09:33:22 +0000 (09:33 -0000)]
- rotate some older new to oldnews
Bernhard Reutner-Fischer [Sat, 19 Apr 2008 09:27:14 +0000 (09:27 -0000)]
- ignore "recent"; We have an RCS to serve these
Denis Vlasenko [Sat, 19 Apr 2008 04:28:21 +0000 (04:28 -0000)]
website: add 1.10.1 to news page.
Denis Vlasenko [Sat, 19 Apr 2008 04:15:13 +0000 (04:15 -0000)]
website: add a link to 1.10.1
Denis Vlasenko [Sat, 19 Apr 2008 03:44:45 +0000 (03:44 -0000)]
openvt: handle -ws correctly. By James Simmons <jsimmons AT infradead.org>
function old new delta
openvt_main 343 429 +86
Denis Vlasenko [Sat, 19 Apr 2008 03:42:47 +0000 (03:42 -0000)]
man: handle many MANPAGER directives so that they do not override
but accumulate. By Ivana Varekova <varekova AT redhat.com>
function old new delta
man_main 567 684 +117
Denis Vlasenko [Thu, 17 Apr 2008 18:04:38 +0000 (18:04 -0000)]
top: fix build failure
Denis Vlasenko [Thu, 17 Apr 2008 12:35:09 +0000 (12:35 -0000)]
httpd: add an example of POST upload CGI
Denis Vlasenko [Thu, 17 Apr 2008 01:52:28 +0000 (01:52 -0000)]
fdisk: fix a case where we can inadvertently close /proc/partitions fd early
Denis Vlasenko [Thu, 17 Apr 2008 00:12:10 +0000 (00:12 -0000)]
fdisk: do not open device twice. Complain on fdisk -l /dev/bogus.
Made enums UPPERCASE. Removed one global variable.
Added some FIXMEs.
text data bss dec hex filename
804708 645 7112 812465 c65b1 busybox_old
804685 641 7112 812438 c6596 busybox_unstripped
Denis Vlasenko [Wed, 16 Apr 2008 15:01:48 +0000 (15:01 -0000)]
arping: remove superfluous assignment
Denis Vlasenko [Tue, 15 Apr 2008 01:17:50 +0000 (01:17 -0000)]
trivial fixes to make bbox compile with gcc 4.3.0
Denis Vlasenko [Mon, 14 Apr 2008 19:56:46 +0000 (19:56 -0000)]
od: fix testsuite
Denis Vlasenko [Mon, 14 Apr 2008 19:50:06 +0000 (19:50 -0000)]
od: fix "od -b"
Denis Vlasenko [Mon, 14 Apr 2008 01:59:53 +0000 (01:59 -0000)]
ash: fix breakage introduced in rev 21481.
Fixes ash-vars/var_posix1.tests testsuite entry.
Denis Vlasenko [Sun, 13 Apr 2008 22:41:27 +0000 (22:41 -0000)]
fix typo in Config.in hext text
Denis Vlasenko [Sun, 13 Apr 2008 22:12:19 +0000 (22:12 -0000)]
make test, [ and [[ all NOFORK, for consistency.
Revamp handling of NOUSAGE applets.
function old new delta
packed_usage 24122 24104 -18
Denis Vlasenko [Sun, 13 Apr 2008 17:45:56 +0000 (17:45 -0000)]
ash: add another testsuite entry ("leaking variables" bug)
Denis Vlasenko [Sun, 13 Apr 2008 08:32:51 +0000 (08:32 -0000)]
less: fix somewhat elusive case when less gets stuck in search mode
function old new delta
read_lines 719 730 +11
goto_match 141 116 -25
Denis Vlasenko [Sun, 13 Apr 2008 08:20:00 +0000 (08:20 -0000)]
man: new applet. ~600 bytes.
Denis Vlasenko [Sun, 13 Apr 2008 02:27:39 +0000 (02:27 -0000)]
fix english in comment
Denis Vlasenko [Sun, 13 Apr 2008 02:25:53 +0000 (02:25 -0000)]
ash: speed up NOFORK code in ash by eliminating second find_applet().
some code reduction along the way.
function old new delta
run_list 1971 1981 +10
run_nofork_applet_prime 181 182 +1
unsetcmd 97 96 -1
delete_cmd_entry 54 53 -1
describe_command 399 397 -2
cmdlookup 152 150 -2
evaltreenr 602 599 -3
evaltree 602 599 -3
clearcmdentry 101 98 -3
cdcmd 675 672 -3
hashcmd 305 301 -4
find_command 933 910 -23
evalcommand 1371 1229 -142
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/11 up/down: 11/-187) Total: -176 bytes
Denis Vlasenko [Sat, 12 Apr 2008 23:02:43 +0000 (23:02 -0000)]
ash: a bit more complete POSIX subst testsuite entry
Denis Vlasenko [Sat, 12 Apr 2008 22:55:33 +0000 (22:55 -0000)]
ash: add testsuite entry for POSIX-mandated ${var#word} ${var##word}
${var%word} ${var%%word}
Denis Vlasenko [Sat, 12 Apr 2008 20:07:53 +0000 (20:07 -0000)]
ash: add FEATURE_SH_NOFORK support
Denis Vlasenko [Sat, 12 Apr 2008 20:07:08 +0000 (20:07 -0000)]
ash: do not do find_applet() twice in shellexec/tryexec
Denis Vlasenko [Sat, 12 Apr 2008 13:46:39 +0000 (13:46 -0000)]
Makefile.IMA: generate autoconf.h if needed
Makefile.IMA: use ld -gc-collect on gc -combine result
(by using trylink script). Saves ~3k.
Bernhard Reutner-Fischer [Fri, 11 Apr 2008 12:42:23 +0000 (12:42 -0000)]
- fix detection of whole-program
It helps if we first pull in the function we use for testing flags ;)
Bernhard Reutner-Fischer [Fri, 11 Apr 2008 12:31:57 +0000 (12:31 -0000)]
- also use the incoming LDFLAGS and EXTRA_LDFLAGS
This isn't perfect since it will barf on linker flags with two args like -Wl,z,now et al.
Bernhard Reutner-Fischer [Fri, 11 Apr 2008 11:59:09 +0000 (11:59 -0000)]
- erm sorry. no ipsvd here
Bernhard Reutner-Fischer [Fri, 11 Apr 2008 11:50:55 +0000 (11:50 -0000)]
- add ipsvd
Denis Vlasenko [Fri, 11 Apr 2008 11:27:29 +0000 (11:27 -0000)]
fix build with gcc -combine
Denis Vlasenko [Fri, 11 Apr 2008 10:54:37 +0000 (10:54 -0000)]
build system: use POSIX options only for cp
cp: improve comment
Bernhard Reutner-Fischer [Fri, 11 Apr 2008 08:46:56 +0000 (08:46 -0000)]
- add printutils and util-linux/volume_id
- pull in Kbuild.includes
Denis Vlasenko [Fri, 11 Apr 2008 02:49:56 +0000 (02:49 -0000)]
webpage: remove date from URL
Denis Vlasenko [Fri, 11 Apr 2008 00:28:19 +0000 (00:28 -0000)]
webpage: s/Denis/Denys/ (I don't like "denys", but it's in passport); add a link to resume
Denis Vlasenko [Thu, 10 Apr 2008 19:59:20 +0000 (19:59 -0000)]
fix "make check"
Denis Vlasenko [Thu, 10 Apr 2008 02:09:40 +0000 (02:09 -0000)]
udhcp,ipcalc: simple code shrink (Nico Erfurth <masta AT perlgolf.de>)
function old new delta
ipcalc_main 609 610 +1
read_staticlease 102 85 -17
ether_aton 17 - -17
Denis Vlasenko [Thu, 10 Apr 2008 02:03:21 +0000 (02:03 -0000)]
nameif: fix vda's breakage (Nico Erfurth <masta AT perlgolf.de>)
function old new delta
nameif_main 684 691 +7
prepend_new_eth_table 304 301 -3
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 7/-3) Total: 4 bytes
Denis Vlasenko [Wed, 9 Apr 2008 00:33:53 +0000 (00:33 -0000)]
actually adding xfuncs_printf.c :(
Denis Vlasenko [Wed, 9 Apr 2008 00:33:23 +0000 (00:33 -0000)]
Splitting xfuncs.c into two parts. No code chabges.
Denis Vlasenko [Tue, 8 Apr 2008 21:13:28 +0000 (21:13 -0000)]
Avoid linking in printf/bsearch if possible. -20k for static bbox with
"basename", "true" and "false" only.
function old new delta
full_write2_str - 25 +25
bb_show_usage 183 202 +19
main 883 898 +15
run_applet_and_exit 501 507 +6
Denis Vlasenko [Mon, 7 Apr 2008 21:11:23 +0000 (21:11 -0000)]
dd: update usage text
Denis Vlasenko [Mon, 7 Apr 2008 21:05:59 +0000 (21:05 -0000)]
mount: remove superfluous comment
Denis Vlasenko [Mon, 7 Apr 2008 21:02:35 +0000 (21:02 -0000)]
crond: add handling of "MAILTO=user" lines
sendmail: handle a case when the whole mail comes from stdin
(and no separate sender/subj is provided)
both by dronnikov AT gmail.com
function old new delta
sendgetmail_main 1509 1674 +165
SynchronizeFile 671 767 +96
packed_usage 24054 24088 +34
crond_main 1404 1420 +16
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/0 up/down: 311/0) Total: 311 bytes
Denis Vlasenko [Mon, 7 Apr 2008 00:46:29 +0000 (00:46 -0000)]
ping: add -w, -W support (James Simmons <jsimmons AT infradead.org>)
function old new delta
print_stats_and_exit - 282 +282
sendping_tail 151 231 +80
packed_usage 23976 24054 +78
ping_main 401 412 +11
arm_ioctl 13 20 +7
pingstats 259 - -259
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 4/0 up/down: 458/-259) Total: 199 bytes
Denis Vlasenko [Sun, 6 Apr 2008 07:17:02 +0000 (07:17 -0000)]
brctl: optional support for "show" cmd (by L. Gabriel Somlo <somlo AT cmu.edu>)
function old new delta
brctl_main 739 1186 +447
if_indextoname - 104 +104
static.keywords 827 841 +14
static.ops - 7 +7
packed_usage 23978 23976 -2
Denis Vlasenko [Sat, 5 Apr 2008 04:24:23 +0000 (04:24 -0000)]
init: fix askfirst not working as intended
Denis Vlasenko [Sat, 5 Apr 2008 02:46:47 +0000 (02:46 -0000)]
cpio: actually add testsuite entry...
Denis Vlasenko [Sat, 5 Apr 2008 02:44:30 +0000 (02:44 -0000)]
cpio: fix a bug where we do not extract zero-sized hardlinks
(spotted at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=466771).
Add testsuite entry for that, and another one for another bug:
we do not list hardlinks in cpio -t (not fixed).
function old new delta
get_header_cpio 884 909 +25
static.saved_hardlinks_created - 4 +4
static.pending_hardlinks 4 - -4
static.inode 4 - -4
cpio_main 1122 1060 -62
Denis Vlasenko [Sat, 5 Apr 2008 00:13:19 +0000 (00:13 -0000)]
cpio: typo fix in error message
Denis Vlasenko [Sat, 5 Apr 2008 00:07:46 +0000 (00:07 -0000)]
cpio: optional support for writing cpio files in newc format.
by pascal.bellard AT ads-lu.com.
function old new delta
cpio_main 247 1122 +875
cpio_pad4 - 58 +58
gnu_dev_major 66 99 +33
gnu_dev_minor 38 57 +19
packed_usage 23964 23978 +14
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 4/0 up/down: 999/0) Total: 999 bytes
Denis Vlasenko [Fri, 4 Apr 2008 20:38:49 +0000 (20:38 -0000)]
fbsplash: more compact support for named pipes + EOF scenario
function old new delta
fbsplash_main 1121 1043 -78
Denis Vlasenko [Wed, 2 Apr 2008 21:20:35 +0000 (21:20 -0000)]
dd: support conv=fsync
dd: support "dd --" if CONFIG_DESKTOP=y
function old new delta
static.conv_words - 28 +28
dd_main 1369 1373 +4
static.keywords 848 827 -21
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/1 up/down: 32/-21) Total: 11 bytes
Denis Vlasenko [Wed, 2 Apr 2008 20:24:09 +0000 (20:24 -0000)]
expr: fix comparisons 'a < b' where we were overflowing a-b
(not to mention that we used int, not arith_t). closes bug 2744.
Also, shrink a bit and add testsuite entry
function old new delta
nextarg 75 84 +9
tostring 38 35 -3
toarith 89 86 -3
str_value 35 32 -3
eval6 555 552 -3
int_value 29 23 -6
eval4 128 120 -8
eval3 112 104 -8
eval2 512 417 -95
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/8 up/down: 9/-129) Total: -120 bytes
Denis Vlasenko [Wed, 2 Apr 2008 13:04:19 +0000 (13:04 -0000)]
udhcpc: add -o "do not request options by default" switch
(by L. Gabriel Somlo <somlo AT cmu.edu>)
function old new delta
udhcpc_main 2513 2554 +41
static.udhcpc_longopts 226 247 +21
add_param_req_option 119 132 +13
packed_usage 23952 23964 +12
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/0 up/down: 87/0) Total: 87 bytes
Denis Vlasenko [Tue, 1 Apr 2008 17:43:03 +0000 (17:43 -0000)]
xfunc_die: resurrect (actually, it's "svn add" being forgotten again)
Denis Vlasenko [Tue, 1 Apr 2008 16:29:21 +0000 (16:29 -0000)]
basename: tiny shrink
Denis Vlasenko [Tue, 1 Apr 2008 16:13:14 +0000 (16:13 -0000)]
chpst: fix "env directory" parsing to not strip everything
after 1st whitespace. -6 bytes.