oweals/busybox.git
15 years agodepmod.pl: recurse through module dependencies
Mike Frysinger [Thu, 9 Jul 2009 04:28:48 +0000 (00:28 -0400)]
depmod.pl: recurse through module dependencies

The previous fix up loaded dependencies two deep, but really that was an
incomplete fix as we need to load dependencies all the way down.  So change
the code to run recursively through all dependencies.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agotar: handle 256-base encoding in mtime
Denys Vlasenko [Wed, 8 Jul 2009 16:58:09 +0000 (18:58 +0200)]
tar: handle 256-base encoding in mtime

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agomove libc related stuff out of platform.h
Denys Vlasenko [Wed, 8 Jul 2009 00:58:38 +0000 (02:58 +0200)]
move libc related stuff out of platform.h

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoudhcpd: fix a bug in add_lease where it was reading at [-1]
Denys Vlasenko [Tue, 7 Jul 2009 12:59:30 +0000 (14:59 +0200)]
udhcpd: fix a bug in add_lease where it was reading at [-1]

It is not correct when we read lease file!

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoreformime: small code and style fixes. no material changes in behavior.
Denys Vlasenko [Tue, 7 Jul 2009 05:52:34 +0000 (07:52 +0200)]
reformime: small code and style fixes. no material changes in behavior.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agotweak MD5 config text
Denys Vlasenko [Mon, 6 Jul 2009 21:24:20 +0000 (23:24 +0200)]
tweak MD5 config text

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agopgrep/pkill: support -s and -P options
Denys Vlasenko [Sun, 5 Jul 2009 22:00:12 +0000 (00:00 +0200)]
pgrep/pkill: support -s and -P options

function                                             old     new   delta
pgrep_main                                           510     580     +70
packed_usage                                       26575   26616     +41
act                                                  234     236      +2
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 113/0)             Total: 113 bytes

Signed-off-by: Rob Landley <rob@landley.net>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agotweak sendmail and makemime help texts
Denys Vlasenko [Sun, 5 Jul 2009 19:46:37 +0000 (21:46 +0200)]
tweak sendmail and makemime help texts

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agolibbb/sha: #undef macro names before #defining them.
Denys Vlasenko [Sun, 5 Jul 2009 18:34:38 +0000 (20:34 +0200)]
libbb/sha: #undef macro names before #defining them.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agocp: make "non-POSIX" cp a bit more consistent
Denys Vlasenko [Sun, 5 Jul 2009 11:24:17 +0000 (13:24 +0200)]
cp: make "non-POSIX" cp a bit more consistent

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agocp: by popular demand, make it POSIX compliant (but less safe)
Denys Vlasenko [Sun, 5 Jul 2009 10:49:29 +0000 (12:49 +0200)]
cp: by popular demand, make it POSIX compliant (but less safe)

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agodf: fix "df /"
Denys Vlasenko [Sun, 5 Jul 2009 02:50:36 +0000 (04:50 +0200)]
df: fix "df /"

also, clean up mount checks in mkfs/fsck.

function                                             old     new   delta
find_mount_point                                     243     261     +18
sha1_process_block64                                 497     510     +13
find_main                                            436     444      +8
display_speed                                         85      90      +5
df_main                                              795     793      -2
parse_command                                       1463    1460      -3
static.ignored_mounts                                  8       -      -8
mkfs_minix_main                                     2962    2937     -25
fsck_minix_main                                     3065    2970     -95
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 4/4 up/down: 44/-133)           Total: -89 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoPatches to enable FreeBSD build
Denys Vlasenko [Sun, 5 Jul 2009 01:34:12 +0000 (03:34 +0200)]
Patches to enable FreeBSD build

platform.h: fix wrong check for endianness, fix lchown
aliasing to chown on uclibc.

Code seems to not be affected in my testing.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agofix dependencies of FEATURE_GETOPT_LONG
Denys Vlasenko [Sat, 4 Jul 2009 14:50:43 +0000 (16:50 +0200)]
fix dependencies of FEATURE_GETOPT_LONG

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agops: conditionally support additional -o FIELDs
Denys Vlasenko [Fri, 3 Jul 2009 20:16:17 +0000 (22:16 +0200)]
ps: conditionally support additional -o FIELDs

