oweals/busybox.git
16 years agowatch: shrink (by walter harms <WHarms AT bfs.de>)
Denis Vlasenko [Sun, 24 Feb 2008 14:33:17 +0000 (14:33 -0000)]
watch: shrink (by walter harms <WHarms AT bfs.de>)

watch_main                                           327     263     -64

16 years agoless,klogd,syslogd,nc,tcpudp: exit on signal by killing itself, not exit(1)
Denis Vlasenko [Sun, 24 Feb 2008 13:36:01 +0000 (13:36 -0000)]
less,klogd,syslogd,nc,tcpudp: exit on signal by killing itself, not exit(1)
*: minor shrink

16 years agoless: small shrink
Denis Vlasenko [Sat, 23 Feb 2008 12:22:17 +0000 (12:22 -0000)]
less: small shrink

16 years agosyslogd: small shrink
Denis Vlasenko [Sat, 23 Feb 2008 12:08:36 +0000 (12:08 -0000)]
syslogd: small shrink

16 years agoless: make it a bit more resistant against statusline corruption.
Denis Vlasenko [Sat, 23 Feb 2008 11:54:37 +0000 (11:54 -0000)]
less: make it a bit more resistant against statusline corruption.
less: "examine" command will not bomb out on bad file name now

less_main                                           1663    1694     +31
examine_file                                          87     114     +27
less_getch                                           138     160     +22
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 80/0)               Total: 80 bytes
   text    data     bss     dec     hex filename
 798368     740    7484  806592   c4ec0 busybox_old
 798470     740    7484  806694   c4f26 busybox_unstripped

16 years agoless: update line input so that it doesn't interfere with
Denis Vlasenko [Sat, 23 Feb 2008 01:25:38 +0000 (01:25 -0000)]
less: update line input so that it doesn't interfere with
screen update. Makes "man bash", [enter], [/],
<enter search pattern>, [enter] more usable - manpage
draws as you enter the pattern! Yay!!
less: fix bug where backspace wasn't actually deleting chars
less: "examine file with empty name" doesn't abort anymore.
libbb: add "all fatal signals" mask.

getch_nowait                                           -     207    +207
status_print                                           -     105    +105
examine_file                                          64      87     +23
move_cursor                                            -      16     +16
m_status_print                                       185     195     +10
less_main                                           1656    1663      +7
decode_format_string                                 790     795      +5
test_main                                            403     405      +2
process0_stdin                                       247     249      +2
passwd_main                                         1070    1072      +2
less_gets                                            196     178     -18
buffer_print                                         169      71     -98
less_getch                                           362     138    -224
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 7/3 up/down: 379/-340)           Total: 39 bytes
   text    data     bss     dec     hex filename
 798329     740    7484  806553   c4e99 busybox_old
 798368     740    7484  806592   c4ec0 busybox_unstripped

16 years agolpr: document options better
Denis Vlasenko [Fri, 22 Feb 2008 23:21:31 +0000 (23:21 -0000)]
lpr: document options better

16 years agosmall code readability and typo fixes
Denis Vlasenko [Fri, 22 Feb 2008 22:43:22 +0000 (22:43 -0000)]
small code readability and typo fixes

16 years agolpr and lpq applets by Walter Harms.
Denis Vlasenko [Fri, 22 Feb 2008 22:24:48 +0000 (22:24 -0000)]
lpr and lpq applets by Walter Harms.

   text    data     bss     dec     hex filename
    392       0       0     392     188 lpq.o
   1378       0       0    1378     562 lpr.o
    142       0       0     142      8e parse_prt.o

16 years agoash: s/ckzmalloc/ckzalloc/
Denis Vlasenko [Thu, 21 Feb 2008 04:35:14 +0000 (04:35 -0000)]
ash: s/ckzmalloc/ckzalloc/

16 years agoash: sprinkle a bit more of zeroed allocations.
Denis Vlasenko [Thu, 21 Feb 2008 04:32:08 +0000 (04:32 -0000)]
ash: sprinkle a bit more of zeroed allocations.

