Rob Landley
4bdeaaf556
Comment and whitespace tweaks.
2008-10-19 04:21:21 +00:00
Denis Vlasenko
e3742f4217
vi: explain why reading 4 chars is unsafe
2008-10-18 19:37:41 +00:00
Denis Vlasenko
3ab3d8a5cf
libbb: do not reject floating point strings like ".15"
2008-10-18 19:18:51 +00:00
Denis Vlasenko
f9dde919d6
mount: -o parm1 -o parm2 should accumulate
2008-10-18 19:15:57 +00:00
Denis Vlasenko
1dfeeeb651
vi: whitespace fix
2008-10-18 19:04:37 +00:00
Denis Vlasenko
cf4dd07b28
cpio: fix regression in prev commit (harmless)
2008-10-17 14:11:04 +00:00
Denis Vlasenko
d83676ec47
data_extract_all: do not complain if directory exists on mkdir
...
rpm/cpio: move "20653 blocks" printout from get_header_cpio to cpio_main -
rpm doesn't want to have that
2008-10-17 14:03:56 +00:00
Denis Vlasenko
aa9eb1fc67
rpm: fix incompatibilities which prevented rpm -i foo.src.rpm
...
function old new delta
fileaction_setowngrp 57 89 +32
2008-10-16 13:29:13 +00:00
Denis Vlasenko
8ef801b40c
vi: a few trivial optimizations to keyboard reading code; bump timeout to 50s.
...
function old new delta
edit_file 901 912 +11
count_lines 74 72 -2
readit 306 289 -17
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/2 up/down: 11/-19) Total: -8 bytes
2008-10-16 09:46:07 +00:00
Rob Landley
7960ea8918
Confirmed that on Linux the serial interrupt takes precedence over the timer
...
interrupt, so we don't need to worry about scheduler delays. This means the
delay can be trimmed down to 25 miliseconds. Add comment while at it.
2008-10-16 06:34:10 +00:00
Denis Vlasenko
8854b352f4
build system: dpkg needs .gz handling
2008-10-15 14:50:14 +00:00
Denis Vlasenko
a9c3f7a19e
sysctl: sysctl -a was still misbehaving, fix it
2008-10-15 13:50:24 +00:00
Denis Vlasenko
9299305756
return accidentally deleted "/* vi: set sw=4 ts=4: */"
2008-10-15 09:44:37 +00:00
Denis Vlasenko
e915a1a410
sysctl: fix bug 3894 _for real_.
2008-10-15 09:43:35 +00:00
Denis Vlasenko
81944c9e92
sysctl: remove trivial comments. no code changes
2008-10-15 08:45:54 +00:00
Denis Vlasenko
cfdb711a18
sysctl: remove special-cased reporting of EPERM,
...
common code path gives nearly the same message. -50 bytes
2008-10-15 08:29:17 +00:00
Denis Vlasenko
58cc52aa76
sysctl: fix bug 3894 (by Kryzhanovskyy Maksym)
...
function old new delta
sysctl_dots_to_slashes - 47 +47
sysctl_write_setting 310 298 -12
sysctl_read_setting 296 284 -12
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/2 up/down: 47/-24) Total: 23 bytes
2008-10-15 08:22:55 +00:00
Denis Vlasenko
d44c1535ae
vi: fix bizarre formatting. no code changes
2008-10-14 12:59:42 +00:00
Denis Vlasenko
ddc8ae3003
hush: add TODO
2008-10-14 12:50:34 +00:00
Denis Vlasenko
371de4acf7
hush: next small step towards functions
2008-10-14 12:43:13 +00:00
Denis Vlasenko
ded6ad34ed
fix recurring "last_cmd overrun", fix [del] handling in insert mode
2008-10-14 12:26:30 +00:00
Denis Vlasenko
267e16c74a
vi: trivial size optimization -65 bytes
2008-10-14 10:34:41 +00:00
Denis Vlasenko
25497c1d92
vi: reinstate timeout of 300 ms
2008-10-14 10:25:05 +00:00
Denis Vlasenko
5373fbcd11
vi: add comments to Rob's algorithm of reading and matching ESC sequences
...
(nice work btw!)
2008-10-14 10:09:56 +00:00
Rob Landley
5e38cd910a
Escape sequences sent over serial links don't come in as a block, so poll
...
needs to pause a bit to make sure the next character has time to come in.
2008-10-14 08:44:09 +00:00
Rob Landley
988dd5549b
Clean up editors/vi.c:readit() so it only does readahead when actually
...
parsing an escape sequence. (This mitigates but doesn't fully fix the
the "cursoring around the file deletes data under qemu" bug, presumably due
to "\033[D" being treated as three separate characters.)
2008-10-14 01:42:33 +00:00
Denis Vlasenko
f886fd2bc7
hush: fix NOMMU bug (analogous to preceding commit for MMU)
2008-10-13 12:36:05 +00:00
Denis Vlasenko
d29084dd7d
testcase for the last fix
2008-10-13 08:54:42 +00:00
Denis Vlasenko
22d10a0292
hush: fix trashing of environment by local env vars:
...
a=a; a=b cmd; - a was unset!
+57 bytes
function old new delta
add_string_to_strings - 110 +110
putenv_all - 27 +27
run_list 2086 2111 +25
free_strings - 7 +7
free_pipe 210 208 -2
add_malloced_string_to_strings 110 - -110
------------------------------------------------------------------------------
(add/remove: 3/1 grow/shrink: 1/1 up/down: 169/-112) Total: 57 bytes
2008-10-13 08:53:43 +00:00
Denis Vlasenko
1e19afd38a
blkid: new applet. We almost had everything needed for it already
...
function old new delta
display_uuid_cache - 89 +89
blkid_main - 8 +8
applet_names 1871 1877 +6
applet_main 1140 1144 +4
applet_nameofs 570 572 +2
packed_usage 24737 24735 -2
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 3/1 up/down: 109/-2) Total: 107 bytes
2008-10-12 11:20:08 +00:00
Denis Vlasenko
d5e305944a
findfs: fix LUKS and FAT detection routines; do not exit if corrupted
...
FAT fs makes us try to seek past volume
function old new delta
volume_id_get_buffer 301 327 +26
volume_id_probe_luks 79 82 +3
get_attr_volume_id 73 65 -8
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 29/-8) Total: 21 bytes
2008-10-12 11:17:49 +00:00
Denis Vlasenko
cdd1f732bc
zcip: code size optimizations, improved help text and comments
...
function old new delta
packed_usage 24750 24787 +37
run 658 655 -3
pick 40 34 -6
arp 186 177 -9
zcip_main 1402 1356 -46
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/4 up/down: 37/-64) Total: -27 bytes
2008-10-10 11:28:39 +00:00
Denis Vlasenko
afd7a8d744
hush: fix environment and memory leaks, add tests for them
...
function old new delta
add_malloced_string_to_strings - 110 +110
run_list 1999 2086 +87
free_strings_and_unsetenv - 87 +87
hush_version_str - 18 +18
pseudo_exec_argv 139 146 +7
static.version_str 17 - -17
free_pipe 237 210 -27
done_word 790 642 -148
------------------------------------------------------------------------------
(add/remove: 3/1 grow/shrink: 2/2 up/down: 309/-192) Total: 117 bytes
2008-10-09 16:29:44 +00:00
Denis Vlasenko
07e05c100f
unzip: remove example of a file we now can handle
2008-10-09 13:52:30 +00:00
Denis Vlasenko
c373527e4f
hush: preparatory work for implementing functions
2008-10-09 12:58:26 +00:00
Denis Vlasenko
9af22c7626
hush: massive renaming of ill-named structures and fields
...
hush: error out on constructs like:
$ abc(def) - was working as if it was (abcdef)
$ case b in abc(a|(b) echo YES; esac - was ignoring 'abc' and extra '('
2008-10-09 12:54:58 +00:00
Bernhard Reutner-Fischer
578de8644c
- route metric support (Natanael Copa)
...
Adds about 75b
2008-10-07 17:00:58 +00:00
Bernhard Reutner-Fischer
2239f81941
- add some anchors
2008-10-07 16:05:03 +00:00
Denis Vlasenko
834dee785d
ash: support &> redirection (bashism). ~90 bytes of code
2008-10-07 09:18:30 +00:00
Denis Vlasenko
176d49d4f7
ash: some beautification work, no code changes
2008-10-06 09:51:47 +00:00
Denis Vlasenko
559691a3bf
ash: implement ">&file" bashism. ~100 bytes.
2008-10-05 18:39:31 +00:00
Denis Vlasenko
93d0776a96
watchdog: WDIOC_SETTIMEOUT accepts seconds, not milliseconds
...
klogd: handle many lines at once, by Steve Bennett (steveb AT workware.net.au)
2008-10-04 16:40:17 +00:00
Bernhard Reutner-Fischer
c2d5a27b62
- wrap overlong line
2008-10-02 13:30:31 +00:00
Denis Vlasenko
f60719cd49
grep: fix 'echo aaa | grep -o a' + ENABLE_EXTRA_COMPAT case
...
by Natanael Copa
2008-09-30 22:37:29 +00:00
Denis Vlasenko
df6b3ad6ba
inetd: use config parser. by Vladimir
...
function old new delta
reread_config_file 1092 2154 +1062
next_line 98 33 -65
next_word 197 57 -140
parse_one_line 1202 - -1202
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 1/2 up/down: 1062/-1407) Total: -345 bytes
2008-09-30 01:22:25 +00:00
Denis Vlasenko
58680706d7
route: fix for 64-bit BE machines by Seonghun Lim (wariua AT gmail.com)
2008-09-28 23:39:18 +00:00
Denis Vlasenko
22eb410d66
website: announce 1.12.1 and 1.11.3
2008-09-28 18:33:02 +00:00
Denis Vlasenko
27e1501cb2
scripts/randomtest[.loop]: add scripts for randomconfig testing
2008-09-28 17:19:02 +00:00
Denis Vlasenko
651d49a2ce
showkey: suppress gcc warning
2008-09-28 16:44:28 +00:00
Denis Vlasenko
2b2d977057
sendmail: update by Vladimir
2008-09-28 13:50:57 +00:00