oweals/busybox.git
14 years agoawk: fix an incorrect casting to string (bug 725). -44 bytes.
Denys Vlasenko [Mon, 30 Nov 2009 00:15:04 +0000 (01:15 +0100)]
awk: fix an incorrect casting to string (bug 725). -44 bytes.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoawk: preparatory patch, no essential code changes. -13 bytes.
Denys Vlasenko [Mon, 30 Nov 2009 00:14:16 +0000 (01:14 +0100)]
awk: preparatory patch, no essential code changes. -13 bytes.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agofix improper utimes usage
Denys Vlasenko [Sun, 29 Nov 2009 18:40:36 +0000 (19:40 +0100)]
fix improper utimes usage

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotar: add a test for latest fix
Denys Vlasenko [Sun, 29 Nov 2009 18:09:29 +0000 (19:09 +0100)]
tar: add a test for latest fix

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotar: revert part of last change. -39 bytes
Denys Vlasenko [Sun, 29 Nov 2009 15:28:33 +0000 (16:28 +0100)]
tar: revert part of last change. -39 bytes

It looks like GNU "tar cf file file" _does_ save file as if
it is a hardlink, when it meets it for the second time.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotar: fix bug 673 (misdetection of repeated dir as hardlink). +92 bytes
Denys Vlasenko [Sun, 29 Nov 2009 06:45:33 +0000 (07:45 +0100)]
tar: fix bug 673 (misdetection of repeated dir as hardlink). +92 bytes

While at it, remove many superfluous ops on unpack:
mkdir("."), lots of umask() calls. Can remove more
by caching username->uid.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoash: more cosmetics and cleanups
Denys Vlasenko [Sun, 29 Nov 2009 01:18:13 +0000 (02:18 +0100)]
ash: more cosmetics and cleanups

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoash: cosmetics, no code changes
Denys Vlasenko [Sun, 29 Nov 2009 00:41:11 +0000 (01:41 +0100)]
ash: cosmetics, no code changes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoash: remove last "signed char"; make SIT() clearer. -12 bytes
Denys Vlasenko [Sun, 29 Nov 2009 00:37:46 +0000 (01:37 +0100)]
ash: remove last "signed char"; make SIT() clearer. -12 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoash: randmconfig fix
Denys Vlasenko [Sat, 28 Nov 2009 23:12:30 +0000 (00:12 +0100)]
ash: randmconfig fix

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoash: remake strange signed char machinery to be unsigned. -57 bytes
Denys Vlasenko [Sat, 28 Nov 2009 21:14:02 +0000 (22:14 +0100)]
ash: remake strange signed char machinery to be unsigned. -57 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years ago*: remove a few more cases of argc usage. -89 bytes.
Denys Vlasenko [Sat, 28 Nov 2009 14:18:53 +0000 (15:18 +0100)]
*: remove a few more cases of argc usage. -89 bytes.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoflash_eraseall: stop using obsolete mtd/jffs2-user.h; code shrink
Denys Vlasenko [Fri, 27 Nov 2009 12:26:17 +0000 (13:26 +0100)]
flash_eraseall: stop using obsolete mtd/jffs2-user.h; code shrink

function                                             old     new   delta
show_progress                                         68      67      -1
flash_eraseall_main                                 1007     882    -125
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-126)           Total: -126 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: make it NOMMU-safe; ash: exclude it on NOMMU builds
Denys Vlasenko [Fri, 27 Nov 2009 01:35:15 +0000 (02:35 +0100)]
ntpd: make it NOMMU-safe; ash: exclude it on NOMMU builds

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoudp_io: fix two more potential cases of unaligned accesses. 0 code size changes.
Denys Vlasenko [Thu, 26 Nov 2009 15:52:25 +0000 (16:52 +0100)]
udp_io: fix two more potential cases of unaligned accesses. 0 code size changes.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoping: fix unaligned access. closes bug 745.
Denys Vlasenko [Thu, 26 Nov 2009 14:26:31 +0000 (15:26 +0100)]
ping: fix unaligned access. closes bug 745.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agorunlevel: -2 bytes
Denys Vlasenko [Thu, 26 Nov 2009 14:26:14 +0000 (15:26 +0100)]
runlevel: -2 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: trivial -2 byte code optimization
Denys Vlasenko [Thu, 26 Nov 2009 06:11:12 +0000 (07:11 +0100)]
ntpd: trivial -2 byte code optimization

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agosplit: handle - as "use stdin". +13 bytes. Closes bug 741.
Denys Vlasenko [Thu, 26 Nov 2009 04:43:16 +0000 (05:43 +0100)]
split: handle - as "use stdin". +13 bytes. Closes bug 741.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agobuild system: fix for coarse mtime problem
Denys Vlasenko [Thu, 26 Nov 2009 04:25:24 +0000 (05:25 +0100)]
build system: fix for coarse mtime problem

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: and real handling for -N, show usage w/o options; trim text
Denys Vlasenko [Wed, 25 Nov 2009 13:52:47 +0000 (14:52 +0100)]
ntpd: and real handling for -N, show usage w/o options; trim text

