oweals/busybox.git
16 years agokill lash. "lash" builtin still exists, but it runs hush.
Denis Vlasenko [Fri, 23 Nov 2007 23:28:55 +0000 (23:28 -0000)]
kill lash. "lash" builtin still exists, but it runs hush.

16 years agoAdd an RFC for future ipv6 ftp work
Denis Vlasenko [Fri, 23 Nov 2007 21:43:40 +0000 (21:43 -0000)]
Add an RFC for future ipv6 ftp work

16 years agohush: implement echo builtin
Denis Vlasenko [Fri, 23 Nov 2007 21:20:21 +0000 (21:20 -0000)]
hush: implement echo builtin

builtin_echo                                           -      36     +36
bltins                                               384     396     +12
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/0 up/down: 48/0)               Total: 48 bytes

16 years agohush: fix $ expansion in redirections, add testcase for that
Denis Vlasenko [Fri, 23 Nov 2007 21:08:38 +0000 (21:08 -0000)]
hush: fix $ expansion in redirections, add testcase for that

16 years agohush: implement test builtin
Denis Vlasenko [Fri, 23 Nov 2007 13:11:42 +0000 (13:11 -0000)]
hush: implement test builtin

16 years agohush: plug memory leak
Denis Vlasenko [Fri, 23 Nov 2007 12:50:54 +0000 (12:50 -0000)]
hush: plug memory leak

16 years agoarping: fix help text (-i -> -I), and shorten it a bit
Denis Vlasenko [Fri, 23 Nov 2007 09:27:05 +0000 (09:27 -0000)]
arping: fix help text (-i -> -I), and shorten it a bit

16 years agoarping: fix a bug where there is implicit count of 4G;
Denis Vlasenko [Fri, 23 Nov 2007 09:15:26 +0000 (09:15 -0000)]
arping: fix a bug where there is implicit count of 4G;
eliminate data/bss usage; code shrink

function                                             old     new   delta
timeout_us                                             4       -      -4
static.start                                           4       -      -4
src                                                    4       -      -4
sock                                                   4       -      -4
sent                                                   4       -      -4
req_recv                                               4       -      -4
received                                               4       -      -4
last                                                   4       -      -4
dst                                                    4       -      -4
count                                                  4       -      -4
brd_sent                                               4       -      -4
brd_recv                                               4       -      -4
catcher                                              375     365     -10
me                                                    20       -     -20
he                                                    20       -     -20
arping_main                                         1941    1874     -67
------------------------------------------------------------------------------
(add/remove: 0/14 grow/shrink: 0/2 up/down: 0/-165)          Total: -165 bytes
   text    data     bss     dec     hex filename
 783035     941    9244  793220   c1a84 busybox_old
 782907     937    9156  793000   c19a8 busybox_unstripped

16 years agocut: add proper stdout error handling, fix "-" handling;
Denis Vlasenko [Fri, 23 Nov 2007 07:26:15 +0000 (07:26 -0000)]
cut: add proper stdout error handling, fix "-" handling;
modest code shrink

16 years agologread: add forgotten INIT_G();
Denis Vlasenko [Fri, 23 Nov 2007 03:41:20 +0000 (03:41 -0000)]
logread: add forgotten INIT_G();

16 years agologread: eliminate usage of data/bss
Denis Vlasenko [Fri, 23 Nov 2007 03:39:45 +0000 (03:39 -0000)]
logread: eliminate usage of data/bss
ifup: don't remove virtual iface prefixes (eth0:0)

function                                             old     new   delta
shbuf                                                  4       -      -4
SMrup                                                  6       -      -6
SMrdn                                                 12       -     -12
static.label_buf                                      20       4     -16
get_var                                              158     140     -18
------------------------------------------------------------------------------
(add/remove: 0/3 grow/shrink: 0/2 up/down: 0/-56)             Total: -56 bytes
   text    data     bss     dec     hex filename
 783501     962    9260  793723   c1c7b busybox_old
 783483     942    9244  793669   c1c45 busybox_unstripped

16 years agodhcp: stop using magic constants; use (htonl(CONST) != a) - it's smaller
Denis Vlasenko [Fri, 23 Nov 2007 00:08:54 +0000 (00:08 -0000)]
dhcp: stop using magic constants; use (htonl(CONST) != a) - it's smaller