16 years agohttpd: "HEAD" support. Closes bug 1530.
Denis Vlasenko [Thu, 21 Feb 2008 00:12:07 +0000 (00:12 -0000)]
httpd: "HEAD" support. Closes bug 1530.

send_file_and_exit                                   629     645     +16
static.request_HEAD                                    -       5      +5
handle_incoming_and_exit                            2732    2737      +5
send_headers                                         594     597      +3
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 3/0 up/down: 29/0)               Total: 29 bytes
   text    data     bss     dec     hex filename
 796283     740    7484  804507   c469b busybox_old
 796312     740    7484  804536   c46b8 busybox_unstripped

16 years agocorrected English in comment
Denis Vlasenko [Wed, 20 Feb 2008 22:57:24 +0000 (22:57 -0000)]
corrected English in comment

16 years agoudhcp: we were forgetting to set right op byte in tha packet
Denis Vlasenko [Wed, 20 Feb 2008 22:33:38 +0000 (22:33 -0000)]
udhcp: we were forgetting to set right op byte in tha packet
for DHCPDECLINE. Fixing, and making code smaller.

16 years agoudhcp: make paths configurable
Denis Vlasenko [Wed, 20 Feb 2008 22:29:52 +0000 (22:29 -0000)]
udhcp: make paths configurable
syslogd: trivial build fix

16 years agolibbb: introduce and use nonblock_safe_read(). Yay!
Denis Vlasenko [Wed, 20 Feb 2008 22:23:24 +0000 (22:23 -0000)]
libbb: introduce and use nonblock_safe_read(). Yay!
Our shells are immune from this nasty O_NONBLOCK now!

function                                             old     new   delta
nonblock_safe_read                                     -      78     +78
file_get                                             276     295     +19
generateMTFValues                                    428     435      +7
read_line_input                                     1776    1772      -4
preadbuffer                                          543     450     -93
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 2/2 up/down: 104/-97)             Total: 7 bytes
   text    data     bss     dec     hex filename
 615190     715   23924  639829   9c355 busybox_old
 615168     715   23924  639807   9c33f busybox_unstripped

