oweals/busybox.git
13 years agomodprobe: add support for --show-depends
Serj Kalichev [Sun, 26 Dec 2010 00:56:19 +0000 (01:56 +0100)]
modprobe: add support for --show-depends

function                                             old     new   delta
modprobe_longopts                                      -      16     +16
packed_usage                                       28018   28028     +10
modprobe_main                                        648     653      +5
do_modprobe                                          580     536     -44
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 2/1 up/down: 31/-44)            Total: -13 bytes

Signed-off-by: Serj Kalichev <serj.kalichev@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agoinit: simpler handling of leading dash in commands
Denys Vlasenko [Sat, 25 Dec 2010 22:58:42 +0000 (23:58 +0100)]
init: simpler handling of leading dash in commands

function                                             old     new   delta
init_exec                                            233     219     -14

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agoudhcpc: document SIGUSRn effect in help text
Denys Vlasenko [Sat, 25 Dec 2010 05:21:54 +0000 (06:21 +0100)]
udhcpc: document SIGUSRn effect in help text

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agohush: fix FEATURE_CLEAN_UP code (was freeing unallocated memory)
Denys Vlasenko [Tue, 21 Dec 2010 20:18:12 +0000 (21:18 +0100)]
hush: fix FEATURE_CLEAN_UP code (was freeing unallocated memory)

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agosendmail: remove forgotten commenting-out on a "if (verbose)"
Denys Vlasenko [Mon, 20 Dec 2010 11:19:46 +0000 (12:19 +0100)]
sendmail: remove forgotten commenting-out on a "if (verbose)"

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agomailutils/*: add verbose option to sendmail; remove -m and -j from makemime
Denys Vlasenko [Mon, 20 Dec 2010 04:12:39 +0000 (05:12 +0100)]
mailutils/*: add verbose option to sendmail; remove -m and -j from makemime

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agotest: add examples when "%s: unknown operand" happens
Denys Vlasenko [Mon, 20 Dec 2010 02:43:20 +0000 (03:43 +0100)]
test: add examples when "%s: unknown operand" happens

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agols: remove redundant constants LIST_FILENAME and LIST_SHORT
James Youngman [Mon, 20 Dec 2010 00:36:16 +0000 (01:36 +0100)]
ls: remove redundant constants LIST_FILENAME and LIST_SHORT

LIST_FILENAME is always true and LIST_SHORT affects nothing.

Signed-off-by: James Youngman <jay@gnu.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agols: add support for -H
Denys Vlasenko [Sun, 19 Dec 2010 20:54:39 +0000 (21:54 +0100)]
ls: add support for -H

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agovolume_id: recognize compressed hibernate swap signature
James Hunt [Thu, 16 Dec 2010 12:22:38 +0000 (12:22 +0000)]
volume_id: recognize compressed hibernate swap signature

util-linux/volume_id/linux_swap.c: Added the new magic LINHIB0001
signature.

See:

https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/683605

Signed-off-by: James Hunt <james.hunt@ubuntu.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agols: tweak -e handling; better comments
Denys Vlasenko [Sun, 19 Dec 2010 15:29:08 +0000 (16:29 +0100)]
ls: tweak -e handling; better comments

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agols: print a space after each column. Closes bug 2941
Denys Vlasenko [Sun, 19 Dec 2010 06:06:44 +0000 (07:06 +0100)]
ls: print a space after each column. Closes bug 2941

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agols: make -F not follow symlinks of the command line
Denys Vlasenko [Sun, 19 Dec 2010 05:16:28 +0000 (06:16 +0100)]
ls: make -F not follow symlinks of the command line

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agols: make -x force columnar output; remove unused parts of TRIGGER code
Denys Vlasenko [Sun, 19 Dec 2010 04:43:44 +0000 (05:43 +0100)]
ls: make -x force columnar output; remove unused parts of TRIGGER code

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agols: for some options, only last takes effect. Closes bug 2959
Denys Vlasenko [Sun, 19 Dec 2010 04:05:34 +0000 (05:05 +0100)]
ls: for some options, only last takes effect. Closes bug 2959

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agochrt: -m can be used without any arguments. Closes bug 2989
Denys Vlasenko [Sun, 19 Dec 2010 03:07:50 +0000 (04:07 +0100)]
chrt: -m can be used without any arguments. Closes bug 2989

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agochrt: correct opt_complementary. Closes bug 2977
Denys Vlasenko [Sat, 18 Dec 2010 01:59:09 +0000 (02:59 +0100)]
chrt: correct opt_complementary. Closes bug 2977

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agoscripts: fix fixdep.c to let it workable in cygwin
Macpaul Lin [Fri, 17 Dec 2010 03:44:32 +0000 (11:44 +0800)]
scripts: fix fixdep.c to let it workable in cygwin

Update retrun character detection in the fixdep.c
to let it work in cygwin.

Signed-off-by: Macpaul Lin <macpaul@andestech.com>
Signed-off-by: Greentime <green.hu@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agoRevert "scripts: fix fixdep.c to let it workable in cygwin"
Denys Vlasenko [Sat, 18 Dec 2010 00:46:04 +0000 (01:46 +0100)]
Revert "scripts: fix fixdep.c to let it workable in cygwin"

This reverts commit 10c36b86574133bb1cd29ad04db64c7953b94ab5.

13 years agoscripts: fix fixdep.c to let it workable in cygwin
Greentime [Fri, 17 Dec 2010 03:44:32 +0000 (11:44 +0800)]
scripts: fix fixdep.c to let it workable in cygwin

Update return character detection in the fixdep.c
to let it workable in cygwin.

Signed-off-by: Macpaul Lin <macpaul@andestech.com>
Signed-off-by: Greentime <green.hu@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agochat: fix build breakage (variable declared in for())
Denys Vlasenko [Sat, 18 Dec 2010 00:42:50 +0000 (01:42 +0100)]
chat: fix build breakage (variable declared in for())

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agohush: fix build breakage (variable declared in for())
Denys Vlasenko [Sat, 18 Dec 2010 00:34:49 +0000 (01:34 +0100)]
hush: fix build breakage (variable declared in for())

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agonmeter: deprecate %NNNd specified, use -d MSEC instead
Denys Vlasenko [Mon, 13 Dec 2010 14:17:22 +0000 (15:17 +0100)]
nmeter: deprecate %NNNd specified, use -d MSEC instead

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agoprocps/Config.src: Add pstree to FEATURE_THREADS deps. Slight text edit
Lauri Kasanen [Wed, 8 Dec 2010 17:00:26 +0000 (19:00 +0200)]
procps/Config.src: Add pstree to FEATURE_THREADS deps. Slight text edit

Signed-off-by: Lauri Kasanen <curaga@operamail.com>
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agomore: smaller version of previous fix
Denys Vlasenko [Mon, 13 Dec 2010 13:31:59 +0000 (14:31 +0100)]
more: smaller version of previous fix

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agomore: exit if write to stdout errors out
Denys Vlasenko [Mon, 13 Dec 2010 13:28:38 +0000 (14:28 +0100)]
more: exit if write to stdout errors out

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agofix typo in README
Denys Vlasenko [Wed, 8 Dec 2010 05:08:47 +0000 (06:08 +0100)]
fix typo in README

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agotypo fix
Denys Vlasenko [Mon, 6 Dec 2010 14:44:13 +0000 (15:44 +0100)]
typo fix

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agoupdate examples/var_service/README
Denys Vlasenko [Mon, 6 Dec 2010 14:42:44 +0000 (15:42 +0100)]
update examples/var_service/README

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agoadd examples/var_service/README
Denys Vlasenko [Mon, 6 Dec 2010 14:13:58 +0000 (15:13 +0100)]
add examples/var_service/README

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agopstree: use stdin for screen size detection
Denys Vlasenko [Mon, 6 Dec 2010 11:54:24 +0000 (12:54 +0100)]
pstree: use stdin for screen size detection

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agorunsvdir: do not miss closely spaced service dir changes
Eric Lammerts [Mon, 6 Dec 2010 00:26:26 +0000 (01:26 +0100)]
runsvdir: do not miss closely spaced service dir changes

Signed-off-by: Eric Lammerts <busybox@lists.lammerts.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agotweak INSTALL_NO_USR help text
Denys Vlasenko [Sun, 5 Dec 2010 22:11:15 +0000 (23:11 +0100)]
tweak INSTALL_NO_USR help text

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agobuild system: fix "make install" to skip /usr when configured so
Joachim Nilsson [Sun, 5 Dec 2010 22:05:38 +0000 (23:05 +0100)]
build system: fix "make install" to skip /usr when configured so

Fix regression in BusyBox 1.18.0 where the NO_USR config option no longer
bites for "make install".  The busybox.mkll script stumbles without these
lines and as a result *always* creates /usr/ symlinks.

Signed-off-by: Joachim Nilsson <troglobit@vmlinux.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agopstree: another tiny shrink
Denys Vlasenko [Sun, 5 Dec 2010 18:36:58 +0000 (19:36 +0100)]
pstree: another tiny shrink

function                                             old     new   delta
pstree_main                                          327     324      -3

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agopstree: tiny shrink
Denys Vlasenko [Sun, 5 Dec 2010 15:05:03 +0000 (16:05 +0100)]
pstree: tiny shrink

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agopstree: fix width logic. +30 bytes
Lauri Kasanen [Sun, 5 Dec 2010 14:53:55 +0000 (15:53 +0100)]
pstree: fix width logic. +30 bytes

Signed-off-by: Lauri Kasanen <curaga@operamail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agopstree: new applet. +1664 bytes
Lauri Kasanen [Sun, 5 Dec 2010 04:22:29 +0000 (05:22 +0100)]
pstree: new applet. +1664 bytes

   text    data     bss     dec     hex filename
 883379     936   17192  901507   dc183 busybox_old
 885043     936   17192  903171   dc803 busybox_unstripped

Signed-off-by: Lauri Kasanen <curaga@operamail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agotypo fix
Denys Vlasenko [Sun, 5 Dec 2010 04:02:49 +0000 (05:02 +0100)]
typo fix

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agoadd if guards around include <malloc.h>
Denys Vlasenko [Sun, 5 Dec 2010 00:30:14 +0000 (01:30 +0100)]
add if guards around include <malloc.h>

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agolibbb/pw_encrypt_sha: forgot to move &ctx to 1st param here in sha hash rework
Denys Vlasenko [Wed, 1 Dec 2010 12:57:25 +0000 (13:57 +0100)]
libbb/pw_encrypt_sha: forgot to move &ctx to 1st param here in sha hash rework

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agotouch: fix help text to not show options disabled in .config
Denys Vlasenko [Wed, 1 Dec 2010 12:06:03 +0000 (13:06 +0100)]
touch: fix help text to not show options disabled in .config

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agosu: suppress "warning: unused variable 'user_buf'"
Denys Vlasenko [Tue, 30 Nov 2010 08:47:56 +0000 (09:47 +0100)]
su: suppress "warning: unused variable 'user_buf'"

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agobuild system: do not use GNU-isms in find
Chris Rees [Tue, 30 Nov 2010 08:41:39 +0000 (09:41 +0100)]
build system: do not use GNU-isms in find

Signed-off-by: Chris Rees <utisoft@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agotelnetd: write utmp record with correct pid
Denys Vlasenko [Tue, 30 Nov 2010 08:17:30 +0000 (09:17 +0100)]
telnetd: write utmp record with correct pid

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agoping: set not only IP_TTL, but also IP_MULTICAST_TTL
Denys Vlasenko [Mon, 29 Nov 2010 11:07:12 +0000 (12:07 +0100)]
ping: set not only IP_TTL, but also IP_MULTICAST_TTL

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agopatch: fix "patch at the beginning" testcase failure
Rob Landley [Mon, 29 Nov 2010 02:24:51 +0000 (03:24 +0100)]
patch: fix "patch at the beginning" testcase failure

Signed-off-by: Rob Landley <rob@landley.net>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agoexclude the case of just "busybox" from previous commit
Denys Vlasenko [Mon, 29 Nov 2010 02:21:55 +0000 (03:21 +0100)]
exclude the case of just "busybox" from previous commit

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agoif only one applet is enabled, make "busybox applet [params]" work as expected
Denys Vlasenko [Mon, 29 Nov 2010 01:55:35 +0000 (02:55 +0100)]
if only one applet is enabled, make "busybox applet [params]" work as expected

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agoping: add -t TTL option
Joachim Nilsson [Sun, 28 Nov 2010 22:01:18 +0000 (23:01 +0100)]
ping: add -t TTL option

function                                             old     new   delta
common_ping_main                                    1755    1796     +41
packed_usage                                       27954   27971     +17
bbconfig_config_bz2                                 4965    4966      +1
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 59/0)               Total: 59 bytes

Signed-off-by: Joachim Nilsson <joachim.nilsson@vmlinux.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agodhcpd: reply with NAK to clients in INIT-REBOOT state w/o existing lease
Denys Vlasenko [Sun, 28 Nov 2010 20:51:44 +0000 (21:51 +0100)]
dhcpd: reply with NAK to clients in INIT-REBOOT state w/o existing lease

We were not responding to them at all.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agouse BB_EXECVP_or_die where appropriate
Denys Vlasenko [Sun, 28 Nov 2010 03:34:09 +0000 (04:34 +0100)]
use BB_EXECVP_or_die where appropriate

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agohush: move G_x_mode define to the more appropriate place
Denys Vlasenko [Sun, 28 Nov 2010 02:59:30 +0000 (03:59 +0100)]
hush: move G_x_mode define to the more appropriate place

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agoSupport set -o xtrace/noexec alternates for set -x/-n
Dan Fandrich [Sat, 20 Nov 2010 21:05:17 +0000 (13:05 -0800)]
Support set -o xtrace/noexec alternates for set -x/-n

Signed-off-by: Dan Fandrich <dan@coneharvesters.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agohush: display useful help text
Dan Fandrich [Sun, 28 Nov 2010 00:54:39 +0000 (01:54 +0100)]
hush: display useful help text

Signed-off-by: Dan Fandrich <dan@coneharvesters.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agoadd a test for patch which we currently fail
Denys Vlasenko [Sun, 28 Nov 2010 00:41:40 +0000 (01:41 +0100)]
add a test for patch which we currently fail

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agodhcpd: smaller code: do not look for REQUESTED_IP twice
Denys Vlasenko [Sun, 28 Nov 2010 00:10:51 +0000 (01:10 +0100)]
dhcpd: smaller code: do not look for REQUESTED_IP twice

   text    data     bss     dec     hex filename
 883235     936   17192  901363   dc0f3 busybox_old
 883219     936   17192  901347   dc0e3 busybox_unstripped

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agoblkid: add TODO
Denys Vlasenko [Thu, 25 Nov 2010 06:59:17 +0000 (07:59 +0100)]
blkid: add TODO

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agogen_build_files.sh: better comment
Denys Vlasenko [Thu, 25 Nov 2010 05:55:18 +0000 (06:55 +0100)]
gen_build_files.sh: better comment

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agobuild system: fix for dash
Denys Vlasenko [Wed, 24 Nov 2010 14:06:49 +0000 (15:06 +0100)]
build system: fix for dash

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agoStart 1.19.0 development cycle
Denys Vlasenko [Tue, 23 Nov 2010 11:50:40 +0000 (12:50 +0100)]
Start 1.19.0 development cycle

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agoBump version to 1.18.0 1_18_0
Denys Vlasenko [Tue, 23 Nov 2010 08:21:44 +0000 (09:21 +0100)]
Bump version to 1.18.0

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agodate :add a comment about older toolchains
Denys Vlasenko [Mon, 22 Nov 2010 23:15:19 +0000 (00:15 +0100)]
date :add a comment about older toolchains

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agofixes for bugs discovered by randomconfig builds and tests
Denys Vlasenko [Mon, 22 Nov 2010 22:49:10 +0000 (23:49 +0100)]
fixes for bugs discovered by randomconfig builds and tests

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agofix misspelling in comment
Denys Vlasenko [Mon, 22 Nov 2010 17:13:15 +0000 (18:13 +0100)]
fix misspelling in comment

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agohush: fix improper handling of newline and hash chars in few corner cases
Denys Vlasenko [Mon, 22 Nov 2010 16:58:14 +0000 (17:58 +0100)]
hush: fix improper handling of newline and hash chars in few corner cases

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agonc: fix SEGV on -v when NC_EXTRA is off
Denys Vlasenko [Mon, 22 Nov 2010 04:30:54 +0000 (05:30 +0100)]
nc: fix SEGV on -v when NC_EXTRA is off

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agoinetd: if argv[0] is not specified, set it to program name
Mike Frysinger [Mon, 22 Nov 2010 03:57:37 +0000 (04:57 +0100)]
inetd: if argv[0] is not specified, set it to program name

With inetd.conf files that skip argv[], inetd execs programs with argc==0.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agolineedit: fix tab-completion of filenames with spaces
Mike Shal [Mon, 22 Nov 2010 02:49:18 +0000 (03:49 +0100)]
lineedit: fix tab-completion of filenames with spaces

Using ash in busybox git version dea28e1e, tab completion doesn't seem
to work properly for filenames that have special characters (such as
spaces) in them. For example, with filenames "foo bar" and "foo zap",
typing "ls fo<TAB>" correctly expands to "ls foo\ ", but then
continuing to type "b<TAB>" will produce "ls foo\ bbar", which is not
correct (the 'b' is duplicated).

Signed-off-by: Mike Shal <marfey@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agopatch: remove out-of-file build machinery
Denys Vlasenko [Mon, 22 Nov 2010 02:15:21 +0000 (03:15 +0100)]
patch: remove out-of-file build machinery

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agogen_build_files.sh: restore deleted comment
Denys Vlasenko [Sun, 21 Nov 2010 21:10:07 +0000 (22:10 +0100)]
gen_build_files.sh: restore deleted comment

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agocmp: with -s, do not report open errors
Denys Vlasenko [Sun, 21 Nov 2010 17:11:40 +0000 (18:11 +0100)]
cmp: with -s, do not report open errors

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agopatch: simplify double list helpers
Denys Vlasenko [Sun, 21 Nov 2010 04:54:28 +0000 (05:54 +0100)]
patch: simplify double list helpers

function                                             old     new   delta
dlist_free                                             -      29     +29
fail_hunk                                            130     132      +2
patch_main                                          1987    1982      -5
dlist_add                                             59      54      -5
TOY_llist_pop                                          9       -      -9
TOY_llist_free                                        54       -     -54
------------------------------------------------------------------------------
(add/remove: 1/2 grow/shrink: 1/2 up/down: 31/-73)            Total: -42 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agopatch: busyboxify by migrating from toybox to busybox helpers
Denys Vlasenko [Sun, 21 Nov 2010 04:53:34 +0000 (05:53 +0100)]
patch: busyboxify by migrating from toybox to busybox helpers

function                                             old     new   delta
get_line                                              90     128     +38
bbconfig_config_bz2                                 4959    4965      +6
makedevs_main                                       1038    1035      -3
fail_hunk                                            133     130      -3
finish_oldfile                                       174     124     -50
patch_main                                          2066    1987     -79
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/4 up/down: 44/-135)           Total: -91 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agogen_build_files.sh: rewrite with sed
Mike Frysinger [Tue, 16 Nov 2010 12:29:12 +0000 (07:29 -0500)]
gen_build_files.sh: rewrite with sed

The shell parsing of files is incredibly slow on many systems.  With
one report, the process was taking a minute or two which made people
thing the build was hung.  So rewrite the craziness with sed and proper
shell functions.  On an idle system, this cut the runtime by half.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agoallow SKIP_STRIP to be set in the env
Mike Frysinger [Tue, 16 Nov 2010 14:01:30 +0000 (09:01 -0500)]
allow SKIP_STRIP to be set in the env

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agodepmod.pl: add recursive sanity check
Mike Frysinger [Tue, 16 Nov 2010 12:15:00 +0000 (07:15 -0500)]
depmod.pl: add recursive sanity check

If modules contain circular dependencies, the depmod script will follow
the circle forever.  So add a simple sanity check to abort rather than
chew up the CPU.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years agolineedit: create history files with mode 0600
Wolfram Sang [Mon, 15 Nov 2010 01:58:28 +0000 (02:58 +0100)]
lineedit: create history files with mode 0600

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agohush: add support for "set -o pipefail"
Denys Vlasenko [Sun, 14 Nov 2010 01:01:50 +0000 (02:01 +0100)]
hush: add support for "set -o pipefail"

function                                             old     new   delta
checkjobs                                            467     517     +50
builtin_set                                          259     286     +27
o_opt_strings                                          -      10     +10
hush_main                                           1011    1013      +2
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 3/0 up/down: 89/0)               Total: 89 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agohush: preparatory patch for set -o pipefail support
Denys Vlasenko [Sun, 14 Nov 2010 00:59:55 +0000 (01:59 +0100)]
hush: preparatory patch for set -o pipefail support

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agolibbb: remove unused variable
Lauri Kasanen [Sat, 13 Nov 2010 22:16:05 +0000 (23:16 +0100)]
libbb: remove unused variable

Signed-off-by: Lauri Kasanen <curaga@operamail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agodeluser: do not warn spuriously when deleting group by deluser
Tito Ragusa [Mon, 8 Nov 2010 04:44:11 +0000 (05:44 +0100)]
deluser: do not warn spuriously when deleting group by deluser

Signed-off-by: Tito Ragusa <farmatito@tiscali.it>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agodelgroup: correct the check for users who still use the group
Denys Vlasenko [Sun, 7 Nov 2010 16:51:58 +0000 (17:51 +0100)]
delgroup: correct the check for users who still use the group

Signed-off-by: Tito <farmatito@tiscali.it>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotypo fix
Denys Vlasenko [Sat, 6 Nov 2010 21:17:30 +0000 (22:17 +0100)]
typo fix

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
14 years agodeluser: 2nd attempt at deluser/delgroup size reduction and improvements
Tito Ragusa [Sat, 6 Nov 2010 21:14:55 +0000 (22:14 +0100)]
deluser: 2nd attempt at deluser/delgroup size reduction and improvements

Signed-off-by: Tito Ragusa <farmatito@tiscali.it>
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
14 years agopowertop: code shrink
Maksym Kryzhanovskyy [Sat, 6 Nov 2010 00:56:19 +0000 (01:56 +0100)]
powertop: code shrink

function                                             old     new   delta
process_timer_stats                                  490     449     -41

Signed-off-by: Maksym Kryzhanovskyy <xmaks@email.cz>
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
14 years agoMerge branch 'master' of git+ssh://busybox.net/var/lib/git/busybox
Denys Vlasenko [Sat, 6 Nov 2010 00:51:07 +0000 (01:51 +0100)]
Merge branch 'master' of git+ssh://busybox.net/var/lib/git/busybox

14 years agols: fix -lg to show group (was showing user)
Denys Vlasenko [Fri, 5 Nov 2010 23:46:57 +0000 (00:46 +0100)]
ls: fix -lg to show group (was showing user)

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
14 years agopowertop: fix last line detection in process_timer_stats()
Denys Vlasenko [Thu, 4 Nov 2010 22:30:11 +0000 (23:30 +0100)]
powertop: fix last line detection in process_timer_stats()

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agopowertop: replace erroneous \n with \0; make numberic conversion more robust
Denys Vlasenko [Thu, 4 Nov 2010 22:22:40 +0000 (23:22 +0100)]
powertop: replace erroneous \n with \0; make numberic conversion more robust

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoip: Fix command line option parsing of "ip route get ..."
Christian Hornung [Wed, 3 Nov 2010 13:08:00 +0000 (14:08 +0100)]
ip: Fix command line option parsing of "ip route get ..."

I found and fixed a bug in the command line options parsing of "ip route get":
It was impossible to get any option other than the IP address
recognized correctly, and e.g. the command "ip route get connected"
just hung up infinitely in the options parsing loop instead of
printing an error message.

Signed-off-by: Christian Hornung <chhornung@googlemail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agopowertop: code shrink
Maksym Kryzhanovskyy [Thu, 4 Nov 2010 07:41:57 +0000 (08:41 +0100)]
powertop: code shrink

function                                             old     new   delta
read_cstate_counts                                   355     360      +5
print_intel_cstates                                  494     499      +5
process_timer_stats                                  554     480     -74
process_irq_counts                                   765     530    -235
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/2 up/down: 10/-309)          Total: -299 bytes

Signed-off-by: Maksym Kryzhanovskyy <xmaks@email.cz>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotype fix in comment
Denys Vlasenko [Wed, 3 Nov 2010 01:48:43 +0000 (02:48 +0100)]
type fix in comment

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agorename archival/libunarchive -> archival/libarchive; move bz/ into it
Denys Vlasenko [Wed, 3 Nov 2010 01:38:31 +0000 (02:38 +0100)]
rename archival/libunarchive -> archival/libarchive; move bz/ into it

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years ago*: move lzo compressor code to archival/libunarchive/. No code changes
Denys Vlasenko [Wed, 3 Nov 2010 01:27:49 +0000 (02:27 +0100)]
*: move lzo compressor code to archival/libunarchive/. No code changes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoinit: if PID!=1, show clearer error message. move usage text closer to main()
Denys Vlasenko [Tue, 2 Nov 2010 19:13:03 +0000 (20:13 +0100)]
init: if PID!=1, show clearer error message. move usage text closer to main()

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agowhitespace fix
Denys Vlasenko [Mon, 1 Nov 2010 01:19:47 +0000 (02:19 +0100)]
whitespace fix

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agodecompress_bunzip2: reinstate erroneously deleted RETVAL_SHORT_WRITE
Denys Vlasenko [Mon, 1 Nov 2010 00:38:54 +0000 (01:38 +0100)]
decompress_bunzip2: reinstate erroneously deleted RETVAL_SHORT_WRITE

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoumount: cleanup and code shrink
Rob Landley [Sun, 31 Oct 2010 23:43:34 +0000 (00:43 +0100)]
umount: cleanup and code shrink

Signed-off-by: Rob Landley <rob@landley.net>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agostat: fix mtime/ctime/atime
Eric Lammerts [Sat, 30 Oct 2010 00:48:20 +0000 (02:48 +0200)]
stat: fix mtime/ctime/atime

If you set CONFIG_FEATURE_STAT_FORMAT=n, two of the three printed
times are wrong, because a global buffer is reused. Fix below.

Signed-off-by: Eric Lammerts <busybox@lists.lammerts.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>