function                                             old     new   delta
udhcp_get_packet                                     146     134     -12
get_raw_packet                                       368     353     -15

16 years agoudhcpc: remove -W option, -A can be reused for that
Denis Vlasenko [Thu, 22 Nov 2007 21:41:14 +0000 (21:41 -0000)]
udhcpc: remove -W option, -A can be reused for that
help texts: trimmed a bit

static.udhcpc_longopts                               227     209     -18
udhcpc_main                                         2633    2590     -43
packed_usage                                       22927   22871     -56
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-117)           Total: -117 bytes

16 years agofix a thinko in build system
Denis Vlasenko [Thu, 22 Nov 2007 20:09:41 +0000 (20:09 -0000)]
fix a thinko in build system

16 years agoash: fix bug where redirection of closed fd was leaving it open afterwards.
Denis Vlasenko [Thu, 22 Nov 2007 08:16:57 +0000 (08:16 -0000)]
ash: fix bug where redirection of closed fd was leaving it open afterwards.

redirect                                             983    1024     +41
bb_echo                                              276     301     +25
popredir                                             118     132     +14
evalcommand                                         1163    1176     +13
bbunpack                                             358     366      +8
echocmd                                               13       5      -8
echo_main                                             13       5      -8
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 5/2 up/down: 101/-16)            Total: 85 bytes
   text    data     bss     dec     hex filename
 774999     962    9236  785197   bfb2d busybox_old
 775084     962    9236  785282   bfb82 busybox_unstripped

16 years agosestatus: new SELinux applet (KaiGai Kohei <kaigai@ak.jp.nec.com>)
Denis Vlasenko [Thu, 22 Nov 2007 01:10:41 +0000 (01:10 -0000)]
sestatus: new SELinux applet (KaiGai Kohei <kaigai@ak.jp.nec.com>)

16 years agodhcpc: cleanup and comments; fix buggy timeout handling in corner cases.
Denis Vlasenko [Thu, 22 Nov 2007 01:00:00 +0000 (01:00 -0000)]
dhcpc: cleanup and comments; fix buggy timeout handling in corner cases.
-25 bytes.

16 years agoudhcpc: an option to perform ARP check (Jonas Danielsson <jonas.danielsson@axis.com>)
Denis Vlasenko [Thu, 22 Nov 2007 00:58:49 +0000 (00:58 -0000)]
udhcpc: an option to perform ARP check (Jonas Danielsson <jonas.danielsson@axis.com>)
configurable, ~+300 bytes when on.

16 years agocleanup comments and coding style and rewrite the mdev.conf parser to use common...
Mike Frysinger [Mon, 19 Nov 2007 09:04:22 +0000 (09:04 -0000)]
cleanup comments and coding style and rewrite the mdev.conf parser to use common busybox functions and call strdup() less often ... saves a ~few hundred bytes

16 years agoip: stop propagating argc; optimize ip_parse_common_args
Denis Vlasenko [Sun, 18 Nov 2007 22:56:25 +0000 (22:56 -0000)]
ip: stop propagating argc; optimize ip_parse_common_args

function                                             old     new   delta
find_pair                                            167     187     +20
static.families                                        -      17     +17
die_must_be_on_off                                     -      11     +11
...
on_off                                                33      22     -11
do_ipaddr                                            103      90     -13
do_iptunnel                                         1001     986     -15
iproute_list_or_flush                               1237    1217     -20
static.ip_common_commands                             43      22     -21
do_iproute                                          2217    2193     -24
parse_args                                          1444    1414     -30
ip_do                                                 47      16     -31
do_iprule                                            994     963     -31
ip_main                                              153     113     -40
ipaddr_modify                                       1357    1305     -52
ipaddr_list_or_flush                                2543    2490     -53
ip_parse_common_args                                 294     159    -135
------------------------------------------------------------------------------
(add/remove: 4/1 grow/shrink: 4/24 up/down: 85/-563)         Total: -478 bytes
   text    data     bss     dec     hex filename
 775561     966    9236  785763   bfd63 busybox_old
 775073     962    9236  785271   bfb77 busybox_unstripped

16 years agostty: mark variable as static
Denis Vlasenko [Sun, 18 Nov 2007 11:47:25 +0000 (11:47 -0000)]
stty: mark variable as static

