Bernhard Reutner-Fischer [Mon, 18 Feb 2008 18:35:53 +0000 (18:35 -0000)]
- fix open(creat) without a mode
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
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
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
Denis Vlasenko [Sun, 17 Feb 2008 15:14:04 +0000 (15:14 -0000)]
whitespace fixes
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
Denis Vlasenko [Sun, 17 Feb 2008 14:30:03 +0000 (14:30 -0000)]
crontab: stop using remove() - use unlink() instead
Denis Vlasenko [Sun, 17 Feb 2008 14:29:25 +0000 (14:29 -0000)]
dpkg: fix bug where existence check was reversed
Denis Vlasenko [Sun, 17 Feb 2008 14:28:53 +0000 (14:28 -0000)]
libbb: introduce and use xrename and rename_or_warn.
Denis Vlasenko [Sat, 16 Feb 2008 23:40:47 +0000 (23:40 -0000)]
microcom: maintainer update
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>)
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
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
Denis Vlasenko [Sat, 16 Feb 2008 13:20:56 +0000 (13:20 -0000)]
*: more readable handling of pipe fds. No code changes.
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
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
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
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
Denis Vlasenko [Fri, 15 Feb 2008 15:17:23 +0000 (15:17 -0000)]
adduser: optional support for long options. +110 bytes.
closes bug 2134.
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.
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
Mike Frysinger [Fri, 15 Feb 2008 02:33:22 +0000 (02:33 -0000)]
fix build failure when long opts are enabled
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
Mike Frysinger [Fri, 15 Feb 2008 01:43:22 +0000 (01:43 -0000)]
sendmail is lexically after selinux, so fix the order
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
Mike Frysinger [Fri, 15 Feb 2008 01:34:14 +0000 (01:34 -0000)]
fix microcom usage
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>
Denis Vlasenko [Thu, 14 Feb 2008 19:55:58 +0000 (19:55 -0000)]
libbb: filename completion should match dangling symlinks too
Denis Vlasenko [Thu, 14 Feb 2008 16:51:58 +0000 (16:51 -0000)]
ash: explain why "set -o BOGUS" doesn't abort
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
Denis Vlasenko [Thu, 14 Feb 2008 12:24:14 +0000 (12:24 -0000)]
build system: pass CFLAGS to link stage too (closes bug 1376)
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
Denis Vlasenko [Thu, 14 Feb 2008 10:31:18 +0000 (10:31 -0000)]
typo fix
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
Paul Fox [Thu, 14 Feb 2008 01:17:01 +0000 (01:17 -0000)]
add ',' and 'gg' commands (patch from Leo Jay)
Denis Vlasenko [Wed, 13 Feb 2008 18:10:46 +0000 (18:10 -0000)]
reinstate redir.tests with correct perms
Denis Vlasenko [Wed, 13 Feb 2008 18:09:56 +0000 (18:09 -0000)]
ash: add a testcase for recently fixed signal bug
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
Denis Vlasenko [Wed, 13 Feb 2008 17:25:31 +0000 (17:25 -0000)]
switch_root: stop at first non-option. Closes bug 1425.
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.
Denis Vlasenko [Wed, 13 Feb 2008 16:52:00 +0000 (16:52 -0000)]
cp: add ENABLE_FEATURE_VERBOSE_CP_MESSAGE. Closes bug 1470
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
Denis Vlasenko [Wed, 13 Feb 2008 14:30:33 +0000 (14:30 -0000)]
sort: -z outputs NUL terminated lines. Closes bug 1591.
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.
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!
Denis Vlasenko [Tue, 12 Feb 2008 19:01:34 +0000 (19:01 -0000)]
website: add direct links to every last stable release tarball
Denis Vlasenko [Tue, 12 Feb 2008 18:53:16 +0000 (18:53 -0000)]
website: fix English
Denis Vlasenko [Tue, 12 Feb 2008 17:53:59 +0000 (17:53 -0000)]
Announce 1.9.1
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.
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
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.
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
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
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
Bernhard Reutner-Fischer [Mon, 11 Feb 2008 13:26:54 +0000 (13:26 -0000)]
- shrink a tiny bit (-30Bytes)
Bernhard Reutner-Fischer [Mon, 11 Feb 2008 11:44:38 +0000 (11:44 -0000)]
- spelling fixes
Denis Vlasenko [Mon, 11 Feb 2008 08:44:36 +0000 (08:44 -0000)]
hush: die_sllep needs restoring only if job control is on
Denis Vlasenko [Mon, 11 Feb 2008 08:39:11 +0000 (08:39 -0000)]
hush: close-on-exec interactive_fd
Denis Vlasenko [Mon, 11 Feb 2008 08:35:03 +0000 (08:35 -0000)]
hush: set CLOEXEC on script file being executed
Denis Vlasenko [Mon, 11 Feb 2008 08:32:31 +0000 (08:32 -0000)]
hush: fix the comment
Denis Vlasenko [Mon, 11 Feb 2008 08:30:53 +0000 (08:30 -0000)]
hush: reset die_sleep to 0 in child after fork
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
Denis Vlasenko [Sun, 10 Feb 2008 19:05:56 +0000 (19:05 -0000)]
microcom: read more than 1 byte from device, if possible
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
Denis Vlasenko [Sun, 10 Feb 2008 16:00:30 +0000 (16:00 -0000)]
hush: small fixes to docs/testsuite
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)
Denis Vlasenko [Sat, 9 Feb 2008 11:39:00 +0000 (11:39 -0000)]
microcom: compile fixes
Denis Vlasenko [Sat, 9 Feb 2008 11:37:21 +0000 (11:37 -0000)]
microcom: split -d (delay) option away from -t
Denis Vlasenko [Sat, 9 Feb 2008 09:26:43 +0000 (09:26 -0000)]
build system: make it do without od -t
Denis Vlasenko [Sat, 9 Feb 2008 06:29:32 +0000 (06:29 -0000)]
mktemp: don't advertise -q option
Denis Vlasenko [Sat, 9 Feb 2008 06:26:53 +0000 (06:26 -0000)]
mktemp: support -p DIR (Timo Teras <timo.teras at iki.fi>)
packed_usage 23595 23660 +65
mktemp_main 139 157 +18
Denis Vlasenko [Sat, 9 Feb 2008 05:48:42 +0000 (05:48 -0000)]
test: fix mishandling of 'test ! arg1 op arg2 more args'; add testsuite
Denis Vlasenko [Fri, 8 Feb 2008 18:24:54 +0000 (18:24 -0000)]
sendmail: update from maintainer
Denis Vlasenko [Fri, 8 Feb 2008 17:30:39 +0000 (17:30 -0000)]
microcom: update from maintainer
Denis Vlasenko [Fri, 8 Feb 2008 15:41:01 +0000 (15:41 -0000)]
README: doccument the need of CONFIG_DESKTOP
od: fix help text to include -t
od: handle /proc files (which have filesize 0) correctly
od: fix comments to not lie about return value
od: "%u" is 1 byte less than "%zu"
cat: fix English
Denis Vlasenko [Fri, 8 Feb 2008 15:21:55 +0000 (15:21 -0000)]
httpd: add a bit of error logging; a few code simplifications. +29 bytes.
Bernhard Reutner-Fischer [Fri, 8 Feb 2008 15:04:00 +0000 (15:04 -0000)]
- add eject -s for SCSI- and USB-devices (Nico Erfurth)
Mike Frysinger [Thu, 7 Feb 2008 22:44:27 +0000 (22:44 -0000)]
force disable setlocalversion usage in busybox
Mike Frysinger [Thu, 7 Feb 2008 22:41:33 +0000 (22:41 -0000)]
some more fixes for cross-compiling on an OS X host: apple provides core types so dont redefine them, sys/statfs.h is not available, and only use some newer AF_* defines if they are actually available
Mike Frysinger [Thu, 7 Feb 2008 22:10:07 +0000 (22:10 -0000)]
only include mntent.h according to HAVE_MNTENT_H and dont define this on OS X
Denis Vlasenko [Mon, 4 Feb 2008 13:23:53 +0000 (13:23 -0000)]
udhcp: ifdef out unused members
Denis Vlasenko [Mon, 4 Feb 2008 13:12:16 +0000 (13:12 -0000)]
udhcp: optional support for non-standard DHCP ports (+300 bytes when selected)
Denis Vlasenko [Mon, 4 Feb 2008 12:12:48 +0000 (12:12 -0000)]
unzip: do not try to read entire compressed stream at once (it can be huge)
unzip: handle short reads correctly
Denis Vlasenko [Mon, 4 Feb 2008 09:42:05 +0000 (09:42 -0000)]
zcip: open ARP socket before openlog
(else we can thrash syslog socket)
Denis Vlasenko [Mon, 4 Feb 2008 00:30:06 +0000 (00:30 -0000)]
nohup: compat patch by Christoph Gysin <mailinglist.cache at gmail.com>
Denis Vlasenko [Sun, 3 Feb 2008 23:52:41 +0000 (23:52 -0000)]
mkswap: do not do extra seek
mount: add another mount helper call method
Denis Vlasenko [Sun, 3 Feb 2008 22:04:19 +0000 (22:04 -0000)]
ps: fixlet to disabled compat code
Denis Vlasenko [Sun, 3 Feb 2008 22:01:08 +0000 (22:01 -0000)]
ash: readability enhancement, no code changes
Denis Vlasenko [Sat, 2 Feb 2008 19:05:36 +0000 (19:05 -0000)]
getty: don't try to detect parity on local lines
(Joakim Tjernlund <Joakim.Tjernlund at transmode.se>)
Denis Vlasenko [Sat, 2 Feb 2008 18:54:58 +0000 (18:54 -0000)]
fsck: don't kill pid -1! (Roy Marples <roy at marples.name>)
Denis Vlasenko [Sat, 2 Feb 2008 18:50:50 +0000 (18:50 -0000)]
msh: also handle EOF/read errors correctly
Denis Vlasenko [Sat, 2 Feb 2008 18:35:55 +0000 (18:35 -0000)]
msh: fix Ctrl-C handling with line editing
Denis Vlasenko [Sat, 2 Feb 2008 17:54:35 +0000 (17:54 -0000)]
sendmail: fixes by Vladimir Dronnikov <dronnikov at gmail.com>
Denis Vlasenko [Sat, 2 Feb 2008 16:43:51 +0000 (16:43 -0000)]
ps: add (disabled) compat code
Denis Vlasenko [Sat, 2 Feb 2008 16:23:43 +0000 (16:23 -0000)]
nc: fix fallout from C99 standard compliance change
Paul Fox [Fri, 1 Feb 2008 23:25:32 +0000 (23:25 -0000)]
Fix compilation error when FEATURE_FANCY_PING enabled. Also
reorder networking/Config.in moving FEATURE_FANCY_PING next to
PING6. (Cristian Ionescu-Idbohrn)
Mike Frysinger [Fri, 1 Feb 2008 06:53:50 +0000 (06:53 -0000)]
add support for renaming/relocating device nodes
Mike Frysinger [Fri, 1 Feb 2008 01:41:57 +0000 (01:41 -0000)]
add a mini-faq about std{in,out,err}
Bernhard Reutner-Fischer [Tue, 29 Jan 2008 10:33:34 +0000 (10:33 -0000)]
- be C99 friendly. Anonymous unions are a GNU extension. This change is
size-neutral WRT -std=gnu99 and fixes several compilation errors for strict
C99 mode.
Denis Vlasenko [Tue, 29 Jan 2008 09:56:21 +0000 (09:56 -0000)]
init: allow last line to be not terminated by '\n'