16 years ago[#1334] exec script for devices even if they dont have device nodes
Mike Frysinger [Wed, 20 Feb 2008 18:31:36 +0000 (18:31 -0000)]
[#1334] exec script for devices even if they dont have device nodes

16 years agoash: introduce and use stzalloc and ckzalloc.
Denis Vlasenko [Wed, 20 Feb 2008 16:38:54 +0000 (16:38 -0000)]
ash: introduce and use stzalloc and ckzalloc.

function                                             old     new   delta
stzalloc                                               -      29     +29
ckzalloc                                               -      29     +29
recordregion                                         108     102      -6
cmdlookup                                            158     152      -6
pipeline                                             188     181      -7
parseheredoc                                         135     128      -7
makename                                              42      35      -7
list                                                 355     348      -7
setvareq                                             221     212      -9
aliascmd                                             324     311     -13
pushfile                                              83      69     -14
readtoken1                                          2872    2849     -23
parse_command                                       1430    1391     -39
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 0/11 up/down: 58/-138)          Total: -80 bytes
   text    data     bss     dec     hex filename
 577227     706   23740  601673   92e49 busybox_old
 577147     706   23740  601593   92df9 busybox_unstripped

16 years agotrivial fixes to config system
Denis Vlasenko [Tue, 19 Feb 2008 23:42:22 +0000 (23:42 -0000)]
trivial fixes to config system

16 years agoash: fix fallout from "A=1 B=$A; echo $B" code.
Denis Vlasenko [Tue, 19 Feb 2008 23:31:05 +0000 (23:31 -0000)]
ash: fix fallout from "A=1 B=$A; echo $B" code.

16 years agomicrocom: tiny shrink, adding comments
Denis Vlasenko [Tue, 19 Feb 2008 18:26:40 +0000 (18:26 -0000)]
microcom: tiny shrink, adding comments

16 years agoinit: make it NOMMU-capable
Denis Vlasenko [Tue, 19 Feb 2008 14:13:20 +0000 (14:13 -0000)]
init: make it NOMMU-capable
httpd: trivial compile fix

16 years agoinit: fix comments
Denis Vlasenko [Tue, 19 Feb 2008 12:10:18 +0000 (12:10 -0000)]
init: fix comments

16 years agoinit: HUP should not be temporarily set to "restart",
Denis Vlasenko [Tue, 19 Feb 2008 12:08:38 +0000 (12:08 -0000)]
init: HUP should not be temporarily set to "restart",
we use it for config reload, and we have QUIT for "restart".

16 years agofix chat CONFIG_xxx dependencies
Denis Vlasenko [Tue, 19 Feb 2008 11:36:22 +0000 (11:36 -0000)]
fix chat CONFIG_xxx dependencies

16 years agochat: now with "svn add"
Denis Vlasenko [Tue, 19 Feb 2008 11:35:08 +0000 (11:35 -0000)]
chat: now with "svn add"

16 years agofindfs,mount: trivial build fix and whitespace fiexs
Denis Vlasenko [Tue, 19 Feb 2008 11:29:46 +0000 (11:29 -0000)]
findfs,mount: trivial build fix and whitespace fiexs

16 years agotar: optional autodetection of gz/bz2 compressed tarballs.
Denis Vlasenko [Tue, 19 Feb 2008 11:26:28 +0000 (11:26 -0000)]
tar: optional autodetection of gz/bz2 compressed tarballs.
+130 bytes. Closes bug 992.

16 years agoinit: fix bug 1111: restart actions were not splitting words:
Denis Vlasenko [Tue, 19 Feb 2008 02:57:07 +0000 (02:57 -0000)]
init: fix bug 1111: restart actions were not splitting words:

::restart:/sbin/rc restart
resulted in:
exec of '/sbin/rc restart' failed: No such file or directory

16 years agosyslogd: tighten up hostname handling.
Denis Vlasenko [Tue, 19 Feb 2008 01:10:20 +0000 (01:10 -0000)]
syslogd: tighten up hostname handling.

16 years agotail: fix "tail -c 20 /dev/huge_disk" (was taking ages)
Denis Vlasenko [Tue, 19 Feb 2008 00:38:10 +0000 (00:38 -0000)]
tail: fix "tail -c 20 /dev/huge_disk" (was taking ages)
tail: a few variables renamed
wc: tiny optimization.

16 years agochat: new applet by dronnikov AT gmail.com. With all options on:
Denis Vlasenko [Mon, 18 Feb 2008 23:24:46 +0000 (23:24 -0000)]
chat: new applet by dronnikov AT gmail.com. With all options on:

function                                             old     new   delta
chat_main                                              -    1230   +1230
unescape                                               -     135    +135
packed_usage                                       23802   23922    +120
signal_handler                                       123     131      +8
input_backward                                       123     128      +5
applet_names                                        1775    1780      +5
applet_main                                         1076    1080      +4
applet_nameofs                                       538     540      +2
exitcode                                               -       1      +1
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 6/0 up/down: 1510/0)           Total: 1510 bytes

16 years agolineedit: tiny shrink
Denis Vlasenko [Mon, 18 Feb 2008 22:28:03 +0000 (22:28 -0000)]
lineedit: tiny shrink

16 years agosupport for mount by label (not yet tested)
Denis Vlasenko [Mon, 18 Feb 2008 21:08:49 +0000 (21:08 -0000)]
support for mount by label (not yet tested)
Also adds findfs applet. Closes bug 1143.

16 years ago- fix open(creat) without a mode
Bernhard Reutner-Fischer [Mon, 18 Feb 2008 18:35:53 +0000 (18:35 -0000)]
- fix open(creat) without a mode

16 years agomount: with -vv -f, say what mount() calls we were going to make
Denis Vlasenko [Mon, 18 Feb 2008 13:05:38 +0000 (13:05 -0000)]
mount: with -vv -f, say what mount() calls we were going to make

 782357     728    7476  790561   c1021 busybox_old
 782429     728    7476  790633   c1069 busybox_unstripped

16 years agomount: optional support for -vv verbosity
Denis Vlasenko [Mon, 18 Feb 2008 12:07:49 +0000 (12:07 -0000)]
mount: optional support for -vv verbosity
mount: do "struct globals" trick