16 years agomake output a little more friendly
Mike Frysinger [Sun, 18 Nov 2007 06:42:56 +0000 (06:42 -0000)]
make output a little more friendly

16 years agomerge from upstream for systems that dont integrate libintl into their C library:
Mike Frysinger [Sun, 18 Nov 2007 06:17:52 +0000 (06:17 -0000)]
merge from upstream for systems that dont integrate libintl into their C library:

commit aa1e5ef5c1d95e7ebf0821d9ba27debe43a87a22
Author: Sam Ravnborg <sam@ravnborg.org>
Date:   Sun Aug 12 23:15:44 2007 +0200

    kbuild: check if we can link gettext not just compile

    cygwin provides the header file but the lib file needs
    to be added manually. A generic fix is to check if
    we can compile and link a program that uses gettext()
    and if it fails fall back to NO_NLS.

    International users of cygwin may have to specify
    HOST_LOADLIBES := "-lintl" on the make command line.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
16 years agoexported symbols may be weak, so allow symbols marked as W
Mike Frysinger [Sun, 18 Nov 2007 06:13:58 +0000 (06:13 -0000)]
exported symbols may be weak, so allow symbols marked as W

16 years agosyslogd: use DEV_CONSOLE consistently
Denis Vlasenko [Sun, 18 Nov 2007 05:43:05 +0000 (05:43 -0000)]
syslogd: use DEV_CONSOLE consistently
init: remove obsolete comment

16 years agohexdump: add hd alias, add -R option
Denis Vlasenko [Sun, 18 Nov 2007 05:36:50 +0000 (05:36 -0000)]
hexdump: add hd alias, add -R option

16 years agoadd comment clarifying busybox's use of non-standard tar header
Paul Fox [Sat, 17 Nov 2007 19:11:05 +0000 (19:11 -0000)]
add comment clarifying busybox's use of non-standard tar header

16 years agotar: fix a case where glibc detects bogus buffer overrun
Denis Vlasenko [Fri, 16 Nov 2007 20:35:30 +0000 (20:35 -0000)]
tar: fix a case where glibc detects bogus buffer overrun
     which is not really there!

16 years agodmesg,klogd: make code more readable
Denis Vlasenko [Fri, 16 Nov 2007 20:18:54 +0000 (20:18 -0000)]
dmesg,klogd: make code more readable
libbb: explain why we declare klogctl
libbb: move defs around so that order makes more sense

16 years ago- use standard-imposed constants some more
Bernhard Reutner-Fischer [Fri, 16 Nov 2007 12:39:16 +0000 (12:39 -0000)]
- use standard-imposed constants some more

16 years ago- remove most of the forward declarations. No obj-code changes.
Bernhard Reutner-Fischer [Fri, 16 Nov 2007 12:20:30 +0000 (12:20 -0000)]
- remove most of the forward declarations. No obj-code changes.

16 years ago- add note about SUSv3 missing options.
Bernhard Reutner-Fischer [Fri, 16 Nov 2007 11:52:42 +0000 (11:52 -0000)]
- add note about SUSv3 missing options.

16 years agowho: add -a (by Tito)
Denis Vlasenko [Fri, 16 Nov 2007 05:24:43 +0000 (05:24 -0000)]
who: add -a (by Tito)

16 years agolash: fix compile-time warning
Denis Vlasenko [Thu, 15 Nov 2007 17:47:45 +0000 (17:47 -0000)]
lash: fix compile-time warning

16 years agodf: add -a
Denis Vlasenko [Thu, 15 Nov 2007 09:02:12 +0000 (09:02 -0000)]
df: add -a
df: don't special case rootfs and /dev/root

function                                             old     new   delta
df_main                                              746     684     -62
find_block_device                                    111       -    -111
find_block_device_in_dir                             243       -    -243
------------------------------------------------------------------------------
(add/remove: 0/2 grow/shrink: 0/1 up/down: 0/-416)           Total: -416 bytes

16 years agodf: add -i (conditional on CONFIG)
Denis Vlasenko [Thu, 15 Nov 2007 07:02:55 +0000 (07:02 -0000)]
df: add -i (conditional on CONFIG)
uasge: trim a bit