function                                             old     new   delta
procps_scan                                         1409    1642    +233
out_spec                                             220     300     +80
func_ruser                                             -      36     +36
func_rgroup                                            -      36     +36
func_group                                            13      49     +36
func_nice                                              -      29     +29
buffer_fill_and_print                                179     196     +17
send_tree                                            355     360      +5
mkfs_vfat_main                                      1604    1609      +5
display_speed                                         85      90      +5
scriptreplay_main                                    194     197      +3
find_out_spec                                         55      58      +3
changepath                                           192     195      +3
sha1_process_block64                                 497     484     -13
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 10/1 up/down: 491/-13)          Total: 478 bytes

Signed-off-by: David Krakov <krakov@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agosvlogd: do not overrun read buffer (fixes bug 439)
Denys Vlasenko [Fri, 3 Jul 2009 16:31:23 +0000 (18:31 +0200)]
svlogd: do not overrun read buffer (fixes bug 439)

function                                             old     new   delta
rotate                                               513     534     +21
logdirs_reopen                                      1291    1296      +5
processorstart                                       409     385     -24

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoudhcpc: support option 0x79 (static routes) (part of bug 341)
Denys Vlasenko [Fri, 3 Jul 2009 16:14:03 +0000 (18:14 +0200)]
udhcpc: support option 0x79 (static routes) (part of bug 341)

function                                             old     new   delta
xmalloc_optname_optval                                 -     583    +583
dhcp_option_strings                                  258     266      +8
dhcp_options                                          70      72      +2
len_of_option_as_string                               11      12      +1
dhcp_option_lengths                                   11      12      +1
udhcp_run_script                                    1187     669    -518
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 4/1 up/down: 595/-518)           Total: 77 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoudhcp: dname_dec may return NULL, account for that case
Denys Vlasenko [Fri, 3 Jul 2009 14:59:59 +0000 (16:59 +0200)]
udhcp: dname_dec may return NULL, account for that case

Other random cleanips included...

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoMerge branch 'master' of git+ssh://vda@busybox.net/var/lib/git/busybox
Denys Vlasenko [Fri, 3 Jul 2009 14:59:37 +0000 (16:59 +0200)]
Merge branch 'master' of git+ssh://vda@busybox.net/var/lib/git/busybox

15 years agols: make --color more compatible with coreutils
Denys Vlasenko [Fri, 3 Jul 2009 10:22:19 +0000 (12:22 +0200)]
ls: make --color more compatible with coreutils

function                                             old     new   delta
static.color_str                                       -      34     +34
static.ls_longopts                                     -       9      +9
ls_color_opt                                           9       -      -9
ls_main                                              865     843     -22
------------------------------------------------------------------------------
(add/remove: 2/1 grow/shrink: 0/1 up/down: 43/-31)             Total: 12 bytes
   text    data     bss     dec     hex filename
 820145     450    7692  828287   ca37f busybox_old
 820144     450    7692  828286   ca37e busybox_unstripped

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agotest commit
Bernhard Reutner-Fischer [Thu, 2 Jul 2009 23:19:49 +0000 (01:19 +0200)]
test commit

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
15 years agotest commit
Bernhard Reutner-Fischer [Thu, 2 Jul 2009 23:15:54 +0000 (01:15 +0200)]
test commit

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
15 years agotest commit
Bernhard Reutner-Fischer [Thu, 2 Jul 2009 23:06:15 +0000 (01:06 +0200)]
test commit

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
15 years agols: fix --color handling. Closes bug 435.
Denys Vlasenko [Thu, 2 Jul 2009 12:25:51 +0000 (14:25 +0200)]
ls: fix --color handling. Closes bug 435.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agomdev: be more permissive on errors (dont die): mdev -s users want that
Denys Vlasenko [Thu, 2 Jul 2009 11:17:10 +0000 (13:17 +0200)]
mdev: be more permissive on errors (dont die): mdev -s users want that

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agomdev: set $MDEV correctly for renamed nodes
Denys Vlasenko [Thu, 2 Jul 2009 11:07:11 +0000 (13:07 +0200)]
mdev: set $MDEV correctly for renamed nodes