With -vv on:

function                                             old     new   delta
verbose_mount                                          -      83     +83
mount_main                                           970     988     +18
mount_it_now                                         219     229     +10
singlemount                                         4564    4570      +6
mount_option_str                                     227     233      +6
nfs_mount_version                                      1       -      -1
fslist                                                 4       -      -4
------------------------------------------------------------------------------
(add/remove: 1/2 grow/shrink: 4/0 up/down: 123/-5)            Total: 118 bytes

16 years agomount: recognize "dirsync" (closes bug 835)
Denis Vlasenko [Mon, 18 Feb 2008 11:08:33 +0000 (11:08 -0000)]
mount: recognize "dirsync" (closes bug 835)
mount: sanitize environ if called by non-root
*: adjust for slightly different sanitize routine

16 years agowhitespace fixes
Denis Vlasenko [Sun, 17 Feb 2008 15:14:04 +0000 (15:14 -0000)]
whitespace fixes

16 years agodos2unix: shrink
Denis Vlasenko [Sun, 17 Feb 2008 14:31:50 +0000 (14:31 -0000)]
dos2unix: shrink

bloatcheck for last four commits:
function                                             old     new   delta
xrename                                                -      38     +38
md5_hash_block                                       437     458     +21
sv_main                                             1237    1254     +17
update_status                                        569     580     +11
decode_format_string                                 795     805     +10
doset                                                317     326      +9
passwd_main                                         1070    1074      +4
sha1_compile                                         447     446      -1
rename_or_warn                                        49      47      -2
fill_bounds                                          174     172      -2
buffer_fill_and_print                                 76      73      -3
bb_perror_nomsg                                        9       -      -9
get_next_block                                      1810    1795     -15
patch_main                                          1107    1085     -22
write_status_file                                   1123    1077     -46
remove                                                52       -     -52
__GI_remove                                           52       -     -52
open_as_user                                         171     111     -60
microcom_main                                        811     747     -64
dos2unix_main                                        452     383     -69
------------------------------------------------------------------------------
(add/remove: 1/3 grow/shrink: 6/10 up/down: 110/-397)        Total: -287 bytes

16 years agocrontab: stop using remove() - use unlink() instead
Denis Vlasenko [Sun, 17 Feb 2008 14:30:03 +0000 (14:30 -0000)]
crontab: stop using remove() - use unlink() instead

16 years agodpkg: fix bug where existence check was reversed
Denis Vlasenko [Sun, 17 Feb 2008 14:29:25 +0000 (14:29 -0000)]
dpkg: fix bug where existence check was reversed

16 years agolibbb: introduce and use xrename and rename_or_warn.
Denis Vlasenko [Sun, 17 Feb 2008 14:28:53 +0000 (14:28 -0000)]
libbb: introduce and use xrename and rename_or_warn.

16 years agomicrocom: maintainer update
Denis Vlasenko [Sat, 16 Feb 2008 23:40:47 +0000 (23:40 -0000)]
microcom: maintainer update

16 years agomount: make -f work even without mtab support
Denis Vlasenko [Sat, 16 Feb 2008 23:28:42 +0000 (23:28 -0000)]
mount: make -f work even without mtab support
(Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn at axis.com>)

16 years agolibbb: introduce bb_signals and bb_signals_recursive,
Denis Vlasenko [Sat, 16 Feb 2008 22:58:56 +0000 (22:58 -0000)]
libbb: introduce bb_signals and bb_signals_recursive,
which sets same handler for many signals. sig_catch is nuked
(bb_signals_recursive is more descriptive name).
*: use them as appropriate.

function                                             old     new   delta
bb_signals_recursive                                   -      95     +95
bb_signals                                             -      52     +52
run_command                                          258     273     +15
svlogd_main                                         1368    1377      +9
runsv_main                                          1746    1752      +6
runsvdir_main                                       1643    1646      +3
UNSPEC_print                                          64      66      +2
time_main                                           1128    1127      -1
...
resize_main                                          246     210     -36
sig_catch                                             63       -     -63
set_fatal_sighandler                                  85      14     -71
------------------------------------------------------------------------------
(add/remove: 2/1 grow/shrink: 5/24 up/down: 182/-548)        Total: -366 bytes