16 years agocosmetic change in message text
Denis Vlasenko [Thu, 15 Nov 2007 00:57:40 +0000 (00:57 -0000)]
cosmetic change in message text

16 years agobad syntax error should go to stderr
Paul Fox [Wed, 14 Nov 2007 23:48:35 +0000 (23:48 -0000)]
bad syntax error should go to stderr

16 years agoIntroduce FEATURE_PREFER_IPV4_ADDRESS. If selected, we have:
Denis Vlasenko [Wed, 14 Nov 2007 10:18:33 +0000 (10:18 -0000)]
Introduce FEATURE_PREFER_IPV4_ADDRESS. If selected, we have:
function                                             old     new   delta
str2sockaddr                                         328     344     +16

16 years agotr: more of code shrink (getopt32-ification)
Denis Vlasenko [Tue, 13 Nov 2007 22:23:57 +0000 (22:23 -0000)]
tr: more of code shrink (getopt32-ification)
runtest: cleanup. Method of getting $applets was truly bizarre

function                                             old     new   delta
tr_main                                              655     527    -128

16 years agotr: better comments, small code shrink
Denis Vlasenko [Tue, 13 Nov 2007 22:22:29 +0000 (22:22 -0000)]
tr: better comments, small code shrink

function                                             old     new   delta
expand                                              2232    2230      -2
tr_main                                              677     655     -22

16 years agotr: properly detect read errors (Fernando Silveira <fsilveira@gmail.com>)
Denis Vlasenko [Tue, 13 Nov 2007 17:51:40 +0000 (17:51 -0000)]
tr: properly detect read errors (Fernando Silveira <fsilveira@gmail.com>)
readprofile: use xwrite

function                                             old     new   delta
tr_main                                              679     677      -2
readprofile_main                                    1964    1944     -20

16 years agotrylink: accomodate older versions of ld
Denis Vlasenko [Tue, 13 Nov 2007 17:36:12 +0000 (17:36 -0000)]
trylink: accomodate older versions of ld

16 years agowho: code shrink by Tito <farmatito@tiscali.it>
Denis Vlasenko [Tue, 13 Nov 2007 17:26:21 +0000 (17:26 -0000)]
who: code shrink by Tito <farmatito@tiscali.it>

function                                             old     new   delta
who_main                                             271     259     -12

16 years agoadd sed mini-doc
Denis Vlasenko [Tue, 13 Nov 2007 17:13:31 +0000 (17:13 -0000)]
add sed mini-doc

16 years agosed: support GNU-like '\t' escape in substitutions
Denis Vlasenko [Tue, 13 Nov 2007 16:48:10 +0000 (16:48 -0000)]
sed: support GNU-like '\t' escape in substitutions

16 years agoinetd: revert bogus fix for bug 1562; shrink inetd a bit
Denis Vlasenko [Mon, 12 Nov 2007 21:21:35 +0000 (21:21 -0000)]
inetd: revert bogus fix for bug 1562; shrink inetd a bit

function                                             old     new   delta
dupconfig                                            159     146     -13
getconfigent                                        1123    1073     -50

16 years agoopen_transformer: do not duplicate "<program> -cf -"
Denis Vlasenko [Mon, 12 Nov 2007 02:13:12 +0000 (02:13 -0000)]
open_transformer: do not duplicate "<program> -cf -"

   text    data     bss     dec     hex filename
 677858     738    7236  685832   a7708 busybox_old
 677804     738    7236  685778   a76d2 busybox_unstripped

16 years agogzip: fix a case where tar xzf fails (we use uninitialized fd)
Denis Vlasenko [Mon, 12 Nov 2007 01:44:49 +0000 (01:44 -0000)]
gzip: fix a case where tar xzf fails (we use uninitialized fd)

16 years agowho: fix wrong date/time field size
Denis Vlasenko [Sun, 11 Nov 2007 06:35:41 +0000 (06:35 -0000)]
who: fix wrong date/time field size

16 years agoAnnounce 1.8.1
Denis Vlasenko [Sat, 10 Nov 2007 03:24:21 +0000 (03:24 -0000)]
Announce 1.8.1

16 years agoinit: fix bug 1584: improper check for fork error
Denis Vlasenko [Sat, 10 Nov 2007 01:57:35 +0000 (01:57 -0000)]
init: fix bug 1584: improper check for fork error