function                                             old     new   delta
make_device                                         1467    1502     +35
build_alias                                           78       -     -78

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoAdded kernel patch for /proc/self/exe to examples
Denys Vlasenko [Thu, 2 Jul 2009 10:04:50 +0000 (12:04 +0200)]
Added kernel patch for /proc/self/exe to examples

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agowget: remove IPv6 scope id in Host: field (apache compat)
Denys Vlasenko [Tue, 30 Jun 2009 18:36:27 +0000 (20:36 +0200)]
wget: remove IPv6 scope id in Host: field (apache compat)

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agosed: fix handling of 1d;1,3p and 1d;1,REGEXp
Denys Vlasenko [Tue, 30 Jun 2009 17:19:37 +0000 (19:19 +0200)]
sed: fix handling of 1d;1,3p and 1d;1,REGEXp

function                                             old     new   delta
process_files                                       2084    2173     +89

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agowget: fix redirection from HTTP to FTP server
Denys Vlasenko [Sun, 28 Jun 2009 01:33:57 +0000 (03:33 +0200)]
wget: fix redirection from HTTP to FTP server

while at it, sanitize redirection in general; add printout
of every redirection hop; make sure we won't print any non-ASCII
garbage from remote server in error meesages.

function                                             old     new   delta
sanitize_string                                        -      14     +14
parse_url                                            294     301      +7
gethdr                                               190     197      +7
wget_main                                           2326    2331      +5
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 3/0 up/down: 33/0)               Total: 33 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agowget: remove strange *&var construct.
Denys Vlasenko [Sat, 27 Jun 2009 23:23:35 +0000 (01:23 +0200)]
wget: remove strange *&var construct.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agowget: code shrink by splitting main() into easier-to-optimize functions
Denys Vlasenko [Sat, 27 Jun 2009 23:02:24 +0000 (01:02 +0200)]
wget: code shrink by splitting main() into easier-to-optimize functions

function                                             old     new   delta
retrieve_file_data                                     -     356    +356
wget_main                                           2793    2326    -467
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/1 up/down: 356/-467)         Total: -111 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoUpdate a comment, no code changes
Denys Vlasenko [Sat, 27 Jun 2009 20:09:28 +0000 (22:09 +0200)]
Update a comment, no code changes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agodevice matching against UUIDs: do not try floppies
Denys Vlasenko [Sat, 27 Jun 2009 19:58:25 +0000 (21:58 +0200)]
device matching against UUIDs: do not try floppies

function                                             old     new   delta
uuidcache_check_device                               255     292     +37

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agotrylink: don't use ld --gc-sections if ld doesn't support it
Denys Vlasenko [Fri, 26 Jun 2009 22:24:35 +0000 (00:24 +0200)]
trylink: don't use ld --gc-sections if ld doesn't support it

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoprintf: (allegedly) fix testsuite failure
Denys Vlasenko [Fri, 26 Jun 2009 22:07:23 +0000 (00:07 +0200)]
printf: (allegedly) fix testsuite failure

Signed-off-by: Colin Watson <cjwatson@ubuntu.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoudhcpc: fix a read error loop (e.g.: device is down) blocking TERM
Denys Vlasenko [Fri, 26 Jun 2009 21:23:16 +0000 (23:23 +0200)]
udhcpc: fix a read error loop (e.g.: device is down) blocking TERM

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoupdates for supporting Linux kernel build and initrd utilities
Denys Vlasenko [Thu, 25 Jun 2009 23:55:45 +0000 (01:55 +0200)]
updates for supporting Linux kernel build and initrd utilities

cpio: --verbose, --quiet, --to-stdout
test: make 64-bit math enable-able for hush too
dnsdomainname: alias to hostname -d
hostname: support --fqdn, --domain, --file

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agomdev: fix the case when move rule deletes node with name == device_name
Denys Vlasenko [Sun, 21 Jun 2009 23:31:12 +0000 (01:31 +0200)]
mdev: fix the case when move rule deletes node with name == device_name

Signed-off-by: Jean Wolter <jw5@os.inf.tu-dresden.de>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agotrim/regularize usage texts. -92 bytes
Denys Vlasenko [Sat, 20 Jun 2009 01:59:02 +0000 (03:59 +0200)]
trim/regularize usage texts. -92 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoudhcp: fix trivial compile error
Denys Vlasenko [Fri, 19 Jun 2009 11:51:29 +0000 (13:51 +0200)]
udhcp: fix trivial compile error

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agomkswap: remove configuration for v0 support
Denys Vlasenko [Fri, 19 Jun 2009 11:45:01 +0000 (13:45 +0200)]
mkswap: remove configuration for v0 support