function                                             old     new   delta
ntp_init                                             317     348     +31
bb_msg_you_must_be_root                                -      17     +17
xsocket                                               66      76     +10
changepath                                           195     194      -1
bb_msg_perm_denied_are_you_root                       35      34      -1
send_tree                                            355     353      -2
count_lines                                           74      72      -2
must_be_root                                          17       -     -17
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 2/4 up/down: 58/-23)             Total: 35 bytes
   text   data    bss    dec    hexfilename
 832873    441   7548 840862  cd49ebusybox_old
 832839    441   7548 840828  cd47cbusybox_unstripped

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agobuild system: more fixes to parallel build
Denys Vlasenko [Tue, 24 Nov 2009 23:22:31 +0000 (00:22 +0100)]
build system: more fixes to parallel build

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agobuild system: fix parallel make
Denys Vlasenko [Tue, 24 Nov 2009 21:23:21 +0000 (22:23 +0100)]
build system: fix parallel make

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: locally bind every peer socket. +22 bytes
Denys Vlasenko [Tue, 24 Nov 2009 15:03:47 +0000 (16:03 +0100)]
ntpd: locally bind every peer socket. +22 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: fix vda's breakage
Denys Vlasenko [Tue, 24 Nov 2009 13:43:20 +0000 (14:43 +0100)]
ntpd: fix vda's breakage

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotraceroute6: restore port after probing
Denys Vlasenko [Tue, 24 Nov 2009 13:10:06 +0000 (14:10 +0100)]
traceroute6: restore port after probing

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agofix trivial compile breakage
Denys Vlasenko [Tue, 24 Nov 2009 13:06:04 +0000 (14:06 +0100)]
fix trivial compile breakage

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: use MSG_DONTWAIT; better readability
Denys Vlasenko [Tue, 24 Nov 2009 13:04:15 +0000 (14:04 +0100)]
ntpd: use MSG_DONTWAIT; better readability

function                                             old     new   delta
gettime_fp                                             -      39     +39
ntpd_main                                           3214    3199     -15
gettime                                               47       -     -47
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 0/1 up/down: 39/-62)            Total: -23 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontp: simplifications; libbb: simpler resolution of numeric hostnames
Denys Vlasenko [Tue, 24 Nov 2009 06:07:42 +0000 (07:07 +0100)]
ntp: simplifications; libbb: simpler resolution of numeric hostnames

function                                             old     new   delta
str2sockaddr                                         405     567    +162
ntp_init                                             310     317      +7
scale_interval                                        58      59      +1
error_interval                                        22      23      +1
ntpd_main                                           3257    3214     -43
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/1 up/down: 171/-43)           Total: 128 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agops: add comment about -T
Denys Vlasenko [Tue, 24 Nov 2009 02:52:24 +0000 (03:52 +0100)]
ps: add comment about -T

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotraceroute: simplify code a bit
Denys Vlasenko [Tue, 24 Nov 2009 01:17:13 +0000 (02:17 +0100)]
traceroute: simplify code a bit

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agolibunarchive: fix reversed test for older/newer
Denys Vlasenko [Tue, 24 Nov 2009 00:16:12 +0000 (01:16 +0100)]
libunarchive: fix reversed test for older/newer

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: add -q option. By Adam Tkac.
Denys Vlasenko [Mon, 23 Nov 2009 15:27:16 +0000 (16:27 +0100)]
ntpd: add -q option. By Adam Tkac.

