Bernhard Reutner-Fischer [Tue, 10 Apr 2007 09:38:07 +0000 (09:38 -0000)]
- add prototype for str_tolower()
Bernhard Reutner-Fischer [Tue, 10 Apr 2007 09:37:29 +0000 (09:37 -0000)]
- add libbb function str_tolower to convert a string to lowercase.
- shrink wget a bit
Denis Vlasenko [Mon, 9 Apr 2007 21:35:07 +0000 (21:35 -0000)]
make xfunctions optionally longjump instead of exit.
use it for making NOFORK more practical.
touch: make it a NOFORK applet
Denis Vlasenko [Mon, 9 Apr 2007 21:32:30 +0000 (21:32 -0000)]
factor out NOFORK/NOEXEC code from find. Use it for xargs too.
Denis Vlasenko [Mon, 9 Apr 2007 21:30:53 +0000 (21:30 -0000)]
xargs: shrink code, ~80 bytes
applets.h: +#undef APPLET_NOEXEC
Denis Vlasenko [Mon, 9 Apr 2007 13:21:33 +0000 (13:21 -0000)]
wait4pid: if passed with pid < 0, do not set errno - it is already set by exec!
Denis Vlasenko [Mon, 9 Apr 2007 13:04:50 +0000 (13:04 -0000)]
Implement first instance of NOFORK applet - echo
find: use NOFORK/NOEXEC; small -exec buglet also eliminated
vfork_daemon_rexec: honor PREFER_APPLETS
echo: small size improvements
find -exec echo {} \; with PREFER_APPLETS=y runs 4 times faster
Denis Vlasenko [Mon, 9 Apr 2007 03:29:43 +0000 (03:29 -0000)]
busybox: fix "<applet>: applet not found" message
Denis Vlasenko [Mon, 9 Apr 2007 03:11:58 +0000 (03:11 -0000)]
Improve STANDALONE_SHELL. "safe" applets are renamed NOEXEC applets
and now this fact is recorded in applets.h, not ash.c.
Several fixes to "--help + STANDALONE_SHELL" scenarios.
function old new delta
run_current_applet_and_exit - 355 +355
arith 2064 2073 +9
refresh 1148 1156 +8
getopt32 1068 1073 +5
telnet_main 1510 1514 +4
md5_sha1_sum_main 565 566 +1
xstrtoul_range_sfx 255 251 -4
packed_usage 22523 22514 -9
tryexec 255 203 -52
static.safe_applets 152 - -152
.rodata 131320 131128 -192
run_applet_by_name 869 506 -363
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 5/5 up/down: 382/-772) Total: -390 bytes
./busybox ash -c 'i=20000; while test $i != 0; do touch z; i=$((i-1)); done'
runs more than twice as fast with STANDALONE_SHELL versus without.
Denis Vlasenko [Mon, 9 Apr 2007 03:06:34 +0000 (03:06 -0000)]
msh: smallish code shrinkage; cosmetics
Denis Vlasenko [Mon, 9 Apr 2007 03:05:48 +0000 (03:05 -0000)]
merge busybox.c into applets.c
Denis Vlasenko [Sun, 8 Apr 2007 17:30:10 +0000 (17:30 -0000)]
applets.h: de-obfuscate
Denis Vlasenko [Sun, 8 Apr 2007 16:07:02 +0000 (16:07 -0000)]
add some missed statics on constant objects.
fix few #ifndef ENABLE_xxx
# size busybox_old busybox_unstripped
text data bss dec hex filename
677152 2920 18208 698280 aa7a8 busybox_old
676420 2920 18208 697548 aa4cc busybox_unstripped
Denis Vlasenko [Sun, 8 Apr 2007 15:12:21 +0000 (15:12 -0000)]
adding small script, mostly for documentational purposes
Denis Vlasenko [Sun, 8 Apr 2007 15:08:42 +0000 (15:08 -0000)]
getopt32: fix llist_t options ordering. llist_rev is not unused.
function old new delta
tar_main 705 695 -10
sort_main 928 918 -10
decode_format_string 886 876 -10
run_parts_main 197 185 -12
ps_main 513 500 -13
wget_main 2764 2750 -14
awk_main 1014 1000 -14
od_main 2886 2866 -20
llist_rev 25 - -25
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 0/8 up/down: 0/-128) Total: -128 bytes
Denis Vlasenko [Sun, 8 Apr 2007 11:10:43 +0000 (11:10 -0000)]
find: fix -prune more. Add big comment about it.
Denis Vlasenko [Sun, 8 Apr 2007 10:52:28 +0000 (10:52 -0000)]
find: fix handling of -prune
recursive_actions: uppercase flag constants
Denis Vlasenko [Sat, 7 Apr 2007 10:49:02 +0000 (10:49 -0000)]
busybox.net: micro fix
Denis Vlasenko [Sat, 7 Apr 2007 10:46:33 +0000 (10:46 -0000)]
busybox.net: update "screenshot"
Denis Vlasenko [Sat, 7 Apr 2007 10:25:04 +0000 (10:25 -0000)]
getopt: use getopt32 for option parsing - inspired by patch by
Mats Erik Andersson <mats.andersson64@comhem.se>
function old new delta
getopt_main 809 810 +1
static.BUFFER 4 - -4
shell 8 4 -4
quote 4 - -4
quiet_output 4 - -4
quiet_errors 4 - -4
long_options_nr 4 - -4
long_options_length 4 - -4
long_options 388 384 -4
alternative 4 - -4
shortopts 15 - -15
normalize 243 220 -23
.rodata 131832 131800 -32
add_longopt 200 - -200
------------------------------------------------------------------------------
(add/remove: 0/9 grow/shrink: 1/4 up/down: 1/-306) Total: -305 bytes
Denis Vlasenko [Sat, 7 Apr 2007 09:35:56 +0000 (09:35 -0000)]
docs: "how to add a patch"
Denis Vlasenko [Sat, 7 Apr 2007 01:14:45 +0000 (01:14 -0000)]
libiproute: audit callgraph, shortcut error paths into die() functions.
Kill a few statics, made other globals smaller:
oneline is smallint, _SL_ is char
function old new delta
print_tunnel 693 731 +38
print_route 1775 1777 +2
print_addrinfo 1495 1497 +2
ipaddr_list_or_flush 2826 2828 +2
oneline 4 1 -3
_SL_ 4 1 -3
ipaddr_modify 1476 1472 -4
parse_address 124 119 -5
ip_parse_common_args 429 423 -6
on_off 53 46 -7
do_del_ioctl 113 106 -7
do_add_ioctl 120 113 -7
do_show 864 856 -8
iprule_list 157 148 -9
do_iptunnel 310 299 -11
do_add 143 126 -17
get_ctl_fd 95 76 -19
set_address 108 84 -24
ip_main 351 323 -28
static.ifr 32 - -32
parse_args 1992 1949 -43
iproute_list_or_flush 1673 1582 -91
do_iplink 1583 1485 -98
filter 280 - -280
------------------------------------------------------------------------------
(add/remove: 0/2 grow/shrink: 4/18 up/down: 44/-702) Total: -658 bytes
Denis Vlasenko [Sat, 7 Apr 2007 01:05:47 +0000 (01:05 -0000)]
udhcp: MAC_BCAST_ADDR and blank_chaddr are in fact constant, move to rodata.
a few global variables reduced to smallints
function old new delta
add_lease 75 227 +152
static.blank_chaddr - 16 +16
MAC_BCAST_ADDR - 6 +6
sockfd 4 8 +4
udhcp_run_script 1153 1155 +2
state 8 5 -3
listen_mode 4 1 -3
perform_release 152 148 -4
fd 8 4 -4
blank_chaddr 16 - -16
udhcpc_main 2518 2497 -21
.rodata 131864 131832 -32
oldest_expired_lease 61 - -61
clear_lease 127 - -127
------------------------------------------------------------------------------
(add/remove: 2/3 grow/shrink: 3/6 up/down: 180/-271) Total: -91 bytes
Denis Vlasenko [Sat, 7 Apr 2007 00:45:27 +0000 (00:45 -0000)]
comm: eliminate statics
Denis Vlasenko [Sat, 7 Apr 2007 00:44:31 +0000 (00:44 -0000)]
random small shrinkage and elimination of statics
Denis Vlasenko [Fri, 6 Apr 2007 10:41:05 +0000 (10:41 -0000)]
nc: code shrinkage, bugfixes. -50 bytes code size
Denis Vlasenko [Thu, 5 Apr 2007 22:19:43 +0000 (22:19 -0000)]
svn add match_fstype.c :(
Denis Vlasenko [Thu, 5 Apr 2007 21:57:47 +0000 (21:57 -0000)]
[u]mount: extend -t option (Roy Marples <uberlord@gentoo.org>)
Denis Vlasenko [Thu, 5 Apr 2007 21:29:42 +0000 (21:29 -0000)]
diff: fix segfault on empty dirs (Peter Korsgaard <peter.korsgaard@barco.com>)
Denis Vlasenko [Thu, 5 Apr 2007 21:25:15 +0000 (21:25 -0000)]
libbb: add xunlink()
patch: do not try to delete same file twice
Mike Frysinger [Thu, 5 Apr 2007 21:14:29 +0000 (21:14 -0000)]
less intrusive export of FLTFLAGS
Mike Frysinger [Thu, 5 Apr 2007 21:10:59 +0000 (21:10 -0000)]
set default FLTFLAGS for a fatty stack
Denis Vlasenko [Thu, 5 Apr 2007 21:01:06 +0000 (21:01 -0000)]
find: improve usage text (Natanael Copa <natanael.copa@gmail.com>)
Denis Vlasenko [Thu, 5 Apr 2007 20:57:10 +0000 (20:57 -0000)]
nc: missed exit() in signal handler
Denis Vlasenko [Thu, 5 Apr 2007 20:26:28 +0000 (20:26 -0000)]
nc: port nc 1.10 to busybox
Bernhard Reutner-Fischer [Thu, 5 Apr 2007 13:16:39 +0000 (13:16 -0000)]
- clean up addgroup, fix adding users to existing groups and make it optional (Tito)
Bernhard Reutner-Fischer [Thu, 5 Apr 2007 12:27:12 +0000 (12:27 -0000)]
- bail out if either file does not exist
Avoids filling my scrollback-buffer with superfluous information ;)
Bernhard Reutner-Fischer [Thu, 5 Apr 2007 10:31:47 +0000 (10:31 -0000)]
- add -s|--spider which only checks if the file exists but does not download it's content.
Closes #1291
Bernhard Reutner-Fischer [Thu, 5 Apr 2007 09:40:12 +0000 (09:40 -0000)]
- size and prune were mixed up
Bernhard Reutner-Fischer [Thu, 5 Apr 2007 09:21:24 +0000 (09:21 -0000)]
- fix segfault in reset_ino_dev_hashtable() when *hashtable was null.
Seen in the testsuite for du -l .../testsuite on exit with CLEAN_UP enabled.
Denis Vlasenko [Thu, 5 Apr 2007 00:35:43 +0000 (00:35 -0000)]
find: missed 'ststic' on const data
Denis Vlasenko [Wed, 4 Apr 2007 23:41:35 +0000 (23:41 -0000)]
find: un-DESKTOPize (Kai Schwenzfeier <niteblade@gmx.net>)
find: -group, -depth (Natanael Copa <natanael.copa@gmail.com>)
find: make constant array static, declare PARM_xx constants with enum
Bernhard Reutner-Fischer [Wed, 4 Apr 2007 20:52:03 +0000 (20:52 -0000)]
- sed -e "s/char[[:space:]]*\*[[:space:]]*argv\[\]/char **argv/g"
Bernhard Reutner-Fischer [Wed, 4 Apr 2007 20:29:15 +0000 (20:29 -0000)]
- minor shrinkage
text data bss dec hex filename
1431 0 4 1435 59b tail.o.orig
1396 0 0 1396 574 tail.o
Bernhard Reutner-Fischer [Wed, 4 Apr 2007 17:58:39 +0000 (17:58 -0000)]
- remove debugging output. sorry..
Bernhard Reutner-Fischer [Wed, 4 Apr 2007 17:57:55 +0000 (17:57 -0000)]
- note cosmetic glitch in tail
Denis Vlasenko [Wed, 4 Apr 2007 17:49:47 +0000 (17:49 -0000)]
reword comment
Bernhard Reutner-Fischer [Wed, 4 Apr 2007 14:01:23 +0000 (14:01 -0000)]
- remove bss users. Shrinkage while at it. See XXX for further, pre-existing bugs
text data bss dec hex filename
1969 0 32 2001 7d1 dd.o.oorig
1941 0 0 1941 795 dd.o
Bernhard Reutner-Fischer [Wed, 4 Apr 2007 13:59:49 +0000 (13:59 -0000)]
- remove some bss users.
text data bss dec hex filename
6220 8 14 6242 1862 stty.o.oorig
6219 8 0 6227 1853 stty.o
Bernhard Reutner-Fischer [Wed, 4 Apr 2007 13:58:33 +0000 (13:58 -0000)]
- remove superfluous bss user (flags) and manually unswitch some areas:
text data bss dec hex filename
4517 0 34 4551 11c7 stat.o.oorig
4300 0 30 4330 10ea stat.o
Denis Vlasenko [Wed, 4 Apr 2007 11:02:55 +0000 (11:02 -0000)]
Add/improve comment, shorten some usage texts. No code changes.
Denis Vlasenko [Wed, 4 Apr 2007 10:16:15 +0000 (10:16 -0000)]
ipsvd: use IP:PORT syntax for environment vars. Pros:
1. it's saner (matches internal libc sockaddr abstraction).
2. it's smaller.
Cons: not compatible with smarden's ipsvd.
Fix IPv6 define typos.
Stop interpreting options in prog's args.
Code size -162 bytes.
Denis Vlasenko [Tue, 3 Apr 2007 23:23:10 +0000 (23:23 -0000)]
ipsvd: make udpsvd work similar to tcpsvd (multiple parallel
children for several streams of udp packets tested to work)
code size: -509 bytes
Denis Vlasenko [Tue, 3 Apr 2007 12:09:46 +0000 (12:09 -0000)]
ipsvd: fixes and improvements after testing
Denis Vlasenko [Tue, 3 Apr 2007 01:13:04 +0000 (01:13 -0000)]
udpsvd: more work on it. works in limited testing.
Bernhard Reutner-Fischer [Mon, 2 Apr 2007 17:01:22 +0000 (17:01 -0000)]
- use bb_error_msg
Bernhard Reutner-Fischer [Mon, 2 Apr 2007 16:54:41 +0000 (16:54 -0000)]
- use xregcomp. Untested. vda, isn't there a regfree missing here?
text data bss dec hex filename
2522 0 0 2522 9da expr.o.r18305
2478 0 0 2478 9ae expr.o
Bernhard Reutner-Fischer [Mon, 2 Apr 2007 16:41:24 +0000 (16:41 -0000)]
- remove some unneeded forward declarations. No obj-code changes.
Bernhard Reutner-Fischer [Mon, 2 Apr 2007 16:38:13 +0000 (16:38 -0000)]
- remove args from bss, minor misc shrinkage while at it.
text data bss dec hex filename
2577 0 4 2581 a15 expr.o
2522 0 0 2522 9da expr.o
Denis Vlasenko [Mon, 2 Apr 2007 12:37:28 +0000 (12:37 -0000)]
test: comment out unused code
udpsvd: fake it compile
tcpsvd: more optimal memorizing of IP's for -C
Denis Vlasenko [Mon, 2 Apr 2007 06:17:45 +0000 (06:17 -0000)]
udpsvd: forgotten 'svn add'
Denis Vlasenko [Sun, 1 Apr 2007 19:10:36 +0000 (19:10 -0000)]
udpsvd: next part of ipsvd applets (not working yet)
Denis Vlasenko [Sun, 1 Apr 2007 10:59:33 +0000 (10:59 -0000)]
tcpsvd: fix line buffering, add firewall query code
Denis Vlasenko [Sun, 1 Apr 2007 09:39:03 +0000 (09:39 -0000)]
Copyright, help text, whitespace cleanups
Denis Vlasenko [Sun, 1 Apr 2007 01:18:20 +0000 (01:18 -0000)]
tcpsvd: new applet
It's a GPL-ed 'clone' of Dan Bernstein's tcpserver.
Author: Gerrit Pape <pape@smarden.org>
http://smarden.sunsite.dk/ipsvd/
size tcpsvd.o
text data bss dec hex filename
2571 4 16 2591 a1f tcpsvd.o
Denis Vlasenko [Sat, 31 Mar 2007 11:08:50 +0000 (11:08 -0000)]
lash: make -c work; crush buffer overrun and free of non-malloced ptr
(from Mats Erik Andersson <mats.andersson64@comhem.se>)
Denis Vlasenko [Sat, 31 Mar 2007 11:07:30 +0000 (11:07 -0000)]
lash: style cleanup
Denis Vlasenko [Sat, 31 Mar 2007 10:32:27 +0000 (10:32 -0000)]
website: link to post-1.5.0 fixes, fix dangling link
Denis Vlasenko [Sat, 31 Mar 2007 10:30:02 +0000 (10:30 -0000)]
hdparm: fix multisector mode setting
(from Toni Mirabete <amirabete@catix.cat>)
Denis Vlasenko [Sat, 31 Mar 2007 10:19:11 +0000 (10:19 -0000)]
uniq: getopt32-ization. -38 bytes.
Denis Vlasenko [Sat, 31 Mar 2007 10:17:24 +0000 (10:17 -0000)]
unzip: fix xstrndup bug (xstrndup(s,n) can allocate less than n bytes!)
Bernhard Reutner-Fischer [Fri, 30 Mar 2007 18:26:46 +0000 (18:26 -0000)]
- fix compilation if FEATURE_TR_CLASSES is off. Sorry for that..
Bernhard Reutner-Fischer [Fri, 30 Mar 2007 18:23:36 +0000 (18:23 -0000)]
- debloat test. untested.
text data bss dec hex filename
3154 0 172 3326 cfe test.o.oorig
2683 0 172 2855 b27 test.o
This applet should be rewritten not to use such odd lexer semantics.
It duplicates code from all over the place (see XXX).
brrr
Bernhard Reutner-Fischer [Fri, 30 Mar 2007 14:43:27 +0000 (14:43 -0000)]
- fix bug where we did not reject invalid classes like '[[:alpha'
- debloat while at it:
text data bss dec hex filename
1554 0 19 1573 625 tr.o.oorig
1357 0 16 1373 55d tr.o
Mike Frysinger [Fri, 30 Mar 2007 05:44:15 +0000 (05:44 -0000)]
introduce the concept of LDLIBS for additional libraries so that when we do the final link, the objects/libraries are in the correct order
Denis Vlasenko [Thu, 29 Mar 2007 21:55:22 +0000 (21:55 -0000)]
traceroute: move data off bss. small code optimizations.
function old new delta
traceroute_main 4358 4397 +39
verbose 13 9 -4
useicmp 4 - -4
nflag 4 - -4
split_suffices 40 24 -16
route 16 - -16
dumpleases_main 392 357 -35
gwlist 36 - -36
whereto 128 - -128
wherefrom 128 - -128
packet 512 - -512
------------------------------------------------------------------------------
(add/remove: 0/7 grow/shrink: 1/3 up/down: 39/-883) Total: -844 bytes
Denis Vlasenko [Thu, 29 Mar 2007 19:42:19 +0000 (19:42 -0000)]
dpkg: run_package_script() returns 0 if all ok and non-zero if failure.
The result code was checked incorrectly in two places.
(from "Kim B. Heino" <Kim.Heino@bluegiga.com>)
Denis Vlasenko [Thu, 29 Mar 2007 19:29:32 +0000 (19:29 -0000)]
dumpleases: getopt32()-ization
(from Mats Erik Andersson <mats.andersson64@comhem.se>)
Bernhard Reutner-Fischer [Thu, 29 Mar 2007 13:56:49 +0000 (13:56 -0000)]
- use index_in_str_array also for find_main
text data bss dec hex filename
2605 1 12 2618 a3a find.o.r18274
2602 1 12 2615 a37 find.o.r18275
Bernhard Reutner-Fischer [Thu, 29 Mar 2007 13:56:02 +0000 (13:56 -0000)]
- remove bloated switch statement.
text data bss dec hex filename
2706 1 12 2719 a9f find.o.r18273
2605 1 12 2618 a3a find.o.r18274
Bernhard Reutner-Fischer [Thu, 29 Mar 2007 13:55:17 +0000 (13:55 -0000)]
- implement a TODO: Use index_in_str_array in parse_params
text data bss dec hex filename
2771 1 12 2784 ae0 find.o.r18272
2749 1 12 2762 aca find.o.-try-switch
2706 1 12 2719 a9f find.o.r18273
Bernhard Reutner-Fischer [Thu, 29 Mar 2007 13:54:17 +0000 (13:54 -0000)]
- Purely cosmetic type fiddling
Bernhard Reutner-Fischer [Thu, 29 Mar 2007 10:30:50 +0000 (10:30 -0000)]
- fold recurse, depthFirst and dereference params into one param flags.
Minor size improvement (-16b for size, -24b according to bloat-o-meter).
Bernhard Reutner-Fischer [Wed, 28 Mar 2007 22:19:46 +0000 (22:19 -0000)]
- update defconfig
Denis Vlasenko [Wed, 28 Mar 2007 22:05:38 +0000 (22:05 -0000)]
run_parts: I was wrong, NULL termination is already done because
G is pre-initialized to 0.
Denis Vlasenko [Wed, 28 Mar 2007 22:04:04 +0000 (22:04 -0000)]
run_parts: NULL-terminate list of arguments; fix perror/error usage
Denis Vlasenko [Wed, 28 Mar 2007 21:57:12 +0000 (21:57 -0000)]
ps: work around libc bug: printf("%.*s\n", MAX_INT, buffer)
Bernhard Reutner-Fischer [Wed, 28 Mar 2007 20:35:13 +0000 (20:35 -0000)]
- rewrite run-parts
text data bss dec hex filename
1029 0 0 1029 405 debianutils/run_parts.o-old
478 0 0 478 1de debianutils/run_parts.o-new-bare
600 0 0 600 258 debianutils/run_parts.o-new-full
bare, i.e. without long opts and fancy stuff
./scripts/bloat-o-meter bb_old busybox_unstripped function old new delta
act - 215 +215
run_parts_main 216 201 -15
valid_name 50 - -50
runparts_long_options 64 - -64
.rodata 124323 124163 -160
run_parts 513 - -513
------------------------------------------------------------------------------
(add/remove: 1/3 grow/shrink: 0/2 up/down: 215/-802) Total: -587 bytes
Bernhard Reutner-Fischer [Wed, 28 Mar 2007 16:48:40 +0000 (16:48 -0000)]
- move additional fancy options not mandated by SUSv3 into a FANCY option
Bernhard Reutner-Fischer [Wed, 28 Mar 2007 16:46:03 +0000 (16:46 -0000)]
- fix formatting of help text
Bernhard Reutner-Fischer [Wed, 28 Mar 2007 15:00:27 +0000 (15:00 -0000)]
- reinstate dmalloc and efence support
Denis Vlasenko [Wed, 28 Mar 2007 01:00:45 +0000 (01:00 -0000)]
hdparm: flag variables can easily be smaller than long
function old new delta
process_dev 5247 5325 +78
bb_ioctl_on_off 72 78 +6
unregister_hwif 4 1 -3
...
perform_reset 4 1 -3
parse_xfermode 111 108 -3
noisy_piomode 4 1 -3
...
do_flush 4 1 -3
do_ctimings 4 1 -3
static.parm 4 - -4
static.multcount 4 - -4
parse_opts 54 48 -6
hdparm_main 1435 1383 -52
------------------------------------------------------------------------------
(add/remove: 0/2 grow/shrink: 2/61 up/down: 84/-243) Total: -159 bytes
Denis Vlasenko [Wed, 28 Mar 2007 00:14:54 +0000 (00:14 -0000)]
hdparm: remove stray static (-200 bytes bss)
Denis Vlasenko [Wed, 28 Mar 2007 00:14:01 +0000 (00:14 -0000)]
hdparm: whitespace style fixes
Denis Vlasenko [Tue, 27 Mar 2007 22:05:34 +0000 (22:05 -0000)]
pidfile creation mode set to 0666 (umask affects it as usual)
Denis Vlasenko [Tue, 27 Mar 2007 22:02:06 +0000 (22:02 -0000)]
forgotten svn add...
Denis Vlasenko [Tue, 27 Mar 2007 22:01:31 +0000 (22:01 -0000)]
make pidfile writing configurable.
[ui]toa_to_buf: change API. No users yet.
Denis Vlasenko [Mon, 26 Mar 2007 23:14:38 +0000 (23:14 -0000)]
remove_file: cosmetic code improvement, a few bytes saved
Denis Vlasenko [Mon, 26 Mar 2007 22:58:21 +0000 (22:58 -0000)]
diff: fix SEGV (NULL deref) in diff -N
Denis Vlasenko [Mon, 26 Mar 2007 20:48:46 +0000 (20:48 -0000)]
sed: a communal variable managed to slip past 'size'
('size' happily displays 0 bytes in data and bss,
but in reality sed.o used 180 bytes of it). Oh well.
function old new delta
pipe_putc 67 76 +9
sed_main 627 633 +6
get_next_line 161 166 +5
bbg 180 - -180
(add/remove: 0/1 grow/shrink: 3/0 up/down: 20/-180) Total: -160 bytes
sed: also make sed -i failure message less cryptic