mkswap hasn't had v0 support since commit
d893b120bae5a9bdef4cfda2df5e62867d6b1cd0; it doesn't seem to make sense
to offer it for configuration.

Signed-off-by: Colin Watson <cjwatson@ubuntu.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agomkswap: separate UUID feature
Denys Vlasenko [Fri, 19 Jun 2009 11:14:48 +0000 (13:14 +0200)]
mkswap: separate UUID feature

Signed-off-by: Colin Watson <cjwatson@ubuntu.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agogetopt: FEATURE_GETOPT_LONG for -l; rename GETOPT_LONG to LONG_OPTS
Denys Vlasenko [Fri, 19 Jun 2009 10:10:38 +0000 (12:10 +0200)]
getopt: FEATURE_GETOPT_LONG for -l; rename GETOPT_LONG to LONG_OPTS

Signed-off-by: Colin Watson <cjwatson@ubuntu.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agomount: support -i; pass through -f and -n to helpers as necessary
Denys Vlasenko [Fri, 19 Jun 2009 09:48:29 +0000 (11:48 +0200)]
mount: support -i; pass through -f and -n to helpers as necessary

function                                             old     new   delta
mount_it_now                                         298     345     +47
singlemount                                          776     772      -4

Signed-off-by: Colin Watson <cjwatson@ubuntu.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agomkswap: accidentally committed wrong patch. fix it up
Denys Vlasenko [Fri, 19 Jun 2009 09:00:52 +0000 (11:00 +0200)]
mkswap: accidentally committed wrong patch. fix it up

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agomkswap: improve randomness of UUID generation set version/variant bits
Denys Vlasenko [Fri, 19 Jun 2009 07:49:01 +0000 (09:49 +0200)]
mkswap: improve randomness of UUID generation set version/variant bits

function                                             old     new   delta
mkswap_main                                          317     410     +93

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoprintf: fix exit code on conversion error
Denys Vlasenko [Thu, 18 Jun 2009 20:22:04 +0000 (22:22 +0200)]
printf: fix exit code on conversion error

Signed-off-by: Colin Watson <cjwatson@ubuntu.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agomkswap: generate UUID if CONFIG_DESKTOP=y. +110 bytes
Denys Vlasenko [Thu, 18 Jun 2009 19:55:47 +0000 (21:55 +0200)]
mkswap: generate UUID if CONFIG_DESKTOP=y. +110 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agotweak to config wording, no code changes
Denys Vlasenko [Thu, 18 Jun 2009 17:59:51 +0000 (19:59 +0200)]
tweak to config wording, no code changes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agotweak Config texts and some broken English elsewhere
Denys Vlasenko [Thu, 18 Jun 2009 11:23:58 +0000 (13:23 +0200)]
tweak Config texts and some broken English elsewhere

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agofsync: new applet by Pekka Pessi (Pekka.Pessi AT nokia.com)
Denys Vlasenko [Thu, 18 Jun 2009 06:20:02 +0000 (08:20 +0200)]
fsync: new applet by Pekka Pessi (Pekka.Pessi AT nokia.com)

function                                             old     new   delta
fsync_main                                             -     128    +128
fdatasync                                              -      39     +39
packed_usage                                       26596   26622     +26
applet_names                                        2098    2104      +6
applet_main                                         1240    1244      +4
applet_nameofs                                       620     622      +2
applet_install_loc                                   155     156      +1
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 5/0 up/down: 206/0)             Total: 206 bytes

Signed-off-by: Alexander Shishkin <virtuoso@slind.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agomodprobe: do not use ->probed_name blidly
Denys Vlasenko [Wed, 17 Jun 2009 18:33:50 +0000 (20:33 +0200)]
modprobe: do not use ->probed_name blidly

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agomodprobe: correct exitcode handling and error messages with respect to -q
Denys Vlasenko [Wed, 17 Jun 2009 16:46:06 +0000 (18:46 +0200)]
modprobe: correct exitcode handling and error messages with respect to -q

function                                             old     new   delta
do_modprobe                                          319     339     +20
bb_delete_module                                      10      26     +16
moderror                                              62      71      +9
bb_init_module                                       112     119      +7
modprobe_main                                        488     494      +6
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 5/0 up/down: 58/0)               Total: 58 bytes