16 years agocrontab: clear env if run by non-root, so that we can use PATH now
Denis Vlasenko [Sat, 16 Feb 2008 13:47:57 +0000 (13:47 -0000)]
crontab: clear env if run by non-root, so that we can use PATH now
crontab: make "-c /tmp/ -e" work

16 years ago*: more readable handling of pipe fds. No code changes.
Denis Vlasenko [Sat, 16 Feb 2008 13:20:56 +0000 (13:20 -0000)]
*: more readable handling of pipe fds. No code changes.

16 years agoifupdowm: shrink
Denis Vlasenko [Sat, 16 Feb 2008 13:19:19 +0000 (13:19 -0000)]
ifupdowm: shrink

ifupdown_main                                       2170    2459    +289
find_iface_state                                      57      56      -1
next_word                                             63      58      -5
popen2                                               350       -    -350
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 1/2 up/down: 289/-356)          Total: -67 bytes

16 years agorandom s/short/int/
Denis Vlasenko [Sat, 16 Feb 2008 13:18:17 +0000 (13:18 -0000)]
random s/short/int/

add_cmd                                             1189    1190      +1
xconnect_ftpdata                                     118     117      -1
data_align                                            86      84      -2
process_files                                       2101    2096      -5
forkexec                                            1345    1334     -11

16 years agocrontab: almost complete rewrite
Denis Vlasenko [Sat, 16 Feb 2008 13:17:13 +0000 (13:17 -0000)]
crontab: almost complete rewrite
crontab: make options consistent with other implementations

   text    data     bss     dec     hex filename
   2042       4       0    2046     7fe busybox.t1/miscutils/crontab.o
   1331       0       0    1331     533 busybox.t2/miscutils/crontab.o

function                                             old     new   delta
edit_file                                            733     956    +223
open_as_user                                           -     171    +171
packed_usage                                       23652   23650      -2
CDir                                                   8       4      -4
ChangeUser                                           139       -    -139
crontab_main                                        1522     616    -906
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 1/3 up/down: 394/-1051)        Total: -657 bytes

16 years agoifupdown: code shrink
Denis Vlasenko [Fri, 15 Feb 2008 16:20:26 +0000 (16:20 -0000)]
ifupdown: code shrink

function                                             old     new   delta
next_word                                             78      63     -15
ifupdown_main                                       2381    2170    -211
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-226)           Total: -226 bytes

16 years agoadduser: optional support for long options. +110 bytes.
Denis Vlasenko [Fri, 15 Feb 2008 15:17:23 +0000 (15:17 -0000)]
adduser: optional support for long options. +110 bytes.
closes bug 2134.

16 years agoash: handle "A=1 A=2 B=$A; echo $B". closes bug 947.
Denis Vlasenko [Fri, 15 Feb 2008 15:02:15 +0000 (15:02 -0000)]
ash: handle "A=1 A=2 B=$A; echo $B". closes bug 947.

16 years agowe need to pass back the rtc device name that was actually used so that we can turn...
Mike Frysinger [Fri, 15 Feb 2008 07:19:03 +0000 (07:19 -0000)]
we need to pass back the rtc device name that was actually used so that we can turn around and check its sysfs status

16 years agofix build failure when long opts are enabled
Mike Frysinger [Fri, 15 Feb 2008 02:33:22 +0000 (02:33 -0000)]
fix build failure when long opts are enabled

16 years agosplit some rtc funcs out of hwclock and into an rtc header/lib so that the new rtcwak...
Mike Frysinger [Fri, 15 Feb 2008 02:27:19 +0000 (02:27 -0000)]
split some rtc funcs out of hwclock and into an rtc header/lib so that the new rtcwake applet as well as hwclock can utilize the same code

16 years agosendmail is lexically after selinux, so fix the order
Mike Frysinger [Fri, 15 Feb 2008 01:43:22 +0000 (01:43 -0000)]
sendmail is lexically after selinux, so fix the order

