Denys Vlasenko
e6a2f4cc5a
libbb: make bb_common_bufsiz1 1 kbyte, add capability to use bss tail for it
...
The config item is FEATURE_USE_BSS_TAIL. When it is off (default):
function old new delta
read_config 210 228 +18
doCommands 2279 2294 +15
ipneigh_list_or_flush 763 772 +9
ipaddr_list_or_flush 1256 1261 +5
display_process_list 1301 1306 +5
conspy_main 1378 1383 +5
do_lzo_compress 352 355 +3
do_lzo_decompress 565 567 +2
push 46 44 -2
inetd_main 2136 2134 -2
uevent_main 421 418 -3
addLines 97 92 -5
bb_common_bufsiz1 8193 1024 -7169
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 8/5 up/down: 62/-7181) Total: -7119 bytes
text data bss dec hex filename
829850 4086 9080 843016 cdd08 busybox_old
829901 4086 1904 835891 cc133 busybox_unstripped
FEATURE_USE_BSS_TAIL=y:
read_config 210 228 +18
doCommands 2279 2294 +15
ipneigh_list_or_flush 763 772 +9
ipaddr_list_or_flush 1256 1261 +5
display_process_list 1301 1306 +5
conspy_main 1378 1383 +5
do_lzo_compress 352 355 +3
do_lzo_decompress 565 567 +2
inetd_main 2136 2134 -2
bb_common_bufsiz1 8193 - -8193
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 8/1 up/down: 62/-8195) Total: -8133 bytes
text data bss dec hex filename
829850 4086 9080 843016 cdd08 busybox_old
829911 4086 880 834877 cbd3d busybox_unstripped
FIXME: setup_common_bufsiz() calls are missing.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-04-21 17:39:11 +02:00
Denys Vlasenko
5598bdf0d3
unzip: shorter code for date/time generation
...
function old new delta
unzip_main 2426 2414 -12
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-04-18 02:38:32 +02:00
Denys Vlasenko
07bd979921
unzip: better match for "standard" unzip's output; string shrinkage
...
function old new delta
unzip_main 2490 2426 -64
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-64) Total: -64 bytes
text data bss dec hex filename
924008 906 17160 942074 e5ffa busybox_old
923846 906 17160 941912 e5f58 busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-04-18 01:43:24 +02:00
Denys Vlasenko
bca4deee83
unzip: fix percent overflow; show "stored" files properly
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-04-18 01:14:05 +02:00
Denys Vlasenko
0ccf52a9fb
unzip: fix a case where we find wrong CDE. Closes 8821
...
function old new delta
unzip_main 2472 2490 +18
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-04-17 21:05:34 +02:00
Denys Vlasenko
e4d925b889
sed: support "-f -" idiom
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-04-08 00:20:36 +02:00
Denys Vlasenko
6aab9928de
whitespace and namespace cleanups
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-04-03 22:24:51 +02:00
Denys Vlasenko
46b494635e
libbb: speed up error_msg functions
...
function old new delta
bb_verror_msg 386 466 +80
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-04-03 16:55:03 +02:00
Denys Vlasenko
bc14f4d13d
main(): add a TODO about finding a use for _end[] area
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-04-03 16:06:42 +02:00
Denys Vlasenko
056e1f558c
trylink: on failure, print a hint about CONFIG_EXTRA_LDLIBS
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-04-03 15:38:53 +02:00
Denys Vlasenko
1cf68e3033
typo fix
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-04-02 22:57:17 +02:00
Denys Vlasenko
a93e4fd376
find_applet_by_name: add an example of faster linear search code
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-04-02 22:54:23 +02:00
Denys Vlasenko
8b0f459af7
nsenter,unshare: work around older header
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-04-02 19:00:44 +02:00
Denys Vlasenko
b14374a5ba
sort: "-o FILE", not "-o", is the syntax
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-04-02 18:20:26 +02:00
Denys Vlasenko
8220399173
nsenter,unshare: share common code; fix a bug of not closing all fds
...
function old new delta
xvfork_parent_waits_and_exits - 64 +64
exec_prog_or_SHELL - 39 +39
unshare_main 873 810 -63
nsenter_main 663 596 -67
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 0/2 up/down: 106/-130) Total: -27 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-04-02 18:06:24 +02:00
Denys Vlasenko
c87e81f944
sort: help text does not need to say that -mST are supported but ignored
...
Such information is useless for users of "sort --help"
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-04-02 17:39:50 +02:00
Denys Vlasenko
dd02a05e08
build system: finer-grained selection of search speedup table.
...
KNOWN_APPNAME_OFFSETS=8 versus KNOWN_APPNAME_OFFSETS=0:
function old new delta
find_applet_by_name 55 136 +81
applet_nameofs - 14 +14
run_applet_and_exit 757 758 +1
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-04-02 15:18:26 +02:00
Denys Vlasenko
9f2f96edfa
unshare: remove stale comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-04-02 04:44:39 +02:00
Denys Vlasenko
c4199f22d0
libbb: two new functions: wait_for_exitstatus(pid), xfchdir(fd)
...
Bartosz Golaszewski proposed xfchdir()
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-04-01 22:12:44 +02:00
Denys Vlasenko
52977a7d60
Rename FEATURE_INITRD to LINUXRC and make it separate, not an alias to init
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-03-31 00:42:57 +02:00
Denys Vlasenko
a27dc33f97
make MKPASSWD a separate config option, not an automatic alias to cryptpw
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-03-31 00:32:39 +02:00
Denys Vlasenko
f75a96d74c
udhcp: fix capitalization of two messages
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-03-30 18:49:45 +02:00
Denys Vlasenko
16efe19128
dhcpd: string reuse
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-03-30 18:44:52 +02:00
Denys Vlasenko
8f2e99c813
udhcp: get rid of bb_info_msg()
...
function old new delta
udhcpd_main 1501 1531 +30
d6_recv_raw_packet 251 264 +13
perform_d6_release 188 198 +10
udhcpc6_main 2443 2449 +6
udhcp_recv_raw_packet 582 588 +6
udhcp_recv_kernel_packet 132 138 +6
send_d6_renew 140 146 +6
d6_recv_kernel_packet 118 124 +6
send_renew 77 82 +5
send_discover 85 90 +5
send_decline 84 89 +5
send_d6_select 97 102 +5
send_d6_discover 174 179 +5
perform_release 167 172 +5
count_lines 72 74 +2
udhcpc_main 2836 2837 +1
bb_info_msg 125 - -125
------------------------------------------------------------------------------
(add/remove: 0/2 grow/shrink: 17/4 up/down: 117/-180) Total: -63 bytes
text data bss dec hex filename
924935 906 17160 943001 e6399 busybox_old
924736 906 17160 942802 e62d2 busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-03-30 18:41:23 +02:00
Denys Vlasenko
80f0f1d712
setfiles: switch bb_info_msg to printf
...
Presumably, bb_info_msg was used here for syslog logging (-l),
but there is no actual code to activate syslog logging.
Added a TODO note on that, so that selinux users would notice
and fix if needed.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-03-30 18:17:35 +02:00
Denys Vlasenko
2a17fbe88a
sulogin: use bb_error_msg instead of bb_info_msg; better message
...
Historic "System Maintenance Mode" message is a tiny bit cryptic.
Let's say explicitly what we are doing: we are giving user a shell
(presumably to do some maintenance in single-user mode).
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-03-30 17:36:20 +02:00
Denys Vlasenko
32c08acba3
sulogin: remove suid paranoia code, explain why it's not necessary
...
function old new delta
sulogin_main 325 270 -55
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-03-30 17:27:32 +02:00
Denys Vlasenko
8ac6effb02
sulogin: Dorp incorrect comment about suid-ness
...
Sulogin is not a suid app, should fail if run by non-root.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-03-30 16:50:19 +02:00
Denys Vlasenko
c418f48d8d
fsck: use printf for message, not bb_info_msg
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-03-30 16:30:24 +02:00
Denys Vlasenko
3b757f0798
mkfs_vfat: use bb_error_msg for logging, not bb_info_msg
...
This affects only a commented-out code section which searches for bad blocks
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-03-30 16:23:10 +02:00
Denys Vlasenko
cde1199e01
zcip: use bb_error_msg for logging, not bb_info_msg
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-03-30 16:22:13 +02:00
Denys Vlasenko
066e76befe
Replace a few more bb_info_msg's by bb_error_msg or printf
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-03-30 16:20:28 +02:00
Denys Vlasenko
76b680c7a8
Use bb_error_msg instead of bb_info_msg in all commented-out debug printouts
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-03-30 16:04:37 +02:00
Denys Vlasenko
9844d7e830
Revert "networking: properly initialize ipv6 scope id for printing it"
...
This reverts commit 2fb63292f7 .
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-03-29 19:27:00 +02:00
Denys Vlasenko
20dd499341
modprobe: skip non-.conf files only in subdirectories
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-03-29 19:23:55 +02:00
Denys Vlasenko
31c984dd69
umount: build fix for older glibc
...
Based on a patch by Veli-Pekka Peltola <veli-pekka.peltola@ray.fi >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-03-28 22:23:33 +02:00
Denys Vlasenko
73dfdda92e
grep: make errors other than "not found" result in exit code 2. Closes 8796
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-03-28 22:12:09 +02:00
Denys Vlasenko
6701e91d84
wget: make -T timeout work on header reads too. Closes 8636
...
function old new delta
set_alarm - 27 +27
fgets_and_trim 76 92 +16
wget_main 2610 2616 +6
open_socket 64 54 -10
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-03-17 21:52:42 +01:00
Denys Vlasenko
0d1b71e8e6
nmeter: reinstate and document -d-1
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-03-15 17:54:17 +01:00
Denys Vlasenko
41b1e2c392
nmeter: remove undocumented %NNNd specifier
...
function old new delta
nmeter_main 707 745 +38
init_functions 48 44 -4
init_delay 63 - -63
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 1/1 up/down: 38/-67) Total: -29 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-03-15 16:13:23 +01:00
Denys Vlasenko
a63e2a8cb2
nmeter: simple code shrink here and there
...
function old new delta
nmeter_main 709 707 -2
init_cr 15 12 -3
collect_time 141 131 -10
collect_cpu 610 593 -17
init_cpu 82 63 -19
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/5 up/down: 0/-51) Total: -51 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-03-15 16:06:29 +01:00
Denys Vlasenko
8a26fda98c
nmeter: convert field list to bit list
...
function old new delta
rdval 34 157 +123
collect_int 123 122 -1
collect_thread_nr 65 62 -3
collect_blk 559 552 -7
collect_if 207 199 -8
collect_fork 119 111 -8
collect_ctx 119 111 -8
collect_fd 81 71 -10
collect_swp 120 107 -13
collect_cpu 623 610 -13
collect_mem 371 339 -32
rdval_loadavg 38 - -38
vrdval 170 - -170
------------------------------------------------------------------------------
(add/remove: 0/2 grow/shrink: 1/10 up/down: 123/-311) Total: -188 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-03-15 15:52:40 +01:00
Denys Vlasenko
99c71c9e80
nmeter: code shrink
...
function old new delta
put 52 43 -9
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-03-15 15:28:49 +01:00
Denys Vlasenko
e4de8c6316
nmeter: fix a bug with unterminated varargs
...
function old new delta
collect_mem 361 371 +10
collect_swp 116 120 +4
vrdval 168 170 +2
collect_thread_nr 63 65 +2
collect_int 121 123 +2
collect_if 205 207 +2
collect_fork 117 119 +2
collect_fd 79 81 +2
collect_ctx 117 119 +2
collect_cpu 621 623 +2
collect_blk 557 559 +2
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 11/0 up/down: 32/0) Total: 32 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-03-15 15:22:42 +01:00
Denys Vlasenko
fd5a2b7b04
New example config: android_502_defconfig
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-03-14 22:28:53 +01:00
Denys Vlasenko
23961b2fd3
more bionic fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-03-14 19:34:15 +01:00
Denys Vlasenko
dbb58a3879
fixes for problems found by bionic build
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-03-14 18:23:33 +01:00
Denys Vlasenko
1b7c17391d
udhcpc: fix a warning in debug code
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-03-11 00:26:58 +01:00
Denys Vlasenko
d474ffc682
udhcp: fix a SEGV on malformed RFC1035-encoded domain name
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-03-10 11:47:58 +01:00
Denys Vlasenko
d2b820b540
renice: tweak help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-03-07 15:21:54 +01:00
Denys Vlasenko
ea351b9742
ls: fix columnar output. Closes 8731
...
In coreutils/ls.c, 1.19 introduced commit
2f7d9e8903 , removing the variable tabstops and
hard coding the column separation to 2 characters, but was not done correctly.
The column_width assumes a gap of 1 character, so the computed number of
columns exceeds the terminal width when many small files are encountered.
A minor problem but surprisingly annoying.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-03-06 17:53:11 +01:00
Denys Vlasenko
7849ccb61c
inotifyd: swap meaning of 'y' and 'm' events in help text. Closes 8726
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-03-06 17:35:16 +01:00
Denys Vlasenko
86d9f60f3a
udhcpc: do not use -t NUM for counting "select" packets, use 3
...
Otherwise, "-t 0" usage may end up sending them forever
if server does not respond.
function old new delta
udhcpc_main 2846 2836 -10
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-03-04 17:00:56 +01:00
Denys Vlasenko
aee7cd82be
ntpd: add experimental patch
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-03-04 07:36:04 +01:00
Denys Vlasenko
c8641962e4
ntpd: if peer does not reply anymore, try re-resolving its hostname
...
function old new delta
ntpd_main 1053 1130 +77
add_peers 166 195 +29
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-03-04 07:26:08 +01:00
Denys Vlasenko
f37f28199f
ntpd: do not use a peer more than once (say, if two peers resolve to the same IP)
...
function old new delta
add_peers 98 166 +68
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-03-04 07:06:53 +01:00
Denys Vlasenko
4c48a64747
ntpd: more informative poll lowering message
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-03-03 22:02:30 +01:00
Denys Vlasenko
35e063e1b9
ifupdowm: fix "warning: unused variable 'iface_list'"
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-03-03 02:19:16 +01:00
Denys Vlasenko
352f79acbd
udhcpc: fix OPTION_6RD parsing (could overflow its malloced buffer)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-02-26 15:54:56 +01:00
Denys Vlasenko
5bec08cebd
udhcp: trivial shrink
...
function old new delta
dname_dec 337 332 -5
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-02-26 14:56:18 +01:00
Denys Vlasenko
03718bb274
ntpd: print packet delay in clock update message
...
function old new delta
update_local_clock 820 826 +6
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-02-24 01:22:45 +01:00
Denys Vlasenko
8efcc9589b
networking: allow dot at the end of the domain name in dhcp response
...
Patch based on Balaji Punnuru <balaji.punnuru@gmail.com > work.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-02-11 17:44:44 +01:00
Denys Vlasenko
383201e725
ntpd: shorter message
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-02-10 07:06:31 +01:00
Denys Vlasenko
fc47fcefb6
ntpd: step when |offset| > 1 sec, not 0.125 sec
...
update_local_clock 769 820 +51
recv_and_process_peer_pkt 838 862 +24
reset_peer_stats 137 133 -4
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 75/-4) Total: 71 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-02-10 06:55:07 +01:00
Denys Vlasenko
2a4bba3ce2
sed: make 's///w FILE' actually write to FILE. Closes 8251
...
function old new delta
add_cmd 1167 1210 +43
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-01-24 15:52:16 +01:00
Denys Vlasenko
eb5091070f
patch: correctly handle "patch FILE_TO_PATCH" form. Closes 7736
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-01-23 05:13:15 +01:00
Denys Vlasenko
c7e47cf627
dos2unix: try to preserve ownership. closes 8311
...
function old new delta
dos2unix_main 426 441 +15
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-01-17 03:50:36 +01:00
Denys Vlasenko
ccf7f0e4d3
setsid: implement -c
...
function old new delta
setsid_main 53 96 +43
packed_usage 30846 30833 -13
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-01-17 01:10:53 +01:00
Denys Vlasenko
bae8f98633
login: add commented-out PAM double password avoidance from BZ 4003
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2016-01-03 22:43:40 +01:00
Denys Vlasenko
911d265faf
mount: support "nofail" option. Closes 8551
...
function old new delta
singlemount 1045 1060 +15
mount_option_str 338 345 +7
mount_it_now 355 361 +6
mount_options 172 176 +4
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/0 up/down: 32/0) Total: 32 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2015-12-30 20:11:34 +01:00
Denys Vlasenko
ce4bc1ed04
iproute: support "scope". Closes 8561
...
function old new delta
iproute_modify 1051 1120 +69
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2015-12-30 17:32:51 +01:00
Denys Vlasenko
6c634f7968
swaponoff: fix compile-time warning
...
CC util-linux/swaponoff.o
cc1: warnings being treated as errors
util-linux/swaponoff.c: In function 'swap_enable_disable':
util-linux/swaponoff.c💯 warning: passing argument 1 of 'resolve_mount_spec' from incompatible pointer type
make[1]: *** [util-linux/swaponoff.o] Error 1
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2015-12-18 19:02:31 +01:00
Denys Vlasenko
196e400441
modutils: fix build error with !DEPMOD
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2015-11-06 15:50:28 +01:00
Denys Vlasenko
34adecc2b0
TODO file: remove mpstat, iostat, powertop - we have them now
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2015-11-04 19:39:54 +01:00
Denys Vlasenko
bc9bee01f3
hush-misc/func_args1.tests: remove "UNFIXED BUG", it does not fail
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2015-11-04 14:50:19 +01:00
Denys Vlasenko
2cf4591413
i2c_tools: suppress "'blen' may be used uninitialized in this function"
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2015-11-01 20:58:03 +01:00
Denys Vlasenko
6bd3fff51a
[g]unzip: fix recent breakage.
...
Also, do emit error message we so painstakingly pass from gzip internals
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2015-10-30 23:41:53 +01:00
Denys Vlasenko
ace833028f
stat: make -f optional. This allows to build stat for non-linux systems
...
function old new delta
packed_usage 30761 30706 -55
Based on the patch by Ron Yorston.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2015-10-30 22:10:44 +01:00
Denys Vlasenko
fe0dc34746
lineedit: FEATURE_REVERSE_SEARCH should not depend on SAVEHISTORY
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2015-10-30 21:39:19 +01:00
Denys Vlasenko
112889d706
hush: copy for.tests from ash testsuite
...
This test passes for hush
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2015-10-29 22:37:25 +01:00
Denys Vlasenko
7b14ede049
ash tests: make test print test name before it is run
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2015-10-29 20:34:20 +01:00
Denys Vlasenko
e2f32c02b1
ash: fix command -- crash
...
busybox sh -c 'command --' segfaults because parse_command_args
returns a pointer to a null pointer.
Based on commit 18071c7 from git://git.kernel.org/pub/scm/utils/dash/dash.git
by Gerrit Pape.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2015-10-29 19:46:40 +01:00
Denys Vlasenko
4c8576fea1
modinfo: fix "-F firmware", add "intree" field display
...
function old new delta
shortcuts - 52 +52
modinfo 317 330 +13
display 77 87 +10
packed_usage 30752 30761 +9
modinfo_main 351 345 -6
static.shortcuts 48 - -48
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 3/1 up/down: 84/-54) Total: 30 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2015-10-28 18:07:46 +01:00
Denys Vlasenko
4840325351
lzop: eliminate variable, use "int" as return type
...
Based on patch by Maxin B. John <maxin.john@intel.com >
function old new delta
pack_lzop 870 859 -11
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2015-10-28 15:33:19 +01:00
Denys Vlasenko
1de25a6e87
unzip: test for bad archive SEGVing
...
function old new delta
huft_build 1296 1300 +4
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2015-10-26 19:33:05 +01:00
Denys Vlasenko
db700330d8
tweak defconfig
...
MONOTONIC_SYSCALL=y by default
FEATURE_LAST_SMALL is gone: now FEATURE_LAST_FANCY is a "bool", not a "choice".
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2015-10-25 20:36:03 +01:00
Denys Vlasenko
0269789537
inetd: make FEATURE_INETD_RPC off by default
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2015-10-25 20:10:46 +01:00
Denys Vlasenko
f98705a00c
dumpleases: string reuse
...
text data bss dec hex filename
926254 906 17160 944320 e68c0 busybox_old
926242 906 17160 944308 e68b4 busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2015-10-24 20:45:10 +02:00
Denys Vlasenko
334e12ac6a
zcip: ...ad suppress the warning
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2015-10-24 19:15:44 +02:00
Denys Vlasenko
49d51598ac
zcip: do not query current time if we won't use the result
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2015-10-24 19:14:04 +02:00
Denys Vlasenko
bf1866c183
tweak zcip service example
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2015-10-24 18:57:32 +02:00
Denys Vlasenko
1a1cfedbef
Tweak README
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2015-10-24 14:58:58 +02:00
Denys Vlasenko
4f8ecf273c
update network service examples
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2015-10-24 14:55:33 +02:00
Denys Vlasenko
d32a1a4054
New example of a service: examples/var_service/zcip_if
...
Zeroconf for IPv4
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2015-10-24 05:30:58 +02:00
Denys Vlasenko
9a51217668
dumpleases: make host names sanitized to shell-friendly condition
...
function old new delta
add_lease 271 298 +27
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2015-10-24 04:45:22 +02:00
Denys Vlasenko
941e7a4919
reuse a string
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2015-10-24 04:19:56 +02:00
Denys Vlasenko
cd13974b20
rmmod: fix bad error message
...
Before:
># busybox_old rmmod gtrhfhdfghdf
rmmod: can't unload 'gtrhfhdfghdf': unknown symbol in module, or unknown parameter
After:
># busybox rmmod gtrhfhdfghdf
rmmod: can't unload module 'gtrhfhdfghdf': No such file or directory
function old new delta
modprobe_main 726 721 -5
do_modprobe 599 590 -9
rmmod_main 187 169 -18
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-32) Total: -32 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2015-10-24 04:17:04 +02:00
Denys Vlasenko
2e9a0662bc
MODPROBE_SMALL is not experimental anymore
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2015-10-24 04:13:16 +02:00
Denys Vlasenko
049b007865
pmap: fix bogus {no such process} comm field text
...
function old new delta
read_cmdline 246 266 +20
procps_get_maps 196 193 -3
packed_usage 30413 30404 -9
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/2 up/down: 20/-12) Total: 8 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2015-10-24 03:45:57 +02:00
Denys Vlasenko
00da72bee0
tidy up strtok use
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2015-10-23 18:43:16 +02:00