oweals/busybox.git
13 years agotftp: fix bad interaction betweel poll() and alarm(). Closes bug 3061
Denys Vlasenko [Mon, 10 Jan 2011 11:51:44 +0000 (12:51 +0100)]
tftp: fix bad interaction betweel poll() and alarm(). Closes bug 3061

This was breaking timeout handling.

function                                             old     new   delta
tftp_progress_update                                   -      45     +45
tftp_progress_done                                     -      32     +32
tftp_protocol                                       1839    1858     +19
tftp_progress_init                                     9      15      +6
tftp_main                                            298     286     -12
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 2/1 up/down: 102/-12)            Total: 90 bytes

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agostop giving root rights to dnsd, ipcrm, ipcs
Denys Vlasenko [Sun, 9 Jan 2011 20:54:50 +0000 (21:54 +0100)]
stop giving root rights to dnsd, ipcrm, ipcs

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agogetty: fix -i (was ignored)
Denys Vlasenko [Sun, 9 Jan 2011 20:44:51 +0000 (21:44 +0100)]
getty: fix -i (was ignored)

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agomodprobe-small: support compressed modules in insmod
Denys Vlasenko [Sun, 9 Jan 2011 19:57:52 +0000 (20:57 +0100)]
modprobe-small: support compressed modules in insmod

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agohush: fix wrong prompt problem on empty interactive commants
Denys Vlasenko [Fri, 7 Jan 2011 14:16:05 +0000 (15:16 +0100)]
hush: fix wrong prompt problem on empty interactive commants

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agosuppress "'fast_strtol_10' defined but not used" warning
Denys Vlasenko [Fri, 7 Jan 2011 12:51:16 +0000 (13:51 +0100)]
suppress "'fast_strtol_10' defined but not used" warning

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agomkswap: selinux build fix
Denys Vlasenko [Wed, 5 Jan 2011 10:45:44 +0000 (11:45 +0100)]
mkswap: selinux build fix

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agotar: add a note about -C and symlink-in-tarball attack
Denys Vlasenko [Tue, 4 Jan 2011 07:46:26 +0000 (08:46 +0100)]
tar: add a note about -C and symlink-in-tarball attack

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agoexplain every non-SUID_DROP applet. No code changes
Denys Vlasenko [Mon, 3 Jan 2011 12:57:49 +0000 (13:57 +0100)]
explain every non-SUID_DROP applet. No code changes

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agokill[all[5]],pkill: make signal list show signal numbers, and show RTMIN/MAX
Denys Vlasenko [Mon, 3 Jan 2011 12:08:58 +0000 (13:08 +0100)]
kill[all[5]],pkill: make signal list show signal numbers, and show RTMIN/MAX

function                                             old     new   delta
print_signames                                        31      64     +33
signals                                              224     231      +7

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agokill[all[5]],pkill: more correct, and smaller, SIGRTMIN/MAX code
Denys Vlasenko [Mon, 3 Jan 2011 11:51:13 +0000 (12:51 +0100)]
kill[all[5]],pkill: more correct, and smaller, SIGRTMIN/MAX code

function                                             old     new   delta
__libc_current_sigrtmin                                6       -      -6
__libc_current_sigrtmax                                6       -      -6
get_signum                                           339     295     -44
------------------------------------------------------------------------------
(add/remove: 0/3 grow/shrink: 0/1 up/down: 0/-56)             Total: -56 bytes

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agodate,touch: treat 2-digit years better (fit them into +-50 yrs around today)
Denys Vlasenko [Sun, 2 Jan 2011 19:02:09 +0000 (20:02 +0100)]
date,touch: treat 2-digit years better (fit them into +-50 yrs around today)

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agodate: preserve isdst value if date is in time_t (unix time) format
Alexey Soloviev [Fri, 31 Dec 2010 04:21:51 +0000 (05:21 +0100)]
date: preserve isdst value if date is in time_t (unix time) format

Signed-off-by: Alexey Soloviev <EXT-Alexey.Soloviev@nokia.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agosu: document -l in --help text. Closes bug 2761
Denys Vlasenko [Fri, 31 Dec 2010 01:52:35 +0000 (02:52 +0100)]
su: document -l in --help text. Closes bug 2761

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agoadd missed underscore
Denys Vlasenko [Thu, 30 Dec 2010 23:01:59 +0000 (00:01 +0100)]
add missed underscore

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agodate: add a comment about _SVID_SOURCE
Denys Vlasenko [Thu, 30 Dec 2010 22:56:47 +0000 (23:56 +0100)]
date: add a comment about _SVID_SOURCE

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agobzip2: plug memory leak on every processed file
Denys Vlasenko [Thu, 30 Dec 2010 03:43:35 +0000 (04:43 +0100)]
bzip2: plug memory leak on every processed file

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agolibbb: optionally support RTMIN[+n] and RTMAX[-n] signal names
Denys Vlasenko [Thu, 30 Dec 2010 00:17:03 +0000 (01:17 +0100)]
libbb: optionally support RTMIN[+n] and RTMAX[-n] signal names

function                                             old     new   delta
get_signum                                           140     336    +196
__libc_allocate_rtsig                                  -      56     +56
__libc_current_sigrtmin                                -       6      +6
__libc_current_sigrtmax                                -       6      +6
current_rtmin                                          -       4      +4
current_rtmax                                          -       4      +4
bbconfig_config_bz2                                 4961    4962      +1
------------------------------------------------------------------------------
(add/remove: 6/0 grow/shrink: 2/0 up/down: 273/0)             Total: 273 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agoblkid: optional support for TYPE="fstype"
Denys Vlasenko [Wed, 29 Dec 2010 23:40:11 +0000 (00:40 +0100)]
blkid: optional support for TYPE="fstype"

Adapted from patch created by T4ndeta <t4ndeta@gmail.com>

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agoplug a DIR* leak on error path
Denys Vlasenko [Tue, 28 Dec 2010 09:25:03 +0000 (10:25 +0100)]
plug a DIR* leak on error path

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agomodprobe: add -D option (synonym of --show-depends)
Serj Kalichev [Tue, 28 Dec 2010 03:18:18 +0000 (04:18 +0100)]
modprobe: add -D option (synonym of --show-depends)

The modern module-init-tools 3.12 has "-D" option and it works.

The --show-depends and -a options can be used together due to upstream modprobe
behaviour.

function                                             old     new   delta
do_modprobe                                          536     579     +43
packed_usage                                       28035   28042      +7
modprobe_main                                        653     657      +4
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 54/0)               Total: 54 bytes

Signed-off-by: Serj Kalichev <serj.kalichev@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agologin: apply PAM environment
Ian Wienand [Mon, 20 Dec 2010 19:33:38 +0000 (11:33 -0800)]
login: apply PAM environment

login should apply the PAM environment modified by plugins
such as pam_env.  Other 'login's do a similar thing.

I tested this by setting some env variables with pam_env which were
correctly applied.

Signed-off-by: Ian Wienand <ianw@vmware.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agocpio: allow cpio -i to take params - names of files to extract
Denys Vlasenko [Sun, 26 Dec 2010 01:22:51 +0000 (02:22 +0100)]
cpio: allow cpio -i to take params - names of files to extract

Also, improve help text

function                                             old     new   delta
packed_usage                                       28028   28035      +7
cpio_main                                            542     532     -10
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 7/-10)              Total: -3 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
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>
14 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>
14 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>
14 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>