16 years agoumount: stop using excessive aounts of stack. Surprisingly,
Denis Vlasenko [Sat, 10 Nov 2007 01:45:03 +0000 (01:45 -0000)]
umount: stop using excessive aounts of stack. Surprisingly,
code shrank a lot too

function                                             old     new   delta
umount_main                                          751     640    -111

16 years agolineedit: stop using both data/bss and tons of stack.
Denis Vlasenko [Sat, 10 Nov 2007 01:35:47 +0000 (01:35 -0000)]
lineedit: stop using both data/bss and tons of stack.
stack usage was ~10 kb!
unfortunately, noticeable code size growth:
   text    data     bss     dec     hex filename
   9252      12     181    9445    24e5 busybox.t7/libbb/lineedit.o
   9714       4       0    9718    25f6 busybox.t8/libbb/lineedit.o

16 years ago*: remove superfluous "?" in option parsing
Denis Vlasenko [Sat, 10 Nov 2007 01:32:18 +0000 (01:32 -0000)]
*: remove superfluous "?" in option parsing

16 years agoreadlink: realpath requires PATH_MAX, bb_common_bufsiz1 can be too small
Denis Vlasenko [Sat, 10 Nov 2007 01:31:19 +0000 (01:31 -0000)]
readlink: realpath requires PATH_MAX, bb_common_bufsiz1 can be too small
umount: don't actually need char[2 * PATH_MAX] for realpath

16 years agosyslogd: support "symlink to symlink" for /dev/log; reduce stack usage
Denis Vlasenko [Sat, 10 Nov 2007 01:28:19 +0000 (01:28 -0000)]
syslogd: support "symlink to symlink" for /dev/log; reduce stack usage

function                                             old     new   delta
create_socket                                          -     134    +134
syslogd_main                                        1132     865    -267
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/1 up/down: 134/-267)         Total: -133 bytes
   text    data     bss     dec     hex filename
 775603     974    9420  785997   bfe4d busybox_old
 775445     974    9420  785839   bfdaf busybox_unstripped

16 years ago- commentary fixes
Bernhard Reutner-Fischer [Thu, 8 Nov 2007 21:11:43 +0000 (21:11 -0000)]
- commentary fixes
- use common exit sequence for failure path:
   text    data     bss     dec     hex filename
    308       0       0     308     134 libbb/xreadlink.o.pgf
    296       0       0     296     128 libbb/xreadlink.o

16 years agoxmalloc_follow_symlinks() -- fix ELOOP issue with absolute paths,
Paul Fox [Thu, 8 Nov 2007 20:00:36 +0000 (20:00 -0000)]
xmalloc_follow_symlinks() -- fix ELOOP issue with absolute paths,
return full path in cases where path doesn't resolve to a link.
change name to better differentiate from xmalloc_readlink().

16 years agoxreadlink: code shrink
Denis Vlasenko [Thu, 8 Nov 2007 17:40:23 +0000 (17:40 -0000)]
xreadlink: code shrink
udhcp: add missing tryagain member to client_config

function                                             old     new   delta
xmalloc_readlink_follow                              169     154     -15
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-15)             Total: -15 bytes

16 years agofollow symlinks to find the true passwd file before updating.
Paul Fox [Thu, 8 Nov 2007 01:12:38 +0000 (01:12 -0000)]
follow symlinks to find the true passwd file before updating.

16 years agonew xmalloc_readlink_follow() routine to fully expand trailing symlinks
Paul Fox [Thu, 8 Nov 2007 01:11:41 +0000 (01:11 -0000)]
new xmalloc_readlink_follow() routine to fully expand trailing symlinks
to get to a "real" file (or directory).

16 years agoadd "-A N" / "--tryagain=N" option to client, to allow altering the
Paul Fox [Wed, 7 Nov 2007 16:01:28 +0000 (16:01 -0000)]
add "-A N" / "--tryagain=N" option to client, to allow altering the
default 60 second wait after failure to get a lease.

16 years agoflush typeahead before prompt
Paul Fox [Wed, 7 Nov 2007 15:51:35 +0000 (15:51 -0000)]
flush typeahead before prompt