16 years agoadd a test case for usage strings to catch people forgetting to add trailing escape...
Mike Frysinger [Fri, 15 Feb 2008 01:42:28 +0000 (01:42 -0000)]
add a test case for usage strings to catch people forgetting to add trailing escape in middle of usage

16 years agofix microcom usage
Mike Frysinger [Fri, 15 Feb 2008 01:34:14 +0000 (01:34 -0000)]
fix microcom usage

16 years agotar: real support for -p. +200 if selected.
Denis Vlasenko [Thu, 14 Feb 2008 20:37:54 +0000 (20:37 -0000)]
tar: real support for -p. +200 if selected.
By Natanael Copa <natanael.copa at gmail.com>

16 years agolibbb: filename completion should match dangling symlinks too
Denis Vlasenko [Thu, 14 Feb 2008 19:55:58 +0000 (19:55 -0000)]
libbb: filename completion should match dangling symlinks too

16 years agoash: explain why "set -o BOGUS" doesn't abort
Denis Vlasenko [Thu, 14 Feb 2008 16:51:58 +0000 (16:51 -0000)]
ash: explain why "set -o BOGUS" doesn't abort

16 years agoash: make ash -c 'if set -o barfoo 2>/dev/null; then echo foo; else echo bar; fi...
Denis Vlasenko [Thu, 14 Feb 2008 15:01:47 +0000 (15:01 -0000)]
ash: make ash -c 'if set -o barfoo 2>/dev/null; then echo foo; else echo bar; fi' work
(fixes bug 1142)

function                                             old     new   delta
options                                              551     565     +14
ash_main                                            1397    1411     +14
setcmd                                                77      90     +13
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 41/0)               Total: 41 bytes

16 years agobuild system: pass CFLAGS to link stage too (closes bug 1376)
Denis Vlasenko [Thu, 14 Feb 2008 12:24:14 +0000 (12:24 -0000)]
build system: pass CFLAGS to link stage too (closes bug 1376)

16 years agoumount: instead of non-standard -D, use -d with opposite meaning
Denis Vlasenko [Thu, 14 Feb 2008 12:00:21 +0000 (12:00 -0000)]
umount: instead of non-standard -D, use -d with opposite meaning
  (closes bug 1604)
umount: do not try to free loop device or erase mtab if remounted ro
umount: do not complain several times about the same mountpoint

function                                             old     new   delta
umount_main                                          646     638      -8
packed_usage                                       23662   23652     -10
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-18)             Total: -18 bytes

16 years agotypo fix
Denis Vlasenko [Thu, 14 Feb 2008 10:31:18 +0000 (10:31 -0000)]
typo fix

16 years agotar: do "short EOF" compat only if CONFIG_DESKTOP.
Denis Vlasenko [Thu, 14 Feb 2008 08:52:30 +0000 (08:52 -0000)]
tar: do "short EOF" compat only if CONFIG_DESKTOP.
ash: add a comment about new minor bug

16 years agoadd ',' and 'gg' commands (patch from Leo Jay)
Paul Fox [Thu, 14 Feb 2008 01:17:01 +0000 (01:17 -0000)]
add ',' and 'gg' commands (patch from Leo Jay)

16 years agoreinstate redir.tests with correct perms
Denis Vlasenko [Wed, 13 Feb 2008 18:10:46 +0000 (18:10 -0000)]
reinstate redir.tests with correct perms

16 years agoash: add a testcase for recently fixed signal bug
Denis Vlasenko [Wed, 13 Feb 2008 18:09:56 +0000 (18:09 -0000)]
ash: add a testcase for recently fixed signal bug

16 years agotar: compat: handle tarballs with only one zero block at the end
Denis Vlasenko [Wed, 13 Feb 2008 17:52:42 +0000 (17:52 -0000)]
tar: compat: handle tarballs with only one zero block at the end

16 years agoswitch_root: stop at first non-option. Closes bug 1425.
Denis Vlasenko [Wed, 13 Feb 2008 17:25:31 +0000 (17:25 -0000)]
switch_root: stop at first non-option. Closes bug 1425.