function                                             old     new   delta
settime                                              347     375     +28
packed_usage                                       26681   26693     +12
ntpd_main                                           3282    3251     -31
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 40/-31)              Total: 9 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotraceroute: fix help text to not show -6 when traceroute6 is off
Denys Vlasenko [Mon, 23 Nov 2009 05:34:04 +0000 (06:34 +0100)]
traceroute: fix help text to not show -6 when traceroute6 is off

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotraceroute6: new applet by Leonid Lisovskiy. +1562 bytes
Leonid Lisovskiy [Mon, 23 Nov 2009 05:20:09 +0000 (06:20 +0100)]
traceroute6: new applet by Leonid Lisovskiy. +1562 bytes

Signed-off-by: Leonid Lisovskiy <lly.dev@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotraceroute: cleanup preparing it for traceroute6. -17 bytes
Denys Vlasenko [Mon, 23 Nov 2009 05:15:38 +0000 (06:15 +0100)]
traceroute: cleanup preparing it for traceroute6. -17 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agood: fix -tx without length spec
Denys Vlasenko [Sun, 22 Nov 2009 14:37:16 +0000 (15:37 +0100)]
od: fix -tx without length spec

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: new applet by Adam Tkac. +5k.
Adam Tkac [Sun, 22 Nov 2009 02:43:55 +0000 (03:43 +0100)]
ntpd: new applet by Adam Tkac. +5k.

Signed-off-by: Adam Tkac <vonsch@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoflashcp: new applet by Stefan Seyfried. +900 bytes
Stefan Seyfried [Sat, 21 Nov 2009 17:32:19 +0000 (18:32 +0100)]
flashcp: new applet by Stefan Seyfried. +900 bytes

Signed-off-by: Stefan Seyfried <stefan.seyfried@googlemail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agomount: clean up #defines. No code changes
Denys Vlasenko [Sat, 21 Nov 2009 16:14:08 +0000 (17:14 +0100)]
mount: clean up #defines. No code changes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoping: use |=, not =, when combine option bit mask
Denys Vlasenko [Sat, 21 Nov 2009 14:44:56 +0000 (15:44 +0100)]
ping: use |=, not =, when combine option bit mask

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agofix fallout from isprint() changes
Denys Vlasenko [Fri, 20 Nov 2009 18:14:19 +0000 (19:14 +0100)]
fix fallout from isprint() changes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoping6: do not play dirty tricks with argv
Denys Vlasenko [Fri, 20 Nov 2009 17:12:12 +0000 (18:12 +0100)]
ping6: do not play dirty tricks with argv

function                                             old     new   delta
common_ping_main                                       -     368    +368
ping6_main                                            30      14     -16
ping_main                                            370      11    -359
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/2 up/down: 368/-375)           Total: -7 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agolibbb: robustify isXXXX(). +39 bytes
Denys Vlasenko [Wed, 18 Nov 2009 10:34:43 +0000 (11:34 +0100)]
libbb: robustify isXXXX(). +39 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agowc: fix a hang gue to isprint(EOF)
Dan Fandrich [Wed, 18 Nov 2009 09:48:09 +0000 (10:48 +0100)]
wc: fix a hang gue to isprint(EOF)

The new isprint replacement macro returns TRUE for isprint(EOF), so the
read loop never returns. Moved the check for EOF immediately after the
read.

Signed-off-by: Dan Fandrich <dan@coneharvesters.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agolibbb: fix vasprintf implementation
Denys Vlasenko [Tue, 17 Nov 2009 04:33:47 +0000 (05:33 +0100)]
libbb: fix vasprintf implementation

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agohush: improve HUSH_BRACE_EXP code (still disabled). ~0 bytes
Denys Vlasenko [Tue, 17 Nov 2009 02:35:31 +0000 (03:35 +0100)]
hush: improve HUSH_BRACE_EXP code (still disabled). ~0 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotweak in comment
Denys Vlasenko [Mon, 16 Nov 2009 04:51:18 +0000 (05:51 +0100)]
tweak in comment

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agohush: initial stab at brace expansion support
Denys Vlasenko [Mon, 16 Nov 2009 04:49:36 +0000 (05:49 +0100)]
hush: initial stab at brace expansion support

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agohush: fix handling of words with braces. +65 bytes
Denys Vlasenko [Mon, 16 Nov 2009 02:18:46 +0000 (03:18 +0100)]
hush: fix handling of words with braces. +65 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agohush: fix exit code propagation from `cmd`. +45 bytes
Denys Vlasenko [Mon, 16 Nov 2009 01:00:03 +0000 (02:00 +0100)]
hush: fix exit code propagation from `cmd`. +45 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agolibbb: added xfdopen_for_read/write
Denys Vlasenko [Sun, 15 Nov 2009 22:28:11 +0000 (23:28 +0100)]
libbb: added xfdopen_for_read/write