16 years agologin: fix PAM login (was unable to complete Kerberos login)
Denis Vlasenko [Wed, 7 Nov 2007 00:23:47 +0000 (00:23 -0000)]
login: fix PAM login (was unable to complete Kerberos login)

16 years agomodprobe: fix a bug where we were entering endless loop
Denis Vlasenko [Tue, 6 Nov 2007 11:34:03 +0000 (11:34 -0000)]
modprobe: fix a bug where we were entering endless loop
syslogd: strip trailing '\n' too, not only NULs

16 years agologin: clear dangerous environment variables if started by non-root
Denis Vlasenko [Tue, 6 Nov 2007 05:26:51 +0000 (05:26 -0000)]
login: clear dangerous environment variables if started by non-root

16 years agofbset: fix buglet where we were using wrong pointer
Denis Vlasenko [Tue, 6 Nov 2007 03:05:54 +0000 (03:05 -0000)]
fbset: fix buglet where we were using wrong pointer
readahead: stop using stdio.h
*: style fixes

16 years agotelnet: use poll, it's shorter
Denis Vlasenko [Tue, 6 Nov 2007 02:23:39 +0000 (02:23 -0000)]
telnet: use poll, it's shorter
*: style fixes

16 years agounzip: hmm... gcc doesn't like ATTRIBUTE_PACKED?? Document that...
Denis Vlasenko [Tue, 6 Nov 2007 02:16:01 +0000 (02:16 -0000)]
unzip: hmm... gcc doesn't like ATTRIBUTE_PACKED?? Document that...

16 years agoinsmod: make error reporting less verbose
Denis Vlasenko [Tue, 6 Nov 2007 02:02:45 +0000 (02:02 -0000)]
insmod: make error reporting less verbose

16 years agotelnetd: fix problem with zombies (by Paul Fox <pgf@brightstareng.com>)
Denis Vlasenko [Tue, 6 Nov 2007 01:38:46 +0000 (01:38 -0000)]
telnetd: fix problem with zombies (by Paul Fox <pgf@brightstareng.com>)
syslogd: strip trailing NULs

16 years agochange safety check on zip header to allow for extra length, and
Paul Fox [Mon, 5 Nov 2007 23:09:03 +0000 (23:09 -0000)]
change safety check on zip header to allow for extra length, and
revert the header read to use the correct constant rather than
sizeof.  at least one version of gcc (armv4-linux-gcc-3.4.1) pads
the struct to 28 bytes in spite of the packing.

16 years agoswaponoff: prevent arithmetic overflow (spotted by Paul Fox <pgf@brightstareng.com>)
Denis Vlasenko [Mon, 5 Nov 2007 19:33:38 +0000 (19:33 -0000)]
swaponoff: prevent arithmetic overflow (spotted by Paul Fox <pgf@brightstareng.com>)

16 years agofix incorrect text of link-time error message. No code changes
Denis Vlasenko [Mon, 5 Nov 2007 19:31:01 +0000 (19:31 -0000)]
fix incorrect text of link-time error message. No code changes

16 years agowebpage: fix typo, remove inconsistent trailing dots
Denis Vlasenko [Mon, 5 Nov 2007 16:26:34 +0000 (16:26 -0000)]
webpage: fix typo, remove inconsistent trailing dots
Makefile: version is 1.9.0.svn now

16 years agoupdate screenshot
Denis Vlasenko [Sun, 4 Nov 2007 15:57:35 +0000 (15:57 -0000)]
update screenshot

16 years agoAnnounce 1.8.0 1_8_0
Denis Vlasenko [Sun, 4 Nov 2007 15:43:26 +0000 (15:43 -0000)]
Announce 1.8.0