16 years agotar: move FNM_LEADING_DIR #define to tar.c - no other users.
Denis Vlasenko [Wed, 13 Feb 2008 17:06:53 +0000 (17:06 -0000)]
tar: move FNM_LEADING_DIR #define to tar.c - no other users.
Closes bug 1332.

16 years agocp: add ENABLE_FEATURE_VERBOSE_CP_MESSAGE. Closes bug 1470
Denis Vlasenko [Wed, 13 Feb 2008 16:52:00 +0000 (16:52 -0000)]
cp: add ENABLE_FEATURE_VERBOSE_CP_MESSAGE. Closes bug 1470

16 years agomkswap: fix help text to not lie about supported options.
Denis Vlasenko [Wed, 13 Feb 2008 15:35:52 +0000 (15:35 -0000)]
mkswap: fix help text to not lie about supported options.
mkswap: use uint32, not int, to match kernel.
mkswap: optimization: use pre-zeroed buffer

16 years agosort: -z outputs NUL terminated lines. Closes bug 1591.
Denis Vlasenko [Wed, 13 Feb 2008 14:30:33 +0000 (14:30 -0000)]
sort: -z outputs NUL terminated lines. Closes bug 1591.

16 years agosyslogd: send '\n'-terminated messages over the network.
Denis Vlasenko [Wed, 13 Feb 2008 09:19:14 +0000 (09:19 -0000)]
syslogd: send '\n'-terminated messages over the network.
fully closes bug 1574. +8 bytes.

16 years agobuild system: don't use -o /dev/null, old gcc can delete /dev/null!
Denis Vlasenko [Wed, 13 Feb 2008 07:47:37 +0000 (07:47 -0000)]
build system: don't use -o /dev/null, old gcc can delete /dev/null!

16 years agowebsite: add direct links to every last stable release tarball
Denis Vlasenko [Tue, 12 Feb 2008 19:01:34 +0000 (19:01 -0000)]
website: add direct links to every last stable release tarball

16 years agowebsite: fix English
Denis Vlasenko [Tue, 12 Feb 2008 18:53:16 +0000 (18:53 -0000)]
website: fix English

16 years agoAnnounce 1.9.1
Denis Vlasenko [Tue, 12 Feb 2008 17:53:59 +0000 (17:53 -0000)]
Announce 1.9.1

16 years agomsh: stop trying to parse variables in "msh SCRIPT VAR=val param".
Denis Vlasenko [Tue, 12 Feb 2008 10:12:18 +0000 (10:12 -0000)]
msh: stop trying to parse variables in "msh SCRIPT VAR=val param".
They should be passed as ordinary parameters.

16 years agomsh: instead of fixing "ls | cd", "cd | ls" etc just disallow
Denis Vlasenko [Tue, 12 Feb 2008 09:51:03 +0000 (09:51 -0000)]
msh: instead of fixing "ls | cd", "cd | ls" etc just disallow
  builtins in pipes. They make no sense there anyway.
msh: shrink umask builtin.

function                                             old     new   delta
execute                                             2508    2509      +1
doset                                                326     317      -9
forkexec                                            1370    1345     -25
doumask                                              165     101     -64
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/3 up/down: 1/-98)             Total: -97 bytes

16 years agoash: fix warning about _GNU_SOURCE being redefined, fix typo in comment.
Denis Vlasenko [Tue, 12 Feb 2008 07:40:29 +0000 (07:40 -0000)]
ash: fix warning about _GNU_SOURCE being redefined, fix typo in comment.

16 years agomsh: shrink, mainly by using smallints
Denis Vlasenko [Tue, 12 Feb 2008 06:04:06 +0000 (06:04 -0000)]
msh: shrink, mainly by using smallints

function                                             old     new   delta
synio                                                251     263     +12
filechar                                             310     315      +5
subgetc                                              781     785      +4
brkcontin                                            106     109      +3
...
yylex                                                981     976      -5
execute                                             2513    2508      -5
waitfor                                              321     315      -6
onintr                                               103      97      -6
doset                                                332     326      -6
doexec                                               186     180      -6
yyparse                                               65      57      -8
thenpart                                             135     126      -9
forkexec                                            1379    1370      -9
onecommand                                           457     433     -24
newtp                                                 52      28     -24
command                                             1086    1061     -25
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 7/23 up/down: 27/-163)         Total: -136 bytes