function                                             old     new   delta
xfdopen_helper                                         -      40     +40
logdir_open                                         1163    1184     +21
process_stdin                                        433     443     +10
xfdopen_for_write                                      -       9      +9
doCommands                                          2465    2474      +9
patch_main                                          1214    1222      +8
bbunpack                                             457     465      +8
xfdopen_for_read                                       -       7      +7
scan_tree                                            258     262      +4
xstrtoul_range_sfx                                   230     231      +1
sendmail_main                                        957     955      -2
passwd_main                                         1027    1023      -4
parse                                                969     964      -5
test_main                                            253     247      -6
sed_main                                             655     649      -6
dos2unix_main                                        437     429      -8
fbsplash_main                                        950     938     -12
handle_dir_common                                    371     354     -17
expand_vars_to_list                                 2197    2169     -28
update_passwd                                       1275    1246     -29
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 7/10 up/down: 117/-117)           Total: 0 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agohush: wait for `cmd` to complete, and immediately store its exitcode in $?
Denys Vlasenko [Sun, 15 Nov 2009 18:58:19 +0000 (19:58 +0100)]
hush: wait for `cmd` to complete, and immediately store its exitcode in $?

function                                             old     new   delta
expand_vars_to_list                                 2129    2197     +68

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agodate: restore hadling of MMDDhhmm[[CC]YY][.ss] date format
Denys Vlasenko [Sun, 15 Nov 2009 03:55:40 +0000 (04:55 +0100)]
date: restore hadling of MMDDhhmm[[CC]YY][.ss] date format

function                                             old     new   delta
date_main                                            698     889    +191

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoinit: restore possibility to reload inittab even before we finish initialization
Denys Vlasenko [Sun, 15 Nov 2009 02:07:19 +0000 (03:07 +0100)]
init: restore possibility to reload inittab even before we finish initialization

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoeject: band-aid for kernel headers using u8 type
Denys Vlasenko [Sun, 15 Nov 2009 01:48:01 +0000 (02:48 +0100)]
eject: band-aid for kernel headers using u8 type

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agofsck: add comment clarifying exit codes
Denys Vlasenko [Sun, 15 Nov 2009 01:36:49 +0000 (02:36 +0100)]
fsck: add comment clarifying exit codes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agosome non-gnu compilers can't have non-const struct initializers
Denys Vlasenko [Sun, 15 Nov 2009 01:28:56 +0000 (02:28 +0100)]
some non-gnu compilers can't have non-const struct initializers

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agouse utimes() rather than obsolescent utime()
Bernhard Reutner-Fischer [Sat, 14 Nov 2009 23:12:53 +0000 (00:12 +0100)]
use utimes() rather than obsolescent utime()

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
15 years agouse utimes() rather than obsolescent utime()
Bernhard Reutner-Fischer [Sat, 14 Nov 2009 22:35:00 +0000 (23:35 +0100)]
use utimes() rather than obsolescent utime()

utime is obsolescent in POSIX.1-2008, use utimes() for now.
Untested.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
15 years agohttpd_post_upload.txt example: handle binary files too
Denys Vlasenko [Fri, 13 Nov 2009 08:37:50 +0000 (09:37 +0100)]
httpd_post_upload.txt example: handle binary files too

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agosed: on output file, set not only mode, but owner too
Denys Vlasenko [Fri, 13 Nov 2009 08:09:07 +0000 (09:09 +0100)]
sed: on output file, set not only mode, but owner too

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years ago*: use "can't" instead of "cannot"
Denys Vlasenko [Fri, 13 Nov 2009 08:08:27 +0000 (09:08 +0100)]
*: use "can't" instead of "cannot"

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoenv: don't SEGV on bare "env -"
Denys Vlasenko [Thu, 12 Nov 2009 13:52:47 +0000 (14:52 +0100)]
env: don't SEGV on bare "env -"

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agotidy up O_NONBLOCK usage. use libbb functions in stty.
Denys Vlasenko [Wed, 11 Nov 2009 20:05:42 +0000 (21:05 +0100)]
tidy up O_NONBLOCK usage. use libbb functions in stty.

