Denis Vlasenko
7e497527ea
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
2008-02-12 09:51:03 +00:00
Denis Vlasenko
e26b2783a5
ash: fix warning about _GNU_SOURCE being redefined, fix typo in comment.
2008-02-12 07:40:29 +00:00
Denis Vlasenko
648b44fd78
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
2008-02-12 06:04:06 +00:00
Denis Vlasenko
a5f2cd30c9
msh: do not run pipes where last command is a builtin
...
msh: code shrink and some renames for better readability
2008-02-11 18:10:06 +00:00
Denis Vlasenko
fc21305892
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
2008-02-11 16:26:22 +00:00
Bernhard Reutner-Fischer
f536b99d26
- shrink a tiny bit (-30Bytes)
2008-02-11 13:26:54 +00:00
Bernhard Reutner-Fischer
a985d306a1
- spelling fixes
2008-02-11 11:44:38 +00:00
Denis Vlasenko
83177991c8
hush: die_sllep needs restoring only if job control is on
2008-02-11 08:44:36 +00:00
Denis Vlasenko
08126f665d
hush: close-on-exec interactive_fd
2008-02-11 08:39:11 +00:00
Denis Vlasenko
459a5ad410
hush: set CLOEXEC on script file being executed
2008-02-11 08:35:03 +00:00
Denis Vlasenko
4ecfcdcced
hush: fix the comment
2008-02-11 08:32:31 +00:00
Denis Vlasenko
c04163a289
hush: reset die_sleep to 0 in child after fork
2008-02-11 08:30:53 +00:00
Denis Vlasenko
04e11c9209
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
2008-02-10 19:44:20 +00:00
Denis Vlasenko
9304d6ea92
microcom: read more than 1 byte from device, if possible
2008-02-10 19:05:56 +00:00
Denis Vlasenko
991a1da148
ash: fix "orwell bug" 1984. Testcase:
...
trap_handler() {
echo trap
}
trap trap_handler USR1
sleep 3600 &
while true; do wait; done
2008-02-10 19:02:53 +00:00
Denis Vlasenko
0ef240d979
hush: small fixes to docs/testsuite
2008-02-10 16:00:30 +00:00
Denis Vlasenko
05743d7949
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)
2008-02-10 12:10:08 +00:00
Denis Vlasenko
68e8e96d7f
microcom: compile fixes
2008-02-09 11:39:00 +00:00
Denis Vlasenko
d56e3ccf96
microcom: split -d (delay) option away from -t
2008-02-09 11:37:21 +00:00
Denis Vlasenko
937b10f35d
build system: make it do without od -t
2008-02-09 09:26:43 +00:00
Denis Vlasenko
761e1d1462
mktemp: don't advertise -q option
2008-02-09 06:29:32 +00:00
Denis Vlasenko
65581f3ed1
mktemp: support -p DIR (Timo Teras <timo.teras at iki.fi>)
...
packed_usage 23595 23660 +65
mktemp_main 139 157 +18
2008-02-09 06:26:53 +00:00
Denis Vlasenko
1e2a7e4ed1
test: fix mishandling of 'test ! arg1 op arg2 more args'; add testsuite
2008-02-09 05:48:42 +00:00
Denis Vlasenko
6d52c1ee24
sendmail: update from maintainer
2008-02-08 18:24:54 +00:00
Denis Vlasenko
dc1c45795b
microcom: update from maintainer
2008-02-08 17:30:39 +00:00
Denis Vlasenko
97bd0e05cc
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
2008-02-08 15:41:01 +00:00
Denis Vlasenko
7dbf1b4d9e
httpd: add a bit of error logging; a few code simplifications. +29 bytes.
2008-02-08 15:21:55 +00:00
Bernhard Reutner-Fischer
afdad653ac
- add eject -s for SCSI- and USB-devices (Nico Erfurth)
2008-02-08 15:04:00 +00:00
Mike Frysinger
534b8d0483
force disable setlocalversion usage in busybox
2008-02-07 22:44:27 +00:00
Mike Frysinger
9412ec7555
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
2008-02-07 22:41:33 +00:00
Mike Frysinger
22876c797c
only include mntent.h according to HAVE_MNTENT_H and dont define this on OS X
2008-02-07 22:10:07 +00:00
Denis Vlasenko
b386c1c614
udhcp: ifdef out unused members
2008-02-04 13:23:53 +00:00
Denis Vlasenko
d55fe3e595
udhcp: optional support for non-standard DHCP ports (+300 bytes when selected)
2008-02-04 13:12:16 +00:00
Denis Vlasenko
e8ef7ec7de
unzip: do not try to read entire compressed stream at once (it can be huge)
...
unzip: handle short reads correctly
2008-02-04 12:12:48 +00:00
Denis Vlasenko
f3f33ebb0b
zcip: open ARP socket before openlog
...
(else we can thrash syslog socket)
2008-02-04 09:42:05 +00:00
Denis Vlasenko
f8157cafcb
nohup: compat patch by Christoph Gysin <mailinglist.cache at gmail.com>
2008-02-04 00:30:06 +00:00
Denis Vlasenko
32d49bc70f
mkswap: do not do extra seek
...
mount: add another mount helper call method
2008-02-03 23:52:41 +00:00
Denis Vlasenko
c85bfcad52
ps: fixlet to disabled compat code
2008-02-03 22:04:19 +00:00
Denis Vlasenko
5c3d2b334a
ash: readability enhancement, no code changes
2008-02-03 22:01:08 +00:00
Denis Vlasenko
95dc672326
getty: don't try to detect parity on local lines
...
(Joakim Tjernlund <Joakim.Tjernlund at transmode.se>)
2008-02-02 19:05:36 +00:00
Denis Vlasenko
30eb319103
fsck: don't kill pid -1! (Roy Marples <roy at marples.name>)
2008-02-02 18:54:58 +00:00
Denis Vlasenko
6e602c4931
msh: also handle EOF/read errors correctly
2008-02-02 18:50:50 +00:00
Denis Vlasenko
80667e30fb
msh: fix Ctrl-C handling with line editing
2008-02-02 18:35:55 +00:00
Denis Vlasenko
a2980c6249
sendmail: fixes by Vladimir Dronnikov <dronnikov at gmail.com>
2008-02-02 17:54:35 +00:00
Denis Vlasenko
5de754a395
ps: add (disabled) compat code
2008-02-02 16:43:51 +00:00
Denis Vlasenko
7cff01ec2d
nc: fix fallout from C99 standard compliance change
2008-02-02 16:23:43 +00:00
Paul Fox
0b2b5842a1
Fix compilation error when FEATURE_FANCY_PING enabled. Also
...
reorder networking/Config.in moving FEATURE_FANCY_PING next to
PING6. (Cristian Ionescu-Idbohrn)
2008-02-01 23:25:32 +00:00
Mike Frysinger
f0044c480c
add support for renaming/relocating device nodes
2008-02-01 06:53:50 +00:00
Mike Frysinger
c348e0bc7b
add a mini-faq about std{in,out,err}
2008-02-01 01:41:57 +00:00
Bernhard Reutner-Fischer
8c69afd992
- 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.
2008-01-29 10:33:34 +00:00