16 years agomsh: do not run pipes where last command is a builtin
Denis Vlasenko [Mon, 11 Feb 2008 18:10:06 +0000 (18:10 -0000)]
msh: do not run pipes where last command is a builtin
msh: code shrink and some renames for better readability

16 years agohttpd: fix bug where we did chdir("") if CGI path had only one "/".
Denis Vlasenko [Mon, 11 Feb 2008 16:26:22 +0000 (16:26 -0000)]
httpd: fix bug where we did chdir("") if CGI path had only one "/".
httpd: fix bug 2004: wrong argv when interpreter is invoked

+8 bytes growth

16 years ago- shrink a tiny bit (-30Bytes)
Bernhard Reutner-Fischer [Mon, 11 Feb 2008 13:26:54 +0000 (13:26 -0000)]
- shrink a tiny bit (-30Bytes)

16 years ago- spelling fixes
Bernhard Reutner-Fischer [Mon, 11 Feb 2008 11:44:38 +0000 (11:44 -0000)]
- spelling fixes

16 years agohush: die_sllep needs restoring only if job control is on
Denis Vlasenko [Mon, 11 Feb 2008 08:44:36 +0000 (08:44 -0000)]
hush: die_sllep needs restoring only if job control is on

16 years agohush: close-on-exec interactive_fd
Denis Vlasenko [Mon, 11 Feb 2008 08:39:11 +0000 (08:39 -0000)]
hush: close-on-exec interactive_fd

16 years agohush: set CLOEXEC on script file being executed
Denis Vlasenko [Mon, 11 Feb 2008 08:35:03 +0000 (08:35 -0000)]
hush: set CLOEXEC on script file being executed

16 years agohush: fix the comment
Denis Vlasenko [Mon, 11 Feb 2008 08:32:31 +0000 (08:32 -0000)]
hush: fix the comment

16 years agohush: reset die_sleep to 0 in child after fork
Denis Vlasenko [Mon, 11 Feb 2008 08:30:53 +0000 (08:30 -0000)]
hush: reset die_sleep to 0 in child after fork

16 years agogetpot: add support for "a+" specifier for nonnegative int parameters.
Denis Vlasenko [Sun, 10 Feb 2008 19:44:20 +0000 (19:44 -0000)]
getpot: add support for "a+" specifier for nonnegative int parameters.
By Vladimir Dronnikov <dronnikov at gmail.com>.
fdisk and top are converted as an example.

function                                             old     new   delta
getopt32                                            1340    1370     +30
top_main                                            1137    1120     -17
fdisk_main                                          3033    2949     -84
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/2 up/down: 30/-101)           Total: -71 bytes

16 years agomicrocom: read more than 1 byte from device, if possible
Denis Vlasenko [Sun, 10 Feb 2008 19:05:56 +0000 (19:05 -0000)]
microcom: read more than 1 byte from device, if possible

16 years agoash: fix "orwell bug" 1984. Testcase:
Denis Vlasenko [Sun, 10 Feb 2008 19:02:53 +0000 (19:02 -0000)]
ash: fix "orwell bug" 1984. Testcase:
    trap_handler() {
        echo trap
    }
    trap trap_handler USR1
    sleep 3600 &
    while true; do wait; done

16 years agohush: small fixes to docs/testsuite
Denis Vlasenko [Sun, 10 Feb 2008 16:00:30 +0000 (16:00 -0000)]
hush: small fixes to docs/testsuite

16 years agohush: reinstate `cmd` handling for NOMMU (with fat big warning).
Denis Vlasenko [Sun, 10 Feb 2008 12:10:08 +0000 (12:10 -0000)]
hush: reinstate `cmd` handling for NOMMU (with fat big warning).
hush: fix a case where none of pipe members could be started
  because of fork failure
hush: rename functions: xxx_real -> xxx
hush: try to add a bit more of vfork-friendliness
hush: add rudimentary design docs
hush: add TODO (newly discovered bug with globbing)