Added O_RDONLY where improves readability. Note: O_RDONLY == 0,
so it is there even if not specified.

function                                             old     new   delta
stty_main                                           1289    1235     -54

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agomdev_fat.conf: add a rule to run nameif
Denys Vlasenko [Wed, 11 Nov 2009 05:32:43 +0000 (06:32 +0100)]
mdev_fat.conf: add a rule to run nameif

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoash: fix bad interaction of "stty -echo" + ASK_TERMINAL
Denys Vlasenko [Wed, 11 Nov 2009 02:19:30 +0000 (03:19 +0100)]
ash: fix bad interaction of "stty -echo" + ASK_TERMINAL

function                                             old     new   delta
read_line_input                                     4820    4886     +66
put_prompt                                           108      47     -61
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 66/-61)              Total: 5 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agofix 'not not' in comment
Denys Vlasenko [Mon, 9 Nov 2009 10:12:45 +0000 (11:12 +0100)]
fix 'not not' in comment

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agotweak service examples a bit (less verbose comment in dhcp_if)
Denys Vlasenko [Mon, 9 Nov 2009 10:04:54 +0000 (11:04 +0100)]
tweak service examples a bit (less verbose comment in dhcp_if)

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agotweak dhcp service example - add ntp configuration
Denys Vlasenko [Mon, 9 Nov 2009 08:39:50 +0000 (09:39 +0100)]
tweak dhcp service example - add ntp configuration

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoadd and example of tftpd service
Denys Vlasenko [Sun, 8 Nov 2009 17:41:26 +0000 (18:41 +0100)]
add and example of tftpd service

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agotftpd: another small tweak
Denys Vlasenko [Sun, 8 Nov 2009 17:27:18 +0000 (18:27 +0100)]
tftpd: another small tweak

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agotftp: another small tweak
Denys Vlasenko [Sun, 8 Nov 2009 17:15:10 +0000 (18:15 +0100)]
tftp: another small tweak

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agotftpd: slight correction to progress bar code
Denys Vlasenko [Sun, 8 Nov 2009 17:07:36 +0000 (18:07 +0100)]
tftpd: slight correction to progress bar code

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agotftp: add optiona support for progress bar
Magnus Damm [Sun, 8 Nov 2009 17:03:09 +0000 (18:03 +0100)]
tftp: add optiona support for progress bar

function                                             old     new   delta
tftp_protocol                                       1662    1834    +172
progress_meter                                       212     365    +153
tftp_progress_init                                     -      14     +14
tftp_main                                            276     281      +5
tftpd_main                                           513     500     -13
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 3/1 up/down: 344/-13)           Total: 331 bytes

Signed-off-by: Magnus Damm <magnus.damm@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agotftp: extend tsize support a little
Magnus Damm [Sun, 8 Nov 2009 17:00:59 +0000 (18:00 +0100)]
tftp: extend tsize support a little

function                                             old     new   delta
tftp_protocol                                       1624    1662     +38
tftpd_main                                           495     513     +18
tftp_main                                            274     276      +2
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 58/0)               Total: 58 bytes

Signed-off-by: Magnus Damm <magnus.damm@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agowget: factor out progress bar code
Magnus Damm [Sun, 8 Nov 2009 15:34:43 +0000 (16:34 +0100)]
wget: factor out progress bar code

Signed-off-by: Magnus Damm <magnus.damm@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoadd more service examples
Denys Vlasenko [Sat, 7 Nov 2009 23:55:39 +0000 (00:55 +0100)]
add more service examples

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agotweak mdev_fat.conf example
Denys Vlasenko [Sat, 7 Nov 2009 17:21:03 +0000 (18:21 +0100)]
tweak mdev_fat.conf example

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agotweak examples
Denys Vlasenko [Sat, 7 Nov 2009 16:54:44 +0000 (17:54 +0100)]
tweak examples

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoifplugd: small optimization
Denys Vlasenko [Sat, 7 Nov 2009 16:30:14 +0000 (17:30 +0100)]
ifplugd: small optimization

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agofbsplash: allow compressed image files
Vladimir Dronnikov [Sat, 7 Nov 2009 03:14:50 +0000 (04:14 +0100)]
fbsplash: allow compressed image files

