Tomas Heinrich [Fri, 16 Apr 2010 21:59:51 +0000 (23:59 +0200)]
read_key: fix buffer length calculation
Signed-off-by: Tomas Heinrich <heinrich.tomas@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Nguyễn Thái Ngọc Duy [Thu, 15 Apr 2010 23:55:04 +0000 (16:55 -0700)]
ar: fix a regression: "ar t arch.a" stopped shoting files
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Thu, 15 Apr 2010 15:37:59 +0000 (08:37 -0700)]
httpd_indexcgi example: trivial fix
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Wed, 14 Apr 2010 21:04:26 +0000 (14:04 -0700)]
udhcpc: make help text better
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Wed, 14 Apr 2010 20:52:41 +0000 (13:52 -0700)]
loop: correct minor device number limit
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Wed, 14 Apr 2010 20:37:25 +0000 (13:37 -0700)]
devmem: map two pages only if it is necessary
function old new delta
devmem_main 463 469 +6
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Lauri Kasanen [Wed, 14 Apr 2010 19:31:26 +0000 (12:31 -0700)]
mount: add an optional capability to create new /dev/loopN as needed
Signed-off-by: Lauri Kasanen <curaga@operamail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Wed, 14 Apr 2010 17:14:25 +0000 (10:14 -0700)]
dnsd: enforce alignment on packet buffer
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Ralf Rösch [Wed, 14 Apr 2010 16:45:37 +0000 (09:45 -0700)]
modutils-24: [mips] modutlis-24 segfault fix for 2.4 kernel modules
handling DWARF sections solves the problem.
This seems to be a long outstanding bug:
http://permalink.gmane.org/gmane.linux.busybox/4533
http://www.linux-mips.org/archives/linux-mips/2004-08/msg00072.html
Signed-off-by: Ralf Rösch <ralf.roesch@rw-gmbh.de>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Wed, 14 Apr 2010 16:19:20 +0000 (09:19 -0700)]
hwclock: improve, and then disable clever sync code: it's bloat
...and hardware is too stupid to benefit from it anyway
function old new delta
hwclock_main 439 319 -120
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Fri, 9 Apr 2010 12:58:40 +0000 (14:58 +0200)]
xargs: do not decrease orig_arg_max to negative values
Based on patch by Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Nguyễn Thái Ngọc Duy [Fri, 9 Apr 2010 12:34:28 +0000 (14:34 +0200)]
Exclude syslog code if FEATURE_SYSLOG is not set
syslog.h and syslog(...) may not exist in such configuration
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Fri, 9 Apr 2010 12:11:45 +0000 (14:11 +0200)]
tar: fix "hardlinks to symlinks chown" bug 1519.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Fri, 9 Apr 2010 08:52:52 +0000 (10:52 +0200)]
tar: fix mishandling of repeated hardlink in tarball; expand tests
function old new delta
data_extract_all 727 767 +40
get_header_tar 1576 1572 -4
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Steve Bennett [Wed, 7 Apr 2010 17:16:12 +0000 (19:16 +0200)]
ipcalc: more correct checking for proper number of arguments
function old new delta
ipcalc_main 581 569 -12
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Wed, 7 Apr 2010 16:03:34 +0000 (18:03 +0200)]
ps: fix non-DESKTOP option handling code
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Tue, 6 Apr 2010 21:33:28 +0000 (23:33 +0200)]
hexdump: make -s 0xNNNNN work
function old new delta
hexdump_main 603 605 +2
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Tue, 6 Apr 2010 16:51:29 +0000 (18:51 +0200)]
fix typo
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Tue, 6 Apr 2010 16:50:05 +0000 (18:50 +0200)]
libbb: add skip_dev_pfx()
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Tue, 6 Apr 2010 16:49:28 +0000 (18:49 +0200)]
init: clear utmp entries for dead processes, if they (entries) exist
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Tue, 6 Apr 2010 16:48:32 +0000 (18:48 +0200)]
Move utmp/wtmp support to "General configuration" section
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Tue, 6 Apr 2010 15:43:29 +0000 (17:43 +0200)]
telnetd: fill hostname field in utmp/wtmp records
function old new delta
get_lsa - 109 +109
make_new_session 438 504 +66
get_peer_lsa - 10 +10
ftpd_main 2340 2267 -73
get_sock_lsa 101 10 -91
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 1/2 up/down: 185/-164) Total: 21 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Tue, 6 Apr 2010 14:56:33 +0000 (16:56 +0200)]
fdisk: make comment more clear
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Tue, 6 Apr 2010 14:52:59 +0000 (16:52 +0200)]
udhcp: s/sipservers/sipsrv/ to match other similar option names
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Tue, 6 Apr 2010 00:32:26 +0000 (02:32 +0200)]
fdisk: make 'b' command optionally adjust C/H/S; "fdisk IMAGE_FILE" sets cylinders
function old new delta
set_hsc_start_end - 189 +189
get_boot 1644 1713 +69
fdisk_main 2620 2652 +32
get_partition_start_from_dev_start - 15 +15
get_partition_start 15 - -15
set_partition 286 120 -166
------------------------------------------------------------------------------
(add/remove: 2/1 grow/shrink: 2/1 up/down: 305/-181) Total: 124 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Tue, 6 Apr 2010 00:31:43 +0000 (02:31 +0200)]
fdisk: code shrink without logic changes
function old new delta
create_doslabel 113 110 -3
set_start_sect 8 4 -4
set_nr_sects 8 4 -4
get_start_sect 8 4 -4
get_nr_sects 8 4 -4
store4_little_endian 21 - -21
read4_little_endian 33 - -33
is_cleared_partition 84 21 -63
------------------------------------------------------------------------------
(add/remove: 0/2 grow/shrink: 0/6 up/down: 0/-136) Total: -136 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Mon, 5 Apr 2010 22:04:08 +0000 (00:04 +0200)]
removed extra \n in fdisk help text
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Mon, 5 Apr 2010 20:10:38 +0000 (22:10 +0200)]
telnetd: write LOGIN/DEAD_PROCESS utmp records. Closes bug 1363
function old new delta
write_new_utmp - 253 +253
skip_dev_pfx - 30 +30
handle_sigchld 42 72 +30
telnetd_main 1650 1673 +23
make_new_session 415 438 +23
...
login_main 1140 1148 +8
update_utmp 337 313 -24
write_wtmp 220 154 -66
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 11/6 up/down: 406/-115) Total: ~291 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Mon, 5 Apr 2010 01:18:40 +0000 (03:18 +0200)]
libbb: split update_utmp from login/getty in preparation to use it for telnetd
function old new delta
update_utent - 339 +339
login_main 1498 1128 -370
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/1 up/down: 339/-370) Total: -31 bytes
function old new delta
update_utmp 246 337 +91
login_main 1128 1140 +12
getty_main 1908 1918 +10
...
update_utent 339 - -339
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 5/6 up/down: 119/-368) Total: -249 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sun, 4 Apr 2010 21:45:09 +0000 (23:45 +0200)]
who: fix attempts to open '/dev/dev/ttyX'; make columns a bit wider, add -H
function old new delta
who_main 292 363 +71
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sun, 4 Apr 2010 20:36:34 +0000 (22:36 +0200)]
udhcpd: note missing sanity checks on INFORM message handling
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sun, 4 Apr 2010 13:38:22 +0000 (15:38 +0200)]
update examples/udhcp/udhcpd.conf
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sun, 4 Apr 2010 13:31:12 +0000 (15:31 +0200)]
udhcp: implement "raw" binary options. Closes bug 735
function old new delta
allocate_tempopt_if_needed - 76 +76
udhcp_str2optset 351 415 +64
attach_option 380 398 +18
len_of_option_as_string 11 12 +1
dhcp_option_lengths 11 12 +1
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 4/0 up/down: 160/0) Total: 160 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sun, 4 Apr 2010 13:29:32 +0000 (15:29 +0200)]
libbb: factor out hex2bin() for infiniband address parser
function old new delta
hex2bin - 149 +149
in_ib 172 27 -145
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sun, 4 Apr 2010 13:28:49 +0000 (15:28 +0200)]
udhcp: s/dhcp_option/dhcp_optflag/g
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sun, 4 Apr 2010 00:12:03 +0000 (02:12 +0200)]
udhcpc: trivial shrink
function old new delta
udhcpc_main 2801 2785 -16
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sat, 3 Apr 2010 23:48:12 +0000 (01:48 +0200)]
awk: add comment about fixing bug 1333
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sat, 3 Apr 2010 23:17:30 +0000 (01:17 +0200)]
awk: don't append bogus data after NUL in sub(); shrink
also renamed variables to more sensible names
function old new delta
mk_re_node 56 49 -7
awk_sub 601 591 -10
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sat, 3 Apr 2010 15:34:52 +0000 (17:34 +0200)]
udhcpd: support decoding of option 120 "SIP servers". Closes bug 737
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sat, 3 Apr 2010 13:39:47 +0000 (15:39 +0200)]
cosmetic fixes, no code changed
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sat, 3 Apr 2010 12:59:12 +0000 (14:59 +0200)]
ftpd: shrink by 33 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Fri, 2 Apr 2010 22:52:16 +0000 (00:52 +0200)]
libbb: make index_in_substrings return -1 on ambiguous matches
function old new delta
index_in_substrings 67 93 +26
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Fri, 2 Apr 2010 10:12:43 +0000 (12:12 +0200)]
libpwdgrp: comment out unused data
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Fri, 2 Apr 2010 08:40:58 +0000 (10:40 +0200)]
httpd: fix proxy mode bug (annoying but harmless), better help text
function old new delta
cgi_io_loop_and_exit 594 635 +41
packed_usage 26815 26841 +26
handle_incoming_and_exit 2745 2739 -6
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Chris Metcalf [Fri, 2 Apr 2010 07:57:27 +0000 (09:57 +0200)]
testsuite fixes
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Fri, 2 Apr 2010 05:04:44 +0000 (07:04 +0200)]
ifplugd: more robust interface name match check
function old new delta
check_existence_through_netlink 278 308 +30
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Fri, 2 Apr 2010 04:47:14 +0000 (06:47 +0200)]
mdev: add "!" syntax support
Based on the patch by Steve Bennett <steveb@workware.net.au>
function old new delta
make_device 1640 1673 +33
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Thu, 1 Apr 2010 13:09:44 +0000 (15:09 +0200)]
clean up redundant, commented-out and misplaced includes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Wed, 31 Mar 2010 14:03:56 +0000 (16:03 +0200)]
fix Config.in tab usage
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Janne Kiviluoto [Wed, 31 Mar 2010 13:58:58 +0000 (15:58 +0200)]
syslogd: make maximum message length configurable
Signed-off-by: Janne Kiviluoto <janne.kiviluoto@bluegiga.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Wed, 31 Mar 2010 12:43:58 +0000 (14:43 +0200)]
libpwdgrp: comment out more unused functions
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Wed, 31 Mar 2010 10:38:17 +0000 (12:38 +0200)]
libpwdgrp: comment out functions with UNUSED_SINCE_WE_AVOID_STATIC_BUFS
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Wed, 31 Mar 2010 10:37:43 +0000 (12:37 +0200)]
libpwdgrp: style cleanups
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Wed, 31 Mar 2010 08:31:51 +0000 (10:31 +0200)]
libpwdgrp: code style fixes, no real code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Wed, 31 Mar 2010 08:24:37 +0000 (10:24 +0200)]
libpwdgrp: can't depend on strlen(line_buff) != 0
function old new delta
bb__pgsreader 188 202 +14
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Tue, 30 Mar 2010 14:20:34 +0000 (16:20 +0200)]
dpkg: remove redundant check
function old new delta
dpkg_main 4008 3991 -17
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Maxim Kryzhanovsky [Tue, 30 Mar 2010 13:49:57 +0000 (15:49 +0200)]
ifplugd: code shrink; expanded comments
Signed-off-by: Maxim Kryzhanovsky <xmaks@email.cz>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Tue, 30 Mar 2010 13:03:26 +0000 (15:03 +0200)]
dpkg: better check for validity of options
function old new delta
dpkg_main 3980 4008 +28
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Kim B. Heino [Mon, 29 Mar 2010 12:18:27 +0000 (14:18 +0200)]
dpkg: support config file overwrite options
function old new delta
filter_rename_config - 244 +244
static.dpkg_longopts - 112 +112
dpkg_main 3901 3980 +79
unpack_package 515 587 +72
append_control_file_to_llist - 72 +72
data_extract_all_prefix 88 116 +28
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 3/0 up/down: 607/0) Total: 607 bytes
Signed-off-by: Kim B. Heino <Kim.Heino@bluegiga.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Mon, 29 Mar 2010 09:20:00 +0000 (11:20 +0200)]
provide safe_gethostname() for non-linux systems
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Mon, 29 Mar 2010 09:02:00 +0000 (11:02 +0200)]
libbb: locate PAGE_SIZE on Hurd
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Maxim Kryzhanovsky [Mon, 29 Mar 2010 07:09:05 +0000 (09:09 +0200)]
ifplugd: code shrink
text data bss dec hex filename
840048 453 6828 847329 cede1 busybox_old
839915 453 6828 847196 ced5c busybox_unstripped
Signed-off-by: Maxim Kryzhanovsky <xmaks@email.cz>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sun, 28 Mar 2010 18:26:40 +0000 (20:26 +0200)]
"make release" should delete .git directory too
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sun, 28 Mar 2010 18:07:42 +0000 (20:07 +0200)]
cpio test: fix false positive with DESKTOP off
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sat, 27 Mar 2010 23:30:35 +0000 (00:30 +0100)]
usage: random tweaks to help texts
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sat, 27 Mar 2010 23:02:20 +0000 (00:02 +0100)]
dumpleases: better help text
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sat, 27 Mar 2010 22:24:57 +0000 (23:24 +0100)]
udhcpd: fix -v/-P mixup
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sat, 27 Mar 2010 22:23:41 +0000 (23:23 +0100)]
udhcp: abort if we see unknown option, and show valid options if so
function old new delta
udhcp_option_idx - 77 +77
udhcp_str2optset 366 351 -15
udhcpc_main 2845 2801 -44
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/2 up/down: 77/-59) Total: 18 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sat, 27 Mar 2010 04:02:00 +0000 (05:02 +0100)]
sysctl: tiny code shrink
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Jérémie Koenig [Fri, 26 Mar 2010 18:08:53 +0000 (19:08 +0100)]
Hurd compat fixes. Mostly dealing with absent PATH_MAX
Signed-off-by: Jérémie Koenig <jk@jk.fr.eu.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Fri, 26 Mar 2010 15:10:14 +0000 (16:10 +0100)]
vi: fix NUM + "$" handling
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Fri, 26 Mar 2010 14:53:33 +0000 (15:53 +0100)]
ash: line up builtin table. no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Fri, 26 Mar 2010 14:52:24 +0000 (15:52 +0100)]
ash: trap with bad signal name should not abort
function old new delta
trapcmd 236 271 +35
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Fri, 26 Mar 2010 13:06:56 +0000 (14:06 +0100)]
unicode: s/FEATURE_ASSUME_UNICODE/UNICODE_SUPPORT, add UNICODE_USING_LOCALE
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Tomas Heinrich [Fri, 26 Mar 2010 12:13:24 +0000 (13:13 +0100)]
unicode: optional table for better handling of neutral bidi chars
Off:
function old new delta
unicode_bidi_isrtl - 55 +55
isrtl_str 51 65 +14
unicode_isrtl 55 - -55
read_line_input 5003 4937 -66
------------------------------------------------------------------------------
(add/remove: 1/4 grow/shrink: 1/1 up/down: 69/-121) Total: -52 bytes
On:
function old new delta
static.neutral_b - 320 +320
static.neutral_p - 142 +142
unicode_bidi_isrtl - 55 +55
unicode_bidi_is_neutral_wchar - 55 +55
isrtl_str 51 59 +8
unicode_isrtl 55 - -55
read_line_input 5003 4937 -66
------------------------------------------------------------------------------
(add/remove: 4/4 grow/shrink: 1/1 up/down: 580/-121) Total: 459 bytes
Signed-off-by: Tomas Heinrich <heinrich.tomas@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Fri, 26 Mar 2010 09:09:34 +0000 (10:09 +0100)]
udhcp: cosmetic cleanups; one case of s/full_read/xread/
function old new delta
dumpleases_main 632 623 -9
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Tomas Heinrich [Fri, 26 Mar 2010 08:46:07 +0000 (09:46 +0100)]
unexpand: fix "a b"\n" input case
Signed-off-by: Tomas Heinrich <heinrich.tomas@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Tomas Heinrich [Fri, 26 Mar 2010 08:40:47 +0000 (09:40 +0100)]
[un]expand: account for different character widths. +16 bytes.
Signed-off-by: Tomas Heinrich <heinrich.tomas@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Fri, 26 Mar 2010 08:32:09 +0000 (09:32 +0100)]
udhcp: pass pointer to whole packet to "add option" functions
This is needed for "overflow option" support
function old new delta
udhcp_find_option - 34 +34
udhcp_add_binary_option 94 106 +12
write_leases 227 223 -4
udhcp_init_header 86 82 -4
send_release 104 99 -5
init_packet 87 81 -6
add_client_options 160 154 -6
add_server_options 100 92 -8
udhcpd_main 1964 1954 -10
udhcpc_main 2859 2837 -22
find_option 34 - -34
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 1/8 up/down: 46/-99) Total: -53 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Fri, 26 Mar 2010 07:35:24 +0000 (08:35 +0100)]
udhcp: move options.c to common.c; disable unused bool and s16 option code
function old new delta
udhcp_add_binary_option - 94 +94
udhcp_str2nip - 42 +42
len_of_option_as_string 12 10 -2
dhcp_option_lengths 12 10 -2
udhcpc_main 2859 2851 -8
read_nip 42 - -42
xmalloc_optname_optval 590 536 -54
udhcp_str2optset 443 366 -77
udhcp_add_option_string 86 - -86
------------------------------------------------------------------------------
(add/remove: 2/2 grow/shrink: 0/5 up/down: 136/-271) Total: -135 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Thu, 25 Mar 2010 19:32:38 +0000 (20:32 +0100)]
udhcpc: add -x OPT:VAL option
function old new delta
udhcp_str2optset - 443 +443
add_client_options - 160 +160
udhcpc_main 2753 2857 +104
packed_usage 26670 26689 +19
attach_option 380 385 +5
udhcpd_main 1964 1965 +1
udhcp_add_option_string 94 86 -8
add_param_req_option 128 - -128
read_opt 443 - -443
------------------------------------------------------------------------------
(add/remove: 2/2 grow/shrink: 4/1 up/down: 732/-579) Total: 153 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Bernhard Reutner-Fischer [Thu, 25 Mar 2010 13:15:24 +0000 (14:15 +0100)]
update defconfig
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer [Thu, 25 Mar 2010 13:15:04 +0000 (14:15 +0100)]
remove ar write support from TODO
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Denys Vlasenko [Wed, 24 Mar 2010 15:43:16 +0000 (16:43 +0100)]
udhcp: add testing bits to dns en/decoder
we had two bugs there at least, must have testing
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Wed, 24 Mar 2010 15:11:32 +0000 (16:11 +0100)]
udhcp: we call DNS name encoder with NULL, this can SEGV. added a check
function old new delta
dname_enc 418 415 -3
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Wed, 24 Mar 2010 14:06:23 +0000 (15:06 +0100)]
udhcp: fix DNS domanin codec bug: bad compression flag checks
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Tue, 23 Mar 2010 15:25:17 +0000 (16:25 +0100)]
*: merge some common strings
text data bss dec hexfilename
838650 8009 0 846659 ceb43busybox_old
838519 8009 0 846528 ceac0busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Tue, 23 Mar 2010 14:43:08 +0000 (15:43 +0100)]
udhcp: handle errors in read_staticlease
also gets rid of ether-aton's static buffer in ether-wake:
text data bss dec hexfilename
838664 441 7572 846677 ceb55busybox_old
838650 441 7564 846655 ceb3fbusybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Maciek Borzecki [Tue, 23 Mar 2010 04:18:38 +0000 (05:18 +0100)]
brctl: fixing stp parameters incompatibility
function old new delta
static.stp_opts - 23 +23
brctl_main 1148 1169 +21
packed_usage 26786 26794 +8
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 2/0 up/down: 52/0) Total: 52 bytes
Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Souf Oued [Tue, 23 Mar 2010 04:06:37 +0000 (05:06 +0100)]
lsusb: 2.6.32 compat
Signed-off-by: Souf Oued <souf_oued@yahoo.fr>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Tue, 23 Mar 2010 03:31:38 +0000 (04:31 +0100)]
udhcp: code shrink
function old new delta
attach_option - 380 +380
read_opt 859 443 -416
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/1 up/down: 380/-416) Total: -36 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Tue, 23 Mar 2010 01:17:52 +0000 (02:17 +0100)]
udhcp: remove two unused fields
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Tue, 23 Mar 2010 00:08:26 +0000 (01:08 +0100)]
ash,hush: make it possible to build them individually
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Alexander Shishkin [Mon, 22 Mar 2010 17:22:33 +0000 (18:22 +0100)]
date,touch: accept Jan 7 00:00:00 2010 format
function old new delta
parse_datestr 618 647 +29
Signed-off-by: Alexander Shishkin <virtuoso@slind.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Mon, 22 Mar 2010 14:22:14 +0000 (15:22 +0100)]
udhcp: make rfc derived doc more readable (but it still is contradictory)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Mon, 22 Mar 2010 13:29:13 +0000 (14:29 +0100)]
udhcp: merge options.h into common.h, script.c into dhcpc.c
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Mon, 22 Mar 2010 12:44:09 +0000 (13:44 +0100)]
udhcpc: do not test for srand init, just do it at the start
function old new delta
udhcpc_main 2855 2867 +12
static.initialized 1 - -1
client_background 32 31 -1
perform_release 124 122 -2
random_xid 38 - -38
------------------------------------------------------------------------------
(add/remove: 0/2 grow/shrink: 1/2 up/down: 12/-42) Total: -30 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Mon, 22 Mar 2010 12:43:12 +0000 (13:43 +0100)]
udhcp: merge clientpacket.c into dhcpc.c
function old new delta
udhcpc_main 2569 2855 +286
perform_release 122 124 +2
client_background 31 32 +1
init_packet 156 88 -68
send_decline 114 - -114
send_discover 121 - -121
send_select 130 - -130
------------------------------------------------------------------------------
(add/remove: 0/4 grow/shrink: 3/1 up/down: 289/-433) Total: -144 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Mon, 22 Mar 2010 12:42:13 +0000 (13:42 +0100)]
udhcpc: merge clientsocket.c into dhcpc.c. +4 bytes.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sun, 21 Mar 2010 18:12:03 +0000 (19:12 +0100)]
flock: should not be selected by default
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>