16 years agodocs: fix new-applet-HOWTO.txt, delete ipv4_ipv6.txt (it's obsolete)
Denis Vlasenko [Sun, 4 Nov 2007 04:46:46 +0000 (04:46 -0000)]
docs: fix new-applet-HOWTO.txt, delete ipv4_ipv6.txt (it's obsolete)

16 years agoAnnounce 1.7.3 on website
Denis Vlasenko [Sun, 4 Nov 2007 04:30:20 +0000 (04:30 -0000)]
Announce 1.7.3 on website

16 years agoifconfig: code shrink
Denis Vlasenko [Sun, 4 Nov 2007 04:10:17 +0000 (04:10 -0000)]
ifconfig: code shrink
adjtimex: code shrink
libbb: move nth_string function into libbb
hdparm: nth_string was here

   text    data     bss     dec     hex filename
 730013   10334   12032  752379   b7afb busybox_old
 730093   10134   12032  752259   b7a83 busybox_unstripped

16 years agogrep: fix -Fo
Denis Vlasenko [Sun, 4 Nov 2007 00:46:03 +0000 (00:46 -0000)]
grep: fix -Fo

16 years agoinsmod: code shrink, stop exporting insmod_ng_main.
Denis Vlasenko [Fri, 2 Nov 2007 23:31:10 +0000 (23:31 -0000)]
insmod: code shrink, stop exporting insmod_ng_main.

function                                             old     new   delta
add_ksymoops_symbols                                   -     421    +421
static.section_names                                  20      40     +20
lsmod_main                                           425     424      -1
set_tainted                                          153     150      -3
main_opts                                              4       -      -4
obj_symbol_patch                                      47      42      -5
obj_string_patch                                     144     139      -5
already_loaded                                       144     138      -6
check_dep                                            348     341      -7
append_option                                         75      68      -7
obj_allocate_commons                                 515     501     -14
new_process_module_arguments                        1039    1018     -21
arch_new_symbol                                       31       9     -22
check_module_name_match                               85      61     -24
obj_create_alloced_section                           164     136     -28
include_conf                                         930     902     -28
modprobe_main                                       1643    1535    -108
obj_load                                             924     777    -147
insmod_ng_main                                       245       -    -245
insmod_main                                         4122    3794    -328
------------------------------------------------------------------------------
(add/remove: 1/2 grow/shrink: 1/16 up/down: 441/-1003)       Total: -562 bytes
   text    data     bss     dec     hex filename
 776020     974    9420  786414   bffee busybox_old
 775384     974    9420  785778   bfd72 busybox_unstripped

16 years agoinetd: fix bug 1562 "inetd does not set argv[0] properly" (fix by IlyaPanfilov)
Denis Vlasenko [Tue, 30 Oct 2007 19:54:39 +0000 (19:54 -0000)]
inetd: fix bug 1562 "inetd does not set argv[0] properly" (fix by IlyaPanfilov)
inetd: code shrink while at it

function                                             old     new   delta
static.SOCK_xxx                                        -       6      +6
getconfigent                                        1222    1123     -99
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/1 up/down: 6/-99)             Total: -93 bytes
   text    data     bss     dec     hex filename
 776099     974    9420  786493   c003d busybox_old
 776020     974    9420  786414   bffee busybox_unstripped

16 years agohdparm: code shrink
Denis Vlasenko [Tue, 30 Oct 2007 19:36:54 +0000 (19:36 -0000)]
hdparm: code shrink

   text    data     bss     dec     hex filename
 776494     974    9420  786888   c01c8 busybox_old
 776099     974    9420  786493   c003d busybox_unstripped

16 years agoe2fsprogs: code shrink
Denis Vlasenko [Tue, 30 Oct 2007 19:36:07 +0000 (19:36 -0000)]
e2fsprogs: code shrink

   text    data     bss     dec     hex filename
 776594     974    9420  786988   c022c busybox_old
 776494     974    9420  786888   c01c8 busybox_unstripped

16 years ago- fix typo in helptext
Bernhard Reutner-Fischer [Mon, 29 Oct 2007 21:21:27 +0000 (21:21 -0000)]
- fix typo in helptext

16 years agominor fix in comment, no code changes
Denis Vlasenko [Mon, 29 Oct 2007 19:52:21 +0000 (19:52 -0000)]
minor fix in comment, no code changes

16 years agoll_types.c: optimize link type table, make it conditional
Denis Vlasenko [Mon, 29 Oct 2007 19:33:26 +0000 (19:33 -0000)]
ll_types.c: optimize link type table, make it conditional
            on FEATURE_IP_RARE_PROTOCOLS

function                                             old     new   delta
static.arphrd_name                                     -     373    +373
static.arphrd_type                                     -     124    +124
ll_type_n2a                                           58      78     +20
static.arphrd_names                                  496       -    -496
------------------------------------------------------------------------------
(add/remove: 2/1 grow/shrink: 1/0 up/down: 517/-496)           Total: 21 bytes
   text    data     bss     dec     hex filename
 776880     974    9420  787274   c034a busybox_old
 776594     974    9420  786988   c022c busybox_unstripped

16 years agoappletlib.c: make it actally follow _BB_SUID_ALWAYS rules
Denis Vlasenko [Mon, 29 Oct 2007 19:25:45 +0000 (19:25 -0000)]
appletlib.c: make it actally follow _BB_SUID_ALWAYS rules
adduser: implement -S and code shrink / fix uid selection
*: sanitize getspnam_r use

   text    data     bss     dec     hex filename
 777042     974    9676  787692   c04ec busybox_old
 776883     974    9676  787533   c044d busybox_unstripped

16 years agosyscall: code shrink
Denis Vlasenko [Mon, 29 Oct 2007 19:22:13 +0000 (19:22 -0000)]
syscall: code shrink

   text    data     bss     dec     hex filename
 777209     974    9676  787859   c0593 busybox_old
 777042     974    9676  787692   c04ec busybox_unstripped

16 years agomount: size-optimize mount_options[] and nfs_errtbl[]
Denis Vlasenko [Mon, 29 Oct 2007 19:18:39 +0000 (19:18 -0000)]
mount: size-optimize mount_options[] and nfs_errtbl[]

 777253     974    9676  787903   c05bf busybox_old
 777209     974    9676  787859   c0593 busybox_unstripped

16 years agoash: if tcgetattr(stdin) fails, don't mess with tcsetattr
Denis Vlasenko [Mon, 29 Oct 2007 19:17:29 +0000 (19:17 -0000)]
ash: if tcgetattr(stdin) fails, don't mess with tcsetattr
ash: size-optimize ulimit's table of limits

   text    data     bss     dec     hex filename
 777345     974    9676  787995   c061b busybox_old
 777253     974    9676  787903   c05bf busybox_unstripped

16 years agosvlogd: fix compat problem: svlogd -tt should timestanp stderr too
Denis Vlasenko [Mon, 22 Oct 2007 15:53:34 +0000 (15:53 -0000)]
svlogd: fix compat problem: svlogd -tt should timestanp stderr too

16 years agohttpd: fix trivial bug (spotted by Alex Landau)
Denis Vlasenko [Sun, 21 Oct 2007 23:24:42 +0000 (23:24 -0000)]
httpd: fix trivial bug (spotted by Alex Landau)

16 years agobzip2: make -d actually work
Denis Vlasenko [Sun, 21 Oct 2007 18:59:58 +0000 (18:59 -0000)]
bzip2: make -d actually work

16 years agobb_askpass: handle Ctrl-C, restore termoios on Ctrl-C.
Denis Vlasenko [Sat, 20 Oct 2007 19:20:22 +0000 (19:20 -0000)]
bb_askpass: handle Ctrl-C, restore termoios on Ctrl-C.
sulogin: remove alarm handling, as it is redundant there.
code shrink. After all differences cancel out:

   text    data     bss     dec     hex filename
 777543    1000    9532  788075   c066b busybox_old
 777543    1000    9532  788075   c066b busybox_unstripped

16 years agoread_line_input: fix it to not do any fancy editing if echoing is disabled.
Denis Vlasenko [Sat, 20 Oct 2007 18:30:38 +0000 (18:30 -0000)]
read_line_input: fix it to not do any fancy editing if echoing is disabled.
ash: make read handling both more correct and smaller

read_line_input                                     4037    4101     +64
input_backward                                       140     139      -1
readcmd                                             1079    1070      -9
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/2 up/down: 65/-10)             Total: 54 bytes
   text    data     bss     dec     hex filename
 777575    1000    9532  788107   c068b busybox_old
 777629    1000    9532  788161   c06c1 busybox_unstripped

16 years agomore fixes for help text wrt long options
Denis Vlasenko [Sat, 20 Oct 2007 14:54:58 +0000 (14:54 -0000)]
more fixes for help text wrt long options

16 years agowebsite: add link to "No ifup" document
Denis Vlasenko [Sat, 20 Oct 2007 04:44:08 +0000 (04:44 -0000)]
website: add link to "No ifup" document