Signed-off-by: Vladimir Dronnikov <dronnikov@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agotop: do not use #if inside printf, it can be a macro
Denys Vlasenko [Sat, 7 Nov 2009 03:06:31 +0000 (04:06 +0100)]
top: do not use #if inside printf, it can be a macro

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoadding examples/mdev_fat.conf
Denys Vlasenko [Sat, 7 Nov 2009 03:00:03 +0000 (04:00 +0100)]
adding examples/mdev_fat.conf

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agomdev: print line# in error messages
Denys Vlasenko [Sat, 7 Nov 2009 02:33:05 +0000 (03:33 +0100)]
mdev: print line# in error messages

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoadd examples/mdev.conf
Denys Vlasenko [Sat, 7 Nov 2009 02:28:48 +0000 (03:28 +0100)]
add examples/mdev.conf

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agobig endian warning fixes
Denys Vlasenko [Sat, 7 Nov 2009 00:31:14 +0000 (01:31 +0100)]
big endian warning fixes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoremoved SuSv3 doc tarball - potential licensing problem
Denys Vlasenko [Fri, 6 Nov 2009 03:11:22 +0000 (04:11 +0100)]
removed SuSv3 doc tarball - potential licensing problem

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agowhitespace fixes
Denys Vlasenko [Fri, 6 Nov 2009 03:10:43 +0000 (04:10 +0100)]
whitespace fixes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoadding example runit-style service directory
Denys Vlasenko [Fri, 6 Nov 2009 03:04:19 +0000 (04:04 +0100)]
adding example runit-style service directory

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agodumpleases: unicode spport
Tomas Heinrich [Thu, 5 Nov 2009 07:42:47 +0000 (08:42 +0100)]
dumpleases: unicode spport

Signed-off-by: Tomas Heinrich <heinrich.tomas@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoapplets: meant to fix order, not enable bbsh
Mike Frysinger [Wed, 4 Nov 2009 23:53:16 +0000 (18:53 -0500)]
applets: meant to fix order, not enable bbsh

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agoall_sourcecode.tests: check commented out applet order too
Mike Frysinger [Wed, 4 Nov 2009 23:49:08 +0000 (18:49 -0500)]
all_sourcecode.tests: check commented out applet order too

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agoapplets: fix alphabetical order
Mike Frysinger [Wed, 4 Nov 2009 23:49:03 +0000 (18:49 -0500)]
applets: fix alphabetical order

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agotests: fix POSIX shell source style
Mike Frysinger [Wed, 4 Nov 2009 23:41:22 +0000 (18:41 -0500)]
tests: fix POSIX shell source style

The source command does not search $PWD, and bash recently fixed itself to
follow this behavior for /bin/sh.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agolsmod: beautify. no code changes
Denys Vlasenko [Wed, 4 Nov 2009 17:01:17 +0000 (18:01 +0100)]
lsmod: beautify. no code changes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agolibbb.h: remove two over-zealous RETURNS_MALLOC
Denys Vlasenko [Wed, 4 Nov 2009 16:54:17 +0000 (17:54 +0100)]
libbb.h: remove two over-zealous RETURNS_MALLOC

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agofold: fix a corner case. By Tomas Heinrich (heinrich.tomas AT gmail.com)
Denys Vlasenko [Wed, 4 Nov 2009 14:31:19 +0000 (15:31 +0100)]
fold: fix a corner case. By Tomas Heinrich (heinrich.tomas AT gmail.com)

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agomkfs_vfat: fixes for large image cases
Denys Vlasenko [Tue, 3 Nov 2009 13:12:04 +0000 (14:12 +0100)]
mkfs_vfat: fixes for large image cases

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agomkswap: add -L LABEL option. closes bug 689.
Denys Vlasenko [Tue, 3 Nov 2009 04:51:20 +0000 (05:51 +0100)]
mkswap: add -L LABEL option. closes bug 689.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>