Signed-off-by: Gilles Espinasse <g.esp@free.fr>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoswitch_root: allow /init to be a symlink; add doc (thanks Rob!)
Denys Vlasenko [Wed, 17 Jun 2009 12:03:24 +0000 (14:03 +0200)]
switch_root: allow /init to be a symlink; add doc (thanks Rob!)

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoudhcp: cosmetics in arpping.c, no code changes
Denys Vlasenko [Wed, 17 Jun 2009 11:56:50 +0000 (13:56 +0200)]
udhcp: cosmetics in arpping.c, no code changes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoudhcp: convert old-style logging in print_static_leases
Denys Vlasenko [Wed, 17 Jun 2009 11:44:04 +0000 (13:44 +0200)]
udhcp: convert old-style logging in print_static_leases

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoudhcp: logging improvements, field and variable renames
Denys Vlasenko [Wed, 17 Jun 2009 11:24:03 +0000 (13:24 +0200)]
udhcp: logging improvements, field and variable renames

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoexamples/udhcp/udhcpd.conf: update
Denys Vlasenko [Wed, 17 Jun 2009 11:22:26 +0000 (13:22 +0200)]
examples/udhcp/udhcpd.conf: update

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoudhcpc: fix format of one log message
Denys Vlasenko [Wed, 17 Jun 2009 09:58:11 +0000 (11:58 +0200)]
udhcpc: fix format of one log message

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoudhcp: shorten mac len from 16 to 6 in lease file
Denys Vlasenko [Wed, 17 Jun 2009 09:57:09 +0000 (11:57 +0200)]
udhcp: shorten mac len from 16 to 6 in lease file

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoudhcp: change UDHCP_DEBUG into int, make verbosity selectable with -v
Denys Vlasenko [Wed, 17 Jun 2009 09:54:52 +0000 (11:54 +0200)]
udhcp: change UDHCP_DEBUG into int, make verbosity selectable with -v

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoudhcp: add a few TODOs
Denys Vlasenko [Tue, 16 Jun 2009 10:05:21 +0000 (12:05 +0200)]
udhcp: add a few TODOs

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoudhcp: rename server/client_config.arp to server_mac and client_mac
Denys Vlasenko [Tue, 16 Jun 2009 10:04:23 +0000 (12:04 +0200)]
udhcp: rename server/client_config.arp to server_mac and client_mac

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoudhcp: cleanup of static lease handling
Denys Vlasenko [Tue, 16 Jun 2009 10:03:12 +0000 (12:03 +0200)]
udhcp: cleanup of static lease handling

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoudhcp: rename sprintip to sprint_nip, siaddr to siaddr_nip
Denys Vlasenko [Tue, 16 Jun 2009 08:25:35 +0000 (10:25 +0200)]
udhcp: rename sprintip to sprint_nip, siaddr to siaddr_nip

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoudhcp: rename giaddr to gateway_nip and server to server_nip
Denys Vlasenko [Tue, 16 Jun 2009 08:23:55 +0000 (10:23 +0200)]
udhcp: rename giaddr to gateway_nip and server to server_nip

"nip" stands for "IP in network order"

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoudhcp: rename fields in struct dhcpOfferedAddr
Denys Vlasenko [Tue, 16 Jun 2009 08:23:01 +0000 (10:23 +0200)]
udhcp: rename fields in struct dhcpOfferedAddr

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoudhcpd: don't fail ARP check if returned MAC matches client's one
Denys Vlasenko [Tue, 16 Jun 2009 08:20:27 +0000 (10:20 +0200)]
udhcpd: don't fail ARP check if returned MAC matches client's one

Also, do not unicast replies to yiaddr.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoinstall: compat fix for mode of created files.
Denys Vlasenko [Mon, 15 Jun 2009 16:13:51 +0000 (18:13 +0200)]
install: compat fix for mode of created files.

By Mat Hostetter (mhostetter AT tilera.com)

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoseq: fix input handling in non-C locales
Denys Vlasenko [Mon, 15 Jun 2009 13:47:58 +0000 (15:47 +0200)]
seq: fix input handling in non-C locales

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agovi: do not accept uppercase comments (compat). Closes bug 397.
Denys Vlasenko [Mon, 15 Jun 2009 10:44:11 +0000 (12:44 +0200)]
vi: do not accept uppercase comments (compat). Closes bug 397.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agolibbb: stop using bb_strtod for now
Denys Vlasenko [Mon, 15 Jun 2009 07:50:54 +0000 (09:50 +0200)]
libbb: stop using bb_strtod for now

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoseq: fix testsuite failures
Denys Vlasenko [Mon, 15 Jun 2009 07:16:27 +0000 (09:16 +0200)]
seq: fix testsuite failures

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoash: fix . builtin
Denys Vlasenko [Sun, 14 Jun 2009 17:42:12 +0000 (19:42 +0200)]
ash: fix . builtin

Also, move [[ ]] comment to test.c and expand it

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agofix or document testsuite failures
Denys Vlasenko [Sat, 13 Jun 2009 21:41:57 +0000 (23:41 +0200)]
fix or document testsuite failures

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agotest, tcpsvd, tcpsvd: shrink
Denys Vlasenko [Sat, 13 Jun 2009 20:49:08 +0000 (22:49 +0200)]
test, tcpsvd, tcpsvd: shrink

function                                             old     new   delta
nexpr                                                825     826      +1
tcpudpsvd_main                                      1830    1822      -8
test_main                                            257     247     -10
binop                                                584     525     -59
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/3 up/down: 1/-77)             Total: -76 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agofix permissions in testsuite
Denys Vlasenko [Sat, 13 Jun 2009 14:35:20 +0000 (16:35 +0200)]
fix permissions in testsuite

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoUpdate POSIX compliance table
Denys Vlasenko [Fri, 12 Jun 2009 13:32:51 +0000 (15:32 +0200)]
Update POSIX compliance table

Signed-off-by: Max Panasenkov <panmax@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoreadlink: support -n, -v, -s and -q too if support for -f is requested
Denys Vlasenko [Fri, 12 Jun 2009 11:16:21 +0000 (13:16 +0200)]
readlink: support -n, -v, -s and -q too if support for -f is requested

function                                             old     new   delta
readlink_main                                        104     135     +31
packed_usage                                       26322   26321      -1
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 31/-1)              Total: 30 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoash: revert over-zealous usage of FAST_FUNC
Denys Vlasenko [Thu, 11 Jun 2009 17:30:19 +0000 (19:30 +0200)]
ash: revert over-zealous usage of FAST_FUNC

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoadded comments about [[ ]] to ash and hush. no code changes
Denys Vlasenko [Wed, 10 Jun 2009 12:09:48 +0000 (14:09 +0200)]
added comments about [[ ]] to ash and hush. no code changes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agohush: add HUSH_BASH_COMPAT, make [[ special handling depend on it
Denys Vlasenko [Wed, 10 Jun 2009 11:39:35 +0000 (13:39 +0200)]
hush: add HUSH_BASH_COMPAT, make [[ special handling depend on it

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agotelnetd: more compact version of the fix for stray open fds
Denys Vlasenko [Wed, 10 Jun 2009 11:38:08 +0000 (13:38 +0200)]
telnetd: more compact version of the fix for stray open fds

function                                             old     new   delta
telnetd_main                                        1520    1527      +7
make_new_session                                     510     416     -94
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 7/-94)             Total: -87 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agotelnetd: properly close fds in child
Denys Vlasenko [Tue, 9 Jun 2009 21:01:24 +0000 (23:01 +0200)]
telnetd: properly close fds in child

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agohush: specially handle [[ - suppress globbing & multiword expansion
Denys Vlasenko [Tue, 9 Jun 2009 16:40:52 +0000 (18:40 +0200)]
hush: specially handle [[ - suppress globbing & multiword expansion

It's a bashism, but is surprisingly easy to do and costs very little code.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agorandomconfig fixes
Denys Vlasenko [Tue, 9 Jun 2009 16:40:07 +0000 (18:40 +0200)]
randomconfig fixes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agodiff: tiny compat tweak
Denys Vlasenko [Tue, 9 Jun 2009 10:55:13 +0000 (12:55 +0200)]
diff: tiny compat tweak

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agohush: drop REDIRECT_INVALID; other minor tweaks
Denys Vlasenko [Sun, 7 Jun 2009 14:05:04 +0000 (16:05 +0200)]
hush: drop REDIRECT_INVALID; other minor tweaks

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agohush: fix a segfault in export builtin
Denys Vlasenko [Sun, 7 Jun 2009 14:04:17 +0000 (16:04 +0200)]
hush: fix a segfault in export builtin

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agostop using non-standard macro, use WEXITSTATUS instead
Denys Vlasenko [Sun, 7 Jun 2009 14:02:00 +0000 (16:02 +0200)]
stop using non-standard macro, use WEXITSTATUS instead

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agohush: make builtins work in pipes (eval ... | ...) on NOMMU
Denys Vlasenko [Sat, 6 Jun 2009 18:59:55 +0000 (20:59 +0200)]
hush: make builtins work in pipes (eval ... | ...) on NOMMU

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoifupdown: if $PATH is not set, do not set it to "" in children
Denys Vlasenko [Fri, 5 Jun 2009 19:53:11 +0000 (21:53 +0200)]
ifupdown: if $PATH is not set, do not set it to "" in children

Also random code shrink:

function                                             old     new   delta
set_environ                                          328     330      +2
static.label_buf                                       4       -      -4
startup_PATH                                           4       -      -4
my_environ                                             4       -      -4
ifupdown_main                                       2148    2134     -14
setlocalenv                                          117      90     -27
get_var                                              139     112     -27
------------------------------------------------------------------------------
(add/remove: 0/3 grow/shrink: 1/3 up/down: 2/-80)             Total: -78 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoftpd: allow multiple -S options to increase verbosity too, like -v
Denys Vlasenko [Fri, 5 Jun 2009 18:42:40 +0000 (20:42 +0200)]
ftpd: allow multiple -S options to increase verbosity too, like -v

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoprintf: accept negative numbers for %x; sh: overflowed numbers are 0
Denys Vlasenko [Fri, 5 Jun 2009 14:24:29 +0000 (16:24 +0200)]
printf: accept negative numbers for %x; sh: overflowed numbers are 0

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoinetd: comment why we redirect stderr to network
Denys Vlasenko [Fri, 5 Jun 2009 13:35:36 +0000 (15:35 +0200)]
inetd: comment why we redirect stderr to network

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years ago*: reduce #ifdef forest
Denys Vlasenko [Fri, 5 Jun 2009 12:55:26 +0000 (14:55 +0200)]
*: reduce #ifdef forest

Remove unnecessary #if statements from the "more", "script", and
"scriptreplay" commands.  Bloatcheck says 0 bytes changed.

Signed-off-by: Rob Landley <rob@landley.net>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years ago*: add FAST_FUNC to function ptrs where it makes sense
Denys Vlasenko [Fri, 5 Jun 2009 10:06:05 +0000 (12:06 +0200)]
*: add FAST_FUNC to function ptrs where it makes sense

function                                             old     new   delta
evalcommand                                         1195    1209     +14
testcmd                                                -      10     +10
printfcmd                                              -      10     +10
echocmd                                                -      10     +10
func_exec                                            270     276      +6
echo_dg                                              104     109      +5
store_nlmsg                                           85      89      +4
pseudo_exec_argv                                     195     198      +3
dotcmd                                               287     290      +3
machtime_stream                                       29      31      +2
discard_stream                                        24      26      +2
argstr                                              1299    1301      +2
killcmd                                              108     109      +1
evalfor                                              226     227      +1
daytime_stream                                        43      44      +1
run_list                                            2544    2543      -1
lookupvar                                             62      61      -1
ipaddr_modify                                       1310    1309      -1
...
parse_stream                                        2254    2245      -9
evalpipe                                             356     347      -9
collect_if                                           210     197     -13
read_opt                                             869     851     -18
handle_dollar                                        681     658     -23
print_addrinfo                                      1342    1303     -39
iterate_on_dir                                       156      59     -97
print_route                                         1709    1609    -100
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 12/130 up/down: 74/-767)       Total: -693 bytes
   text    data     bss     dec     hex filename
 841748     467    7872  850087   cf8a7 busybox_old
 841061     467    7872  849400   cf5f8 busybox_unstripped

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoftpd: fix a case when with -w unknown commands are ignored with no error code
Denys Vlasenko [Thu, 4 Jun 2009 17:03:20 +0000 (19:03 +0200)]
ftpd: fix a case when with -w unknown commands are ignored with no error code

Signed-off-by: Stefan Seyfried <seife@suse.de>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agorename CONFIG_FEATURE_TAR_GZIP
Bernhard Reutner-Fischer [Wed, 3 Jun 2009 18:35:26 +0000 (20:35 +0200)]
rename CONFIG_FEATURE_TAR_GZIP

  CONFIG_FEATURE_TAR_GZIP was renamed to CONFIG_FEATURE_SEAMLESS_GZ.
  Adjust testsuite accordingly.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>