Denys Vlasenko
28dd64a0e1
libarchive: open_zipped() does not need to check extensions for e.g. gzip
...
We only need to check for signature-less extensions,
currently only .lzma. The rest can be happily autodetected.
This fixes "zcat FILE_WITHOUT_GZ_EXT" case, among others.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
(cherry picked from commit 7c47b560a8 )
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2014-10-21 15:11:54 -04:00
Denys Vlasenko
5698ff9323
lzop: add overflow check
...
See CVE-2014-4607
http://www.openwall.com/lists/oss-security/2014/06/26/20
function old new delta
lzo1x_decompress_safe 1010 1031 +21
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
(cherry picked from commit a9dc7c2f59 )
2014-10-21 08:41:37 -04:00
Denys Vlasenko
d9e0c438e1
Apply post-1.22.0 patches, bump version to 1.22.1
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2014-01-20 03:41:48 +01:00
Denys Vlasenko
a2dd4ee0e8
Bump version to 1.22.0
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2014-01-01 00:42:11 +01:00
Denys Vlasenko
7625811d25
testsuite: remove forgotten debug hack
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-12-31 23:25:46 +01:00
Denys Vlasenko
198b02f7dd
fix failures found by randomconfig builds
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-12-31 23:22:36 +01:00
Denys Vlasenko
61be8e46a8
testsuite: disable tests for no longer supported bbox-specific date formats
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-12-31 18:57:39 +01:00
Denys Vlasenko
e83e1c50f2
adduser: check whether run with no USERNAME. Closes 6728
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-12-20 20:45:02 +01:00
Denys Vlasenko
e85e260e47
testsuite: fix false positives for du
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-12-20 02:55:16 +01:00
Daniel Borca
c9d87bed8e
build system: fix make gconfig
...
Was getting "undefined reference to symbol 'dlsym@@GLIBC_2.2.5'".
Signed-off-by: Daniel Borca <dborca@yahoo.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-12-19 04:43:24 +01:00
David A. Wheeler
80a068d741
sed: accept s///i as a synonym for s///I ("ignore case")
...
Signed-off-by: David A. Wheeler <dwheeler@dwheeler.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-12-18 16:23:49 +01:00
Michael Tokarev
e9355c4326
hostname: do not use gethostbyname() for "hostname -s"
...
There's no reason to call gethostbyname() on the value returned
by uname() when asked just for a short name of a host. This may
also be wrong, when uname is set to one value, but in /etc/hosts
(or elsewhere) the "canonical" name is different. This is often
the case for localhost entry in /etc/hosts:
127.0.0.1 localhost myname
With this content of /etc/hosts, and uname being set to myname,
busybox hostname -s will return localhost, while regular
hostname utility returns myname.
Fix this by not calling gethostbyname() for the simple
'hostname -s' use.
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-12-17 19:13:45 +01:00
Lauri Kasanen
4967a41ba1
wget: user-friendly fallback to http
...
GNU wget: wget google.com // ok
bb before: wget google.com // wget: not an http or ftp url
function old new delta
parse_url 317 339 +22
Signed-off-by: Lauri Kasanen <curaga@operamail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-12-17 19:09:43 +01:00
Denys Vlasenko
4b26f82c78
kill[all[5]]: code shrink
...
function old new delta
kill_main 992 947 -45
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-12-16 17:45:44 +01:00
Uros Vampl
3ac1e0d753
killall5: return 2 if no processes got killed
...
function old new delta
kill_main 943 992 +49
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-12-16 17:44:58 +01:00
Michael Tokarev
9f4f60183b
do not fail build if MAXSYMLINKS isn't defined
...
This is needed for, eg, hurd, which is known to have no constraints.
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-12-16 03:41:30 +01:00
Michael Tokarev
22bb81fa85
expand: use printable_string instead of hard-coding implementation
...
function old new delta
expand_main 709 690 -19
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-12-16 03:38:24 +01:00
Denys Vlasenko
0b3a38b9f5
ntpd: speed up resyncing if our clock is seriously off
...
function old new delta
recv_and_process_peer_pkt 892 922 +30
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-12-08 16:11:04 +01:00
Denys Vlasenko
777be10ebe
ntpd: do not invalidate datapoints after step
...
Used to set p->filter_datapoint[i].d_dispersion = MAXDISP
and clear reachable bits, but this proved to be too agressive:
after step (tested with suspinding laptop for ~30 secs),
this caused all previous data to be considered invalid,
making us needing to collect full ~8 datapoins per peer
after step in order to start trusting them.
In turn, this was making poll interval decrease even after
step was done. (Poll interval decreases already before step
in this scenario, because we see large offsets and end up with
no good peer to select).
function old new delta
reset_peer_stats 157 139 -18
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-12-07 17:29:03 +01:00
Denys Vlasenko
6c46eed6e9
ntpd: comment out "spike detection" code
...
function old new delta
update_local_clock 982 835 -147
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-12-04 17:12:11 +01:00
Denys Vlasenko
a14958c69d
ntpd: promote log level 3 to production
...
Without it, peer selection logic is hard to debug
function old new delta
update_local_clock 861 982 +121
select_and_cluster 962 1065 +103
common_ping_main 1788 1821 +33
huft_build 1287 1296 +9
chpst_main 708 704 -4
INET6_resolve 127 119 -8
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/2 up/down: 266/-12) Total: 254 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-12-04 16:32:09 +01:00
Denys Vlasenko
cb1dc1d1d1
ntpd: let user know if spike was detected
...
function old new delta
update_local_clock 861 943 +82
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-12-04 13:19:04 +01:00
Denys Vlasenko
327f550669
Use unsigned printf/scanf conversion where more appropriate
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-29 16:45:45 +01:00
Denys Vlasenko
9b2a9f0210
fix assorted unused code and wrong format specs found by cppchekc (bug 6716)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-29 16:43:33 +01:00
Denys Vlasenko
1a7256ac38
chpst: fix a bug where -U USER was using wrong USER (one from -u USER)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-29 16:39:28 +01:00
Daniel Borca
72745632a1
ping: try SOCK_DGRAM if no root privileges
...
Signed-off-by: Daniel Borca <dborca@yahoo.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-28 12:50:25 +01:00
Daniel Borca
df0d2cd837
dpkg-deb: cosmetic correction to usage text
...
Signed-off-by: Daniel Borca <dborca@yahoo.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-28 12:38:25 +01:00
Denys Vlasenko
deb0769b26
sed: code shrink
...
function old new delta
get_next_line 246 250 +4
sed_main 671 662 -9
add_input_file 47 - -47
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 1/1 up/down: 4/-56) Total: -52 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-28 12:08:51 +01:00
Denys Vlasenko
259b3c047a
sed: open input files sequentially to avoid EMFILE
...
Currently, sed pre-opens all files, which may cause EMFILE errors
on systems with low ulimit -n. Change sed to open one file at a time.
function old new delta
get_next_line 177 235 +58
sed_main 682 652 -30
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 58/-30) Total: 28 bytes
Based on the patch by Daniel Borca <dborca@yahoo.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-28 03:14:16 +01:00
Denys Vlasenko
8bd810bd27
hush: typo fixes in comments
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-28 01:50:01 +01:00
Daniel Borca
d9fc4d8f92
platform: strchrnul is missing if __APPLE__
...
Signed-off-by: Daniel Borca <dborca@yahoo.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-27 00:27:46 +01:00
Denys Vlasenko
195c436f84
build system: use od -b instead of od -t x1
...
od -t is not available in non-CONFIG_DESKTOPed busybox od
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-26 14:56:29 +01:00
Bogdan Purcareata
760fc6debc
init: halt on SIGPWR too
...
Most init processes implement a handler for SIGPWR that gracefully
stops all child processes when shutting down a machine. Some other
technologies rely on this signal - e.g. Busybox powered LXC
containers.
This patch makes busybox init halt when receiving SIGPWR.
Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-26 13:54:48 +01:00
Denys Vlasenko
cffe28ef87
libbb: add sketch of tentative 'better' passwd/group API
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-26 13:46:18 +01:00
Denys Vlasenko
4d8ad381ab
devfsd: remove static variable
...
function old new delta
static.msg 4 - -4
get_uid_gid 114 107 -7
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 0/1 up/down: 0/-11) Total: -11 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-26 12:12:27 +01:00
Denys Vlasenko
924a179cb7
build system: do not generate MAX_APPLET_NAME_LEN (unused)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-26 12:03:24 +01:00
Denys Vlasenko
26ad256bd0
logread: don't call shmdt() before exit, kernel does it for us.
...
function old new delta
logread_main 472 466 -6
interrupted 20 9 -11
error_exit 20 - -20
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 0/2 up/down: 0/-37) Total: -37 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-26 12:02:18 +01:00
Denys Vlasenko
71f6c1aa43
logread: flush output. closes 6710
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-26 11:44:27 +01:00
Denys Vlasenko
bd0e221620
awk: fix a bug in argc counting in recent change
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-21 15:09:55 +01:00
Denys Vlasenko
2635369a92
rfkill: use new-style config/kbuild/applet
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-20 14:21:29 +01:00
Denys Vlasenko
0545e3b69a
tar: prevent empty file to be treated as valid tarball
...
function old new delta
tar_main 879 895 +16
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-19 17:17:48 +01:00
Denys Vlasenko
dd1d8ab506
fix a copy/paste error in last tar testcase name
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-19 16:56:26 +01:00
Denys Vlasenko
1cbc642bed
tar: add a testcase for previous commit
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-19 14:52:02 +01:00
Denys Vlasenko
ebfa9b5aa1
tar: fix exitcode check for MMU-spawned unpacking helpers
...
Testcase: tar xvzf EMPTY_FILE
function old new delta
open_transformer 102 106 +4
get_header_tar 1781 1785 +4
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-19 14:44:04 +01:00
Denys Vlasenko
8b59b2c13e
libbb: move nuke_str() from passwd into libbb
...
function old new delta
nuke_str - 15 +15
ask_and_check_password_extended 215 206 -9
init_main 781 771 -10
nuke_str 27 - -27
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 0/2 up/down: 15/-46) Total: -31 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-19 13:36:45 +01:00
Denys Vlasenko
6ef7729112
comment tweak
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-19 13:16:44 +01:00
Denys Vlasenko
9c1c605b1a
sulogin: use common password-checking routine.
...
This needed some extensions correct_passwd() function,
which got renamed ask_and_check_password() to better describe what it does.
function old new delta
ask_and_check_password_extended - 215 +215
ask_and_check_password - 12 +12
vlock_main 394 397 +3
sulogin_main 494 326 -168
correct_password 207 - -207
------------------------------------------------------------------------------
(add/remove: 2/1 grow/shrink: 1/1 up/down: 230/-375) Total: -145 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-19 13:09:06 +01:00
Denys Vlasenko
f6beef63c6
archival/*: move "config:" snippets into .c files
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-14 11:39:00 +01:00
Denys Vlasenko
ac21687309
archival/*: move "applet:" snippets into .c files, part 2
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-14 11:38:18 +01:00
Denys Vlasenko
36184a487d
archival/*: move "applet:" snippets into .c files
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-14 09:54:24 +01:00
Denys Vlasenko
66620fa626
archival/*: move "kbuild:" snippets into .c files
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-14 09:53:52 +01:00
Denys Vlasenko
73225b6d6e
switch editors/* to embedded-in-source kbuild system
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-13 12:45:33 +01:00
Sven-Göran Bergh
f200f732f4
awk: optionally support -e AWK_PROG
...
function old new delta
awk_main 959 978 +19
Signed-off-by: Sven-Göran Bergh <sgb@systemasis.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-12 14:18:25 +01:00
Denys Vlasenko
cd0936be36
fstrim: use new-style config/kbuild/applet snippets; trim help text
...
function old new delta
packed_usage 29546 29520 -26
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-12 12:09:14 +01:00
Jeremy Kerr
d3092c99ae
udhcp: add PXELINUX config file option (code 209) definition
...
This change adds a definition for DHCP option 209. RFC 5071 defines code
209 as a configuration file for a PXE bootloader; this change uses
the string "pxeconffile" as its text identifier.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-12 11:18:26 +01:00
Denys Vlasenko
087843a65b
fix "warning: ISO C90 forbids mixed declarations and code"
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-12 11:16:30 +01:00
Michael Tokarev
afa63b2dcd
fix bashisms in testsuite/
...
These places use ${var/search/replace}, $((n++) and
`type -p' constructs which are not-so-standard.
Replace with equivalent constructs.
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru >
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2013-11-10 22:06:06 +01:00
Bernhard Reutner-Fischer
5e63776212
fstrim: Needs to fire at the mp, not bd
...
It's a filesystem thing from this perspective.
+1b
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2013-11-10 21:47:02 +01:00
Bernhard Reutner-Fischer
b1489f97e0
fstrim: Indicate failure on error
...
+14b
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2013-11-10 00:02:43 +01:00
Bernhard Reutner-Fischer
140f4e3511
fstrim: -17b
...
Also, use the name of the block device we found, not necessarily the one
we got from the user:
fstrim -v /
/dev/sdj: 4711 bytes were trimmed
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2013-11-09 23:41:34 +01:00
Malek Degachi
1d39e33d46
fstrim: New applet
...
fstrim applet is a port from util-linux.
"Trimming" your NAND/eMMC storage will restore the write performance
back to normal after having slow down issues on sequential write and
random write due to usage over time.
Good reading on subject:
http://forum.xda-developers.com/showthread.php?t=1971852
(with long options and CLEAN_UP turned on)
function old new delta
.rodata 148494 148791 +297
fstrim_main - 283 +283
fstrim_sfx - 128 +128
packed_usage 28826 28903 +77
applet_main 2760 2768 +8
applet_names 2343 2350 +7
applet_nameofs 690 692 +2
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 5/0 up/down: 802/0) Total: 802 bytes
Signed-off-by: Malek Degachi <malek-degachi@laposte.net >
Cc: Eugene San (eugenesan) <eugenesan@gmail.com >
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2013-11-09 22:14:33 +01:00
Bernhard Reutner-Fischer
80f8cdf04a
ash: Set SHLVL in ASH_BASH_COMPAT
...
function old new delta
ash_main 1456 1505 +49
.rodata 148488 148494 +6
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/0 up/down: 55/0) Total: 55 bytes
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2013-11-08 14:30:20 +01:00
Bernhard Reutner-Fischer
200c1c46f4
ash: Use setvar2 some more
...
(add/remove: 0/0 grow/shrink: 10/15 up/down: 13/-27) Total: -14 bytes
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2013-11-08 14:12:13 +01:00
Bernhard Reutner-Fischer
b541d1fcbd
swaponoff: shrink
...
function old new delta
.rodata 148469 148468 -1
swap_on_off_main 381 379 -2
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-3) Total: -3 bytes
text data bss dec hex filename
803030 4090 9504 816624 c75f0 busybox_old
803027 4090 9504 816621 c75ed busybox_unstripped
2013-11-08 09:05:25 +01:00
Denys Vlasenko
8d3efaf35e
udhcpc: allow zero server-id. Closes 6614.
...
function old new delta
bcast_or_ucast - 47 +47
udhcp_send_kernel_packet 271 295 +24
udhcpc_main 2696 2705 +9
udhcp_send_raw_packet 456 459 +3
send_release 90 76 -14
send_renew 105 77 -28
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 3/2 up/down: 83/-42) Total: 41 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-03 19:20:54 +01:00
Yuan-Hsiang Lee
b21bc80c76
init: fix illegal memory access when max message length is reached
...
Signed-off-by: Yuan-Hsiang Lee <yhlee@ubnt.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-03 00:13:16 +01:00
Denys Vlasenko
18b461925c
bootchartd: warn if .config looks wrong
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-03 00:07:31 +01:00
Denys Vlasenko
17f4aca556
Makefile.custom: make "make release" delete .gitignore files too
...
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-02 22:06:36 +01:00
Denys Vlasenko
c44539fcd3
sed: fix "sed clusternewline" testcase
...
function old new delta
process_files 2197 2226 +29
flush_append 47 54 +7
get_next_line 184 189 +5
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 41/0) Total: 41 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-10-30 14:25:22 +01:00
Denys Vlasenko
a82e32d9ce
sed: document -E in help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-10-30 13:00:00 +01:00
Denys Vlasenko
9d46a7a9a4
sed: fix memory leak in 'r FILE' command
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-10-30 10:22:47 +01:00
David A. Wheeler
af0cdeedc6
sed: accept -E as a synonym for -r
...
Signed-off-by: David A. Wheeler <dwheeler@dwheeler.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-10-29 00:52:48 +01:00
Johannes Stezenbach
2d576e2a22
udhcpc: make DHCP packets to have at least 300 DHCP bytes
...
Commit b8b72f02 removed all padding from DHCP packets
to fix operation with buggy servers which can't handle
maximum sized packets. But it introduced a regression
with buggy routers which drop DHCP packets smaller
than 300 bytes (i.e. 342 byte ethernet packets).
Add back some padding to work around.
function old new delta
udhcp_send_kernel_packet 268 292 +24
udhcp_send_raw_packet 462 473 +11
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/0 up/down: 35/0) Total: 35 bytes
Signed-off-by: Johannes Stezenbach <js@sig21.net >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-10-28 23:27:37 +01:00
Thomas Petazzoni
af4f0e48ec
libbb: use <poll.h> instead of <sys/poll.h>
...
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-10-16 19:59:45 +02:00
Bartosz Golaszewski
28a209466f
bloat-o-meter: add usage info
...
Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-10-16 19:18:05 +02:00
Bartosz Golaszewski
64938011f3
tail compat: fix header printing for tail -f
...
Makes tail -f for multiple files display the header only if another (ie. not
currently displayed) file changed.
Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-10-16 15:02:50 +02:00
Guilherme Maciel Ferreira
840ef17f63
wget: if FEATURE_CLEAN_UP, free(ptr_to_globals)
...
Signed-off-by: Guilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-10-16 14:43:30 +02:00
Denys Vlasenko
5117eff6f9
Fix some compiler warnings emitted by gcc-4.8.0
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-10-16 14:21:20 +02:00
Denys Vlasenko
eba5faec67
ether-wake: shorten help text, reduce packet buffer size
...
function old new delta
ether_wake_main 726 727 +1
packed_usage 29468 29434 -34
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-10-14 19:04:20 +02:00
Lauri Kasanen
d074b416f8
wget: add support for connect timeout
...
function old new delta
open_socket 33 64 +31
wget_main 2182 2194 +12
Signed-off-by: Lauri Kasanen <curaga@operamail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-10-12 21:47:07 +02:00
Denys Vlasenko
730e4d8b52
init: better --help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-10-12 04:52:22 +02:00
Denys Vlasenko
7985bc109e
awk: fix length(array)
...
function old new delta
evaluate 3526 3548 +22
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-10-12 04:51:54 +02:00
Ryan Mallon
1d30b3f1f6
wall,crontab: use xopen_as_uid_gid()
...
This fixes a narrow security race in crontab.
function old new delta
xopen_as_uid_gid - 80 +80
seteuid - 64 +64
setegid - 64 +64
setreuid - 37 +37
xseteuid - 22 +22
xsetegid - 22 +22
crontab_main 590 577 -13
setfsuid 33 - -33
setfsgid 33 - -33
wall_main 138 102 -36
open_as_user 109 - -109
text data bss dec hex filename
893539 497 7568 901604 dc1e4 busybox_old
893618 497 7568 901683 dc233 busybox_unstripped
Signed-off-by: Ryan Mallon <rmallon@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-10-08 14:53:29 +02:00
Ryan Mallon
5906a5c26c
libbb: Add xsetegid(), xseteuid(), xopen_as_uid_gid() functions
...
Signed-off-by: Ryan Mallon <rmallon@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-10-08 14:52:49 +02:00
Denys Vlasenko
932e233a49
bunzip2: fix off-by-one check
...
stage3-armv7a_hardfp-20130209.tar.bz2, 149189948 bytes long,
md5sum b29ce23312e14eb15a143377d4a38473, was failing to unpack.
It so happened that this file has a run which exactly fills
the 90k buffer. The check was "size >= bufsize", apparently
it has to be ">".
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-10-06 22:53:14 +02:00
Denys Vlasenko
cd256e1c40
wall: access FILE under real user's credentials
...
While at it, move applet/config/kbuild bits into wall.c.
(This way, it's more visible that applet is suid'ed).
function old new delta
wall_main 87 138 +51
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-10-06 15:14:25 +02:00
Mike Frysinger
3eab2b7675
trylink: only prefix libs with -l
...
If our pkg-config queries pass back a flag like -pthread, the trylink
script will expand that to -l-pthread. So change trylink to only add
the -l prefix to a value that doesn't have a - prefix already.
Reported-by: thaehaid@incognitomail.org
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2013-09-28 18:40:07 -04:00
Denys Vlasenko
054f3eb784
loadkmap: explain what happens with K_ALLOCATED key value
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-09-19 17:56:59 +02:00
Denys Vlasenko
a6ed6a3148
httpd: make sire pfd[TO_CGI].revents is cleared before poll()
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-09-18 12:08:41 +02:00
Denys Vlasenko
d7ea34ee71
Documentation update
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-09-17 16:24:01 +02:00
Denys Vlasenko
32ed30d96b
dumpkmap: code shrink
...
function old new delta
dumpkmap_main 223 160 -63
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-09-17 14:16:25 +02:00
Denys Vlasenko
fbe250db76
httpd: treat errors from stdin correctly.
...
Fron bug report:
If a CGI or proxied connection is rudely aborted (SIG_{KILL,BUS,SEGV})
then httpd will spin madly the poll loop in:
networking/httpd.c:1080
cgi_io_loop_and_exit()
Upon investigation I found that pfd[0].revents == 0x0018 (POLLHUP|POLLERR),
which leads to empty read, but the pfd[0].fd (STDIN_FILENO) is left open,
and in the FD list given to poll() which immediately returns to once
again inform the loop of (POLLHUP|POLLERR) condition of pfd[0].fd.
This continues until pfd[FROM_CGI].revents != 0
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-09-11 14:59:21 +02:00
Denys Vlasenko
b5352078a7
touch: add conditional support for -h
...
Based on a patch by Andy <andy.padavan@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-09-11 11:58:33 +02:00
Denys Vlasenko
a613aa1b4c
ar: better comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-09-10 16:27:08 +02:00
Peter Korsgaard
2a053a2430
ar: read_num(): fix reading fields using the entire width
...
ar fields are fixed length text strings (padded with spaces). Ensure
bb_strtou doesn't read past the field in case the full width is used.
The fields are only read once, so the simplest/smallest solution to me
seems to be to just pass the length to read_num() and then zero terminate
the string before passing it to bb_strtou. This does mean that the fields
MUST be read in reverse order, so some minor reshuffling was needed.
Bloat-o-meter:
function old new delta
get_header_ar 394 414 +20
read_num 29 36 +7
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/0 up/down: 27/0) Total: 27 bytes
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-09-10 16:22:12 +02:00
Denys Vlasenko
dc57294485
top: fix breakage introduced by previous commit
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-09-06 12:59:48 +02:00
Denys Vlasenko
a407cf74cc
Make smart_ulltoa return pointer to end (allows for code shink in callers)
...
function old new delta
smart_ulltoa5 405 408 +3
smart_ulltoa4 273 276 +3
list_table 1113 1114 +1
scale 36 34 -2
put_lu 55 53 -2
ulltoa6_and_space 19 14 -5
powertop_main 1470 1461 -9
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-09-06 12:53:14 +02:00
John Spencer
d6ae4fb446
man: find posix man pages
...
Add the 0p/1p/3p sections to the search.
Signed-off-by: John Spencer <maillist-busybox@barfooze.de >
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2013-08-25 17:38:25 -04:00
Jody Bruchon
deebdf59b5
fdisk: fix GPT size math errors
...
Signed-off-by: Jody Bruchon <jody@jodybruchon.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-20 17:42:06 +02:00
Denys Vlasenko
1b9ac21166
lineedit: use unicode_strwidth instead of unicode_strlen
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-20 16:13:05 +02:00
Denys Vlasenko
0ff0b320a2
dd: code shrink
...
function old new delta
dd_main 1475 1469 -6
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-20 12:49:28 +02:00
Denys Vlasenko
1b57fe108f
dd: code shrink
...
function old new delta
dd_main 1487 1475 -12
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-20 12:45:05 +02:00
Denys Vlasenko
f3114a3bd0
dd: code shrink
...
function old new delta
write_and_stats 78 99 +21
dd_main 1496 1487 -9
full_write_or_warn 42 - -42
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 1/1 up/down: 21/-51) Total: -30 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-20 12:40:29 +02:00
Denys Vlasenko
90e9cfd218
dd: remove FIXME comment which is fixed now. No code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-20 12:27:19 +02:00
Denys Vlasenko
4502bb1f21
dd: code shrink
...
function old new delta
dd_main 1001 961 -40
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-20 12:08:46 +02:00
Denys Vlasenko
5b9910f0a4
dd: fail if swab is attempted on odd-sized block
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-20 02:50:49 +02:00
Denys Vlasenko
e66a56de23
lineedit: fix multi-line PS1 handling: calculate PS1 length from last \n
...
function old new delta
parse_and_put_prompt 755 774 +19
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-19 16:45:04 +02:00
Denys Vlasenko
7a18043a96
lineedit: improve Unicode handling (still buggy though)
...
function old new delta
unicode_strlen - 31 +31
read_line_input 3876 3879 +3
lineedit_read_key 255 246 -9
parse_and_put_prompt 785 755 -30
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/2 up/down: 34/-39) Total: -5 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-19 16:44:05 +02:00
Denys Vlasenko
8395bd3f52
dd: fix example in a comment. No code changes.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-19 10:30:55 +02:00
Denys Vlasenko
b941316ae5
dd: support conv=swab
...
function old new delta
dd_main 1482 1520 +38
static.conv_words 28 33 +5
packed_usage 29377 29375 -2
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-19 09:01:39 +02:00
Denys Vlasenko
4b1896cd2c
dd: do not reuse local variables for unrelated values.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-19 09:00:08 +02:00
Denys Vlasenko
ec2bef11a7
iplink: comment out include <net/if_packet.h>
...
iplink.c includes net/if_packet.h, which (on GLIBC)
only defines struct sockaddr_pkt. this struct is not
used anywhere in the code, and removing the #include
makes compilation succeed with musl libc.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-16 12:20:25 +02:00
Paulius Zaleckas
9f07af6156
init: don't srop unterminated processes' entries during inittab reload
...
This feature was removed in 72c99af
It is useful when process is removed from inittab and later added
back, but never terminated. It prevents init from spawning duplicate.
function old new delta
check_delayed_sigs 176 182 +6
Signed-off-by: Paulius Zaleckas <paulius.zaleckas@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-16 12:01:58 +02:00
Denys Vlasenko
d2e07bc16c
init: don't use fixed size buffer for command
...
We store init actions forever. 256 bytes per action means that
a typical inittab of ~10 commands uses 2.5k just to remember
command strings - which are usually _much_ shorter than 256 bytes.
At a cost of a bit more code, it's possible to allocate
only actually needed amount.
function old new delta
init_exec 224 248 +24
new_init_action 140 142 +2
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-16 11:48:48 +02:00
SASAKI Suguru
73fbe9dc86
tar: fix tar -T to add entries in the exact order as the input list
...
This fixes tar to order files in tarball correctly in this case:
$ touch 1 2 3; echo -e '1\n2\n3' | tar -T- -c | tar t
1
2
3
Signed-off-by: SASAKI Suguru <suguru@sonik.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-15 12:19:29 +02:00
Denys Vlasenko
fc364ba9e3
fix build error with musl libc due to if_slip.h
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-15 09:54:51 +02:00
Nicolas Dichtel
6761d7da83
networking: fix potential overflow in ife_print6()
...
devname is used by fscanf to store a string specified by '%20s'.
Extract from the man for the '%s' specifier:
Matches a sequence of non-white-space characters; the next pointer must be a
pointer to character array that is long enough to hold the input sequence and
the terminating null byte ('\0'), which is added automatically. The input
string stops at white space or at the maximum field width, whichever occurs
first.
Hence, the right length is 20 + 1 for the '\0'.
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-14 17:43:05 +02:00
Denys Vlasenko
9ae6d79307
udhcpc: tweak help text more
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-08 12:45:45 +02:00
Denys Vlasenko
456687fff1
udhcpc: tweak help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-08 12:33:18 +02:00
Tito Ragusa
8c7fcbd752
swapon: support "pri=NNN" in fstab
...
function old new delta
swap_on_off_main 244 365 +121
Signed-off-by: Tito Ragusa <farmatito@tiscali.it >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-08 10:21:27 +02:00
Denys Vlasenko
a5e6c6cd3b
setsid: code shrink, expanded comments
...
function old new delta
setsid_main 56 53 -3
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-07 18:49:51 +02:00
Denys Vlasenko
543efd7b4b
libbb: code shrink
...
function old new delta
xmalloc_ttyname 46 42 -4
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-06 00:41:06 +02:00
Denys Vlasenko
aadb485bd0
udhcpc: tweak help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-05 02:21:36 +02:00
Cédric Cabessa
adc30b4cf9
syslogd: use _PATH_LOG when available
...
Signed-off-by: Cédric Cabessa <ccabessa@genymobile.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-05 02:09:16 +02:00
Paul B. Henson
985345d002
ubi_tools: fix typo in strcpy
...
Signed-off-by: Paul B. Henson <henson@acm.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-04 21:07:20 +02:00
Tito Ragusa
da331d779c
ifplugd: use a larger netlink buffer
...
function old new delta
check_existence_through_netlink 310 321 +11
Signed-off-by: Tito Ragusa <farmatito@tiscali.it >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-04 18:10:26 +02:00
Denys Vlasenko
cc1c9ca6f8
less: support "less 1<>TTY"
...
function old new delta
less_main 2466 2507 +41
xmalloc_ttyname 46 42 -4
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-04 17:41:19 +02:00
Sven-Göran Bergh
9369634167
volume_id: add f2fs detection
...
function old new delta
volume_id_probe_f2fs - 98 +98
Signed-off-by: Sven-Göran Bergh <sgb@systemasis.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-01 11:05:08 +02:00
Bernhard Reutner-Fischer
a060a1ad96
awk: Fix handling of functions with empty body
...
ammend b79a0fef99 to properly
handle functions defined in another scope.
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2013-07-31 21:51:14 +02:00
Sven-Göran Bergh
e418b2e7bb
volume_id: nilfs config description.
...
Config description for nilfs added.
No code change.
Signed-off-by: Sven-Göran Bergh <sgb@systemasis.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-31 18:30:34 +02:00
Sven-Göran Bergh
15d0a860e9
volume_id: Adopt to new config style.
...
Config instructions for util-linux/volume_id are moved into the
source files according to the new config feature.
No code change.
Signed-off-by: Sven-Göran Bergh <sgb@systemasis.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-31 15:57:59 +02:00
Sven-Göran Bergh
3b45801dc6
volume_id: Adopt to new kbuild style.
...
Kbuild instructions for util-linux/volume_id are moved into the
source files according to the new build feature.
No code change.
Signed-off-by: Sven-Göran Bergh <sgb@systemasis.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-31 15:45:20 +02:00
Denys Vlasenko
982e87f2fb
Whitespace fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-30 11:52:58 +02:00
Denys Vlasenko
bfa6ed1bf4
catv: code shrink
...
catv_main 250 227 -23
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-30 11:41:58 +02:00
Bartosz Golaszewski
79c618c411
Refactor catv. Move visible() from stty to libbb.
...
Fixes the following TODO:
stty's visible() function and catv's guts are identical. Merge them into
an appropriate libbb function.
Also makes catv behave exactly like coreutils' cat -v e.g. it'll print 'M-^I'
instead of 'M- '.
function old new delta
visible - 70 +70
do_display 431 379 -52
catv_main 306 250 -56
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/2 up/down: 70/-108) Total: -38 bytes
Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-30 06:29:42 +02:00
Denys Vlasenko
d0bc708cb5
unpackers: by users' request, print compression percentage if -v and DESKTOP
...
function old new delta
bbunpack 634 731 +97
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-30 05:41:11 +02:00
Denys Vlasenko
05965cbb75
nc: remove unnecessary "errno = 0"
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-29 14:18:32 +02:00
Denys Vlasenko
2ead5316b4
iplink: fix build error (IFLA_VLAN_PROTOCOL defined before include)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-28 23:24:55 +02:00
Denys Vlasenko
2641426187
logread: intercept all fatal signals, not just SIGINT
...
function old new delta
interrupted 27 20 -7
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-28 23:17:00 +02:00
Denys Vlasenko
fd3ac96c0f
nc: remove some dead code
...
function old new delta
readwrite 887 841 -46
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-28 22:24:51 +02:00
Denys Vlasenko
ffeeb7a96c
nc: exit when both stdin and network are closed.
...
function old new delta
nc_main 1051 1042 -9
readwrite 943 887 -56
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-28 22:23:12 +02:00
Denys Vlasenko
ca54b662e7
nc: use symbolic SHUT_WR instead of literal 1
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-28 21:08:37 +02:00
Denys Vlasenko
ad546ec606
Update docs/tcp.txt
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-27 14:35:51 +02:00
Bernhard Reutner-Fischer
9078633fee
buildsys: Add helper to list suid applets
...
Add a helper script that lists all applets that
- do or may require SUID provileges (busybox.cfg.suid)
- do not require SUID provileges (busybox.cfg.nosuid)
Some setups prefer to build two busybox binaries, one that is suid which
contains all applets that do or may require suid privileges, and a
second one for all the rest (which drops suid). To ease splitting these
two binaries, generate a list of CONFIG_ items for the suid binary.
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2013-07-26 13:39:46 +02:00
Denys Vlasenko
7801148a81
Add notes about TCP programming quirks.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-25 14:00:37 +02:00
Bartosz Golaszewski
688a7e3f04
date: accept 'yyyy-mm-dd HH' and 'yyyy-mm-dd' date formats
...
function old new delta
parse_datestr 794 885 +91
Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-25 05:10:01 +02:00
Bartosz Golaszewski
c19be75d57
networking: code shrink
...
function old new delta
in_ether - 124 +124
hexchar2int 42 - -42
ifconfig_main 1237 1106 -131
ether_input 141 - -141
------------------------------------------------------------------------------
(add/remove: 2/2 grow/shrink: 0/1 up/down: 124/-314) Total: -190 bytes
Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-25 04:39:04 +02:00
Denys Vlasenko
b855460adc
awk.tests: add test for recent large integer fix
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-22 11:49:06 +02:00
Denys Vlasenko
b0e9b72915
sed: fix matching of newlines by $
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-21 22:09:44 +02:00
Denys Vlasenko
26cd90c7fd
unzip: survive lack of CDF on non-streaming zip files
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-21 02:31:08 +02:00
Denys Vlasenko
1390a010b6
awk: use "long long" as integer type, not "int"
...
Testcase:
awk "BEGIN{n=(2^31)-1; print n, int(n), n%1, ++n, int(n), n%1}"
2147483647 2147483647 0 2147483648 2147483648 0
(last three values weren't showing right)
function old new delta
evaluate 3444 3458 +14
fmt_num 221 230 +9
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-20 21:23:01 +02:00
Denys Vlasenko
5e87e8aebb
unzip: increase PEEK_FROM_END from 16k to 64k
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-20 15:20:46 +02:00
Patrick McHardy
a7ecbed56b
ip link: add VLAN support
...
function old new delta
do_add_or_delete - 1073 +1073
get_u16 - 62 +62
static.protocols - 16 +16
do_iplink 1235 1232 -3
do_change 495 - -495
------------------------------------------------------------------------------
(add/remove: 3/1 grow/shrink: 0/1 up/down: 1151/-498) Total: 653 bytes
Signed-off-by: Patrick McHardy <kaber@trash.net >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-15 05:16:13 +02:00
Denys Vlasenko
9b58fe9c0b
ip: code shrink
...
function old new delta
do_ipaddr 78 81 +3
do_iprule 140 139 -1
do_iptunnel 283 278 -5
iprule_modify 851 841 -10
ipaddr_modify 1293 1236 -57
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/4 up/down: 3/-73) Total: -70 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-15 05:15:46 +02:00
Denys Vlasenko
25ce3ee9f3
typo fix in comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-14 01:23:06 +02:00
Denys Vlasenko
c72b43c2f0
Commonalize typical [b,]k,m suffix struct
...
function old new delta
bkm_suffixes - 32 +32
static.km_suffixes 24 - -24
suffixes 32 - -32
static.bkm 32 - -32
head_tail_suffixes 32 - -32
------------------------------------------------------------------------------
(add/remove: 2/6 grow/shrink: 0/0 up/down: 72/-160) Total: -88 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-13 23:49:45 +02:00
Bernhard Reutner-Fischer
0dacb68e1a
chrt: remove warning for _POSIX_PRIORITY_SCHEDULING
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2013-07-08 11:20:13 +02:00
Denys Vlasenko
e95738f635
typo fix in comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-08 03:13:08 +02:00
Denys Vlasenko
d87fcd4888
tail: code shrink
...
function old new delta
tail_main 1548 1613 +65
tail_read 136 34 -102
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 65/-102) Total: -37 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-08 02:39:51 +02:00
Denys Vlasenko
40ab27a225
sed: remove now-redundant backslash-newline handling
...
4b0bb9e0fd added this code in 2007,
then in a2215b98f7 more general fix
was added.
function old new delta
add_cmd_block 98 58 -40
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-08 02:07:16 +02:00
Denys Vlasenko
e93d15613e
sed: document where we are more liberal then GNU
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-08 01:43:40 +02:00
Denys Vlasenko
d8f6d8c627
Call setlocale("") , not "C", if we want to set the default one
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-07 14:41:58 +02:00
Denys Vlasenko
2301d127a2
unicode: check $LC_CTYPE too to detect Unicode mode
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-05 22:00:57 +02:00
Cristian Ionescu-Idbohrn
4f9fc1e5f5
foo*sum: Correct syntax error
...
coreutils/md5_sha1_sum.c:156:3: error: expected '}' before 'else'
Signed-off-by: Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com >
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2013-07-04 11:33:42 +02:00
Denys Vlasenko
6651e42609
tail: track file size only in -f mode
...
This eliminates extra fstat and lseek calls on every read
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-02 20:09:15 +02:00
Denys Vlasenko
cd8eece88e
foo*sum: report I/O errors, don't merely exit with 1.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-02 19:11:01 +02:00
Denys Vlasenko
3e7ecb179b
unicode: check $LC_ALL to detect Unicode mode, not only $LANG
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-02 17:30:23 +02:00
Denys Vlasenko
ea267d518f
wget: do not abort if "_" is encountered in a HTTP header
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-01 15:05:09 +02:00
Denys Vlasenko
1bf560e9c3
cryptpw: do not segfault on EOF. Closes 6350
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-06-30 21:28:55 +02:00
Rich Felker
16614e9bab
*: change execl sentinels from NULL to (char*)0
...
Signed-off-by: Rich Felker <dalias@aerifal.cx >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-06-30 13:45:17 +02:00
Denys Vlasenko
e9b3fcc3e4
ubi_tools: enhance -s option to allow size multiplier to match mtd-utils
...
Based on patch by Paul B. Henson <henson@acm.org >
function old new delta
static.size_suffixes - 32 +32
ubi_tools_main 1141 1148 +7
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-06-30 02:47:45 +02:00
Denys Vlasenko
f798ba9717
ubi_tools: add forgotten argv++
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-06-30 02:46:44 +02:00
Denys Vlasenko
65bdf0b737
ubi_tools: extend supported volume size to 64 bits; shrink code
...
function old new delta
get_num_from_file - 90 +90
packed_usage 29395 29377 -18
ubi_tools_main 1349 1141 -208
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/2 up/down: 90/-226) Total: -136 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-06-30 02:38:18 +02:00
Paul B. Henson
f86404f773
ubimkvol: add -m option to create volume of maximum size
...
Signed-off-by: Paul B. Henson <henson@acm.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-06-30 02:37:05 +02:00
Denys Vlasenko
173aa78bcf
pstree: fix theoretically unsafe code
...
In practice, p->comm is never long enough to trigger the bug, but still.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-06-28 01:59:25 +02:00
Denys Vlasenko
26a7e2ecbf
ping: code shrink
...
function old new delta
unpack_tail 262 243 -19
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-06-28 01:33:47 +02:00
Denys Vlasenko
59f46676a9
Move create_icmp[6]_socket to its only user, and simplify it
...
function old new delta
run_applet_and_exit 711 714 +3
sendping_tail 239 236 -3
common_ping_main 1798 1770 -28
create_icmp_socket 65 - -65
create_icmp6_socket 65 - -65
------------------------------------------------------------------------------
(add/remove: 0/4 grow/shrink: 1/2 up/down: 3/-161) Total: -158 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-06-28 00:30:46 +02:00
Denys Vlasenko
4928e9f7d0
losetup: assorted fixes. Closes 6314
...
"losetup -d" was not complaining that LOOPDEV is missing.
"losetup -a" was listing only up to /dev/loop9.
"losetup -f" looped forever if llop0 was taken, and never tried
anything after /dev/loop9.
"-o" with other options (say, -r) had no effect.
function old new delta
losetup_main 376 419 +43
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-06-27 03:45:16 +02:00
Thomas De Schampheleire
879f008a8f
lsof: correct check for symbolic link
...
Busybox lsof used the d_type field of a 'struct dirent' to verify whether the
entry is a symbolic link. This field, however, is not portable. On at least
one board [1] I have seen, that field is 0, and the check fails even though
the entry is a link.
The explicit check for a symbolic link is really only needed to skip the
default directory entries '.' and '..'. The directory /proc/<pid>/fd/
should not contain anything else but these two and symbolic links.
With these assumptions, this patch replaces the explicit link check with a
basic check for '.' and '..' (and any hidden file). In the unlikely case that
there are other file types, xmalloc_readlink() will return NULL, and we can
skip the entry.
[1] A MIPS-based board with glibc 2.9, Linux 2.6.32.27.
Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-06-27 03:44:46 +02:00
Denys Vlasenko
d66eb9042d
nslookup: set default DNS server again. Hopefully helps with 675
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-06-27 01:09:51 +02:00
Denys Vlasenko
1f5e81f8f8
md5/sha512: a better fix for strict aliasing warnings
...
The locations *are* well-aligned for direct stores
on any architecture.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-06-27 01:03:19 +02:00
Mike Frysinger
f6205c6ab7
md5/sha512: fix strict aliasing warnings
...
If the target can tolerate these issues, then gcc is smart enough
to generate the same code (x86_64 produces the same code). If the
target can't, then it needs the memcpy anyways.
libbb/hash_md5_sha.c: In function 'common64_end':
libbb/hash_md5_sha.c:87:4: warning:
dereferencing type-punned pointer will break strict-aliasing rules
*(uint64_t *) (&ctx->wbuffer[64 - 8]) = t;
libbb/hash_md5_sha.c: In function 'sha512_end':
libbb/hash_md5_sha.c:886:4: warning:
dereferencing type-punned pointer will break strict-aliasing rules
*(uint64_t *) (&ctx->wbuffer[128 - 8]) = t;
libbb/hash_md5_sha.c:889:4: warning:
dereferencing type-punned pointer will break strict-aliasing rules
*(uint64_t *) (&ctx->wbuffer[128 - 16]) = t;
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2013-06-19 11:49:15 -04:00
Mike Frysinger
fea2588021
pstree: stop truncating thread names
...
This also fixes a minor buffer overflow when displaying threads as
add_proc() only expects COMM_LEN bytes, but we give it one more than
that.
Reported-by: Dag Wieers <dag@wieers.com >
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2013-06-19 11:29:57 -04:00
Denys Vlasenko
5a7e3376b7
ntpd: set offset to 0.0 in "usync" event
...
function old new delta
ntpd_main 1030 1026 -4
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-05-23 16:06:59 +02:00
Denys Vlasenko
07c5987498
ntpd: set G.last_script_run even if script isn't configured
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-05-22 18:18:51 +02:00
Denys Vlasenko
5ffdd1d981
ntpd: make "unsync" code actually work.
...
While at it: don't run "periodic" if interrupted by a signal.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-05-22 18:16:34 +02:00
Denys Vlasenko
d99ef636f6
ntpd: drop delay outliers; run "unsync" handler if no replies for some time
...
function old new delta
ntpd_main 960 1029 +69
recv_and_process_peer_pkt 834 892 +58
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/0 up/down: 127/0) Total: 127 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-05-22 17:48:19 +02:00
Jonathan Liu
b6dc13c2d3
sulogin: allow system maintenance login if root password is empty
...
The current password checking is unable to distinguish between the user
entering an empty password or pressing Control-D. As a result, an empty
password always results in normal startup.
We modify bb_ask to return NULL if Control-D is pressed without entering
a password. The sulogin applet is then modified to only proceed to
normal startup if bb_ask returns NULL. This covers EOF with no password,
interrupt by timeout and ^C.
Signed-off-by: Jonathan Liu <net147@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-05-21 17:01:55 +02:00
Denys Vlasenko
9cb1e2f86b
sulogin: correct lying comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-05-21 16:47:36 +02:00
Denys Vlasenko
f958425451
init: remove special-case code for machines with less tham 1 MB of RAM.
...
function old new delta
init_main 920 781 -139
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-05-21 16:36:51 +02:00
Denys Vlasenko
ae0cf2a9d7
stty: disable CIBAUD leak check - it is not necessary on Linux
...
function old new delta
stty_main 1233 1196 -37
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-05-17 20:08:12 +02:00
Denys Vlasenko
e9581b673c
stty: code shrink
...
function old new delta
set_mode 759 725 -34
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-05-17 18:06:49 +02:00
Denys Vlasenko
b443a3780d
udhcp: code shrink
...
function old new delta
attach_option 416 413 -3
allocate_tempopt_if_needed 74 - -74
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-05-17 15:19:47 +02:00
Denys Vlasenko
c133fa66f3
udhcpc: fix a problem with binary-encoded options #2
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-05-17 15:13:38 +02:00
Denys Vlasenko
6db5f679a2
find:: get rid of nested function (it's a gcc-ism)
...
function old new delta
alloc_action - 80 +80
parse_params 1459 1445 -14
static.alloc_action 98 - -98
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 0/1 up/down: 80/-112) Total: -32 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-05-16 18:36:42 +02:00
James Hogan
5fc0585c01
grep: fix grep -x to not set REG_NOSUB
...
When -F isn't specified (and !ENABLE_EXTRA_COMPAT), grep -x uses
regexec's regmatch_t output to determine if the match was the entire
line. However it also set the REG_NOSUB flag which makes it ignore the
regmatch_t argument.
Add an exception to the setting of REG_NOSUB for OPT_x and add some test
cases to test the behaviour of -x.
Signed-off-by: James Hogan <james.hogan@imgtec.com >
Cc: Natanael Copa <ncopa@alpinelinux.org >
Cc: Denys Vlasenko <vda.linux@googlemail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-05-16 14:47:05 +02:00
Denys Vlasenko
aa94130f74
volume_id_internal.h: drop unoptimized byteswap routines
...
function old new delta
volume_id_probe_hfs_hfsplus 802 627 -175
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-05-15 09:36:40 +02:00
Bartosz Golaszewski
414db791d0
grep: don't bail out on first mismatch if '-w' option is set
...
Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-05-15 09:20:40 +02:00
Denys Vlasenko
e0a6ab698f
Fix build failures caused by not compiling open_transformer.c ( #2 )
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-05-15 03:23:30 +02:00
Denys Vlasenko
6782f48ccb
find: support -HLP
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-05-14 17:20:35 +02:00
Nikolaus Voss
c3cf1e30a3
mdev: use $DEVNAME in uevent sysfs file for device node name
...
516530c932 uses $DEVNAME variable
for device node name. This is fine, but only works for hotplugging,
"mdev -s" will behave differently when DEVNAME and basename(path)
differ.
This patch extracts the DEVNAME from the uevent sysfs file in
make_device(), thus works for hot- and coldplugging; so using
the environment DEVNAME on hotplug events is no longer necessary.
Signed-off-by: Nikolaus Voss <n.voss@weinmann.de >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-05-13 03:55:11 +02:00
Denys Vlasenko
ff463a885d
hush: fix build failure if FEATURE_EDITING=y && !HUSH_INTERACTIVE
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-05-12 02:45:23 +02:00
Denys Vlasenko
abbc478f1c
Fix build failures caused by not compiling open_transformer.c
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-05-12 02:34:38 +02:00
Denys Vlasenko
f76fd17d74
telnet: code shrink
...
function old new delta
telnet_main 1519 1515 -4
con_escape 296 285 -11
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-05-12 02:13:24 +02:00
Oliver Metz
041baf2720
volume_id: fix ntfs attribute search
...
len is declared as uint32_t but le16_to_cpu macro is used
Signed-off-by: Oliver Metz <oliver.metz@gmx.de >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-05-09 07:45:51 +02:00
Denys Vlasenko
264f37363d
vi: make regexp search case-insensitive if ":set ignorecase" is active
...
Reported by Dan Moinescu <dan@moinescu.net >.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-04-21 15:51:41 +02:00
Flemming Madsen
d96ffda62e
ash,hush: history builtin
...
function old new delta
show_history - 39 +39
builtin_history - 16 +16
historycmd - 13 +13
bltins1 312 324 +12
builtintab 336 344 +8
popstring 134 140 +6
hush_main 1048 1046 -2
ash_main 1398 1396 -2
size_from_HISTFILESIZE 44 40 -4
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 3/3 up/down: 94/-8) Total: 86 bytes
Signed-off-by: Flemming Madsen <busybox@themadsens.dk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-04-07 18:47:24 +02:00
Denys Vlasenko
3beab83e4f
hush: fix for "while false && true; do echo BUG; break; done". closes 6170
...
function old new delta
run_list 959 941 -18
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-04-07 18:16:58 +02:00
Denys Vlasenko
d35cbad0ef
mdev: call index_in_strings on $ACTION only after we checked it for NULL
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-04-02 14:37:06 +02:00
Denys Vlasenko
2df1c64f38
examples/mdev.conf.change_blockdev.sh: update
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-04-02 13:26:24 +02:00
Denys Vlasenko
e306c11367
examples: add mdev example for Android phone
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-30 16:23:12 +01:00
Denys Vlasenko
2c0508b4fa
examples/inittab: fix a few incorrect statements about init
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-29 14:35:44 +01:00
Denys Vlasenko
8172d054db
lineedit: \W on "/bin" should show "bin", not "/bin"
...
function old new delta
parse_and_put_prompt 793 785 -8
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-29 13:21:53 +01:00
Denys Vlasenko
1d14569a66
lineedit: implement \T \t \A \@ prompts escapes, fix \W escape, drop \!
...
function old new delta
parse_and_put_prompt 742 793 +51
read_line_input 3836 3826 -10
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-29 13:10:23 +01:00
Denys Vlasenko
8f2cb7ab26
libbb: introduce and use strftime_[YYYYMMDD]HHMMSS()
...
function old new delta
strftime_fmt - 53 +53
strftime_YYYYMMDDHHMMSS - 12 +12
strftime_HHMMSS - 12 +12
human_time 44 43 -1
fmtstr_t 9 - -9
step_time 361 345 -16
watch_main 261 232 -29
------------------------------------------------------------------------------
(add/remove: 3/1 grow/shrink: 0/3 up/down: 77/-55) Total: 22 bytes
text data bss dec hex filename
919203 932 17692 937827 e4f63 busybox_old
919209 932 17692 937833 e4f69 busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-29 12:30:33 +01:00
Denys Vlasenko
6c852bfcad
lineedit: add handling of \H in prompt
...
Based on the patch by Arnaud Rébillout <rebillout@syscom.ch >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-28 13:20:12 +01:00
Denys Vlasenko
2c24806bf4
hexdump: need to use xstrtoull for off_t
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-27 15:18:32 +01:00
Denys Vlasenko
ef6747e290
hexdump: don't unconditionally limit the usable address range
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-27 15:15:33 +01:00
Denys Vlasenko
80a38ca11c
man: install to /usr/bin, not /sbin
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-27 14:30:18 +01:00
Denys Vlasenko
85daa67bc2
httpd: don't allow tabs and multiple spaces in request string
...
HTTP standard doesn't allow it and no sane clients should ever use it.
function old new delta
handle_incoming_and_exit 2795 2785 -10
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-25 23:27:00 +01:00
Bernhard Reutner-Fischer
c608731e78
setserial: Fix typo: s/baund_rate/baud_rate/g
...
as noted by Christoph Handel opensource at macht-blau.org
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2013-03-22 17:04:51 +01:00
Denys Vlasenko
a42f530e03
sendmail: code shrink on top of previous patches
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-18 18:47:16 +01:00
Aaro Koskinen
e82bfef839
sendmail: don't add multiple To: headers
...
When adding To: header, add only a single header. If there are multiple
addresses, make it multiline.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-18 18:46:31 +01:00
Aaro Koskinen
4a732220e9
sendmail: don't add To: header if it already exists
...
If the message we are sending already has To: header, don't add a new one.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-18 18:45:15 +01:00
Aaro Koskinen
236f222cde
sendmail: support long header fields for recipients
...
Support long header fields in To:, Cc: and Bcc: headers.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-18 18:45:15 +01:00
Aaro Koskinen
a8ba0a0d0c
sendmail: support address lists
...
Headers To:, Cc: and Bcc: may have a list of comma-separated
addresses. Add support for that. Commas inside double quotes are ignored.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-18 18:45:14 +01:00
Aaro Koskinen
06ad964ae6
sendmail: support addresses inside angle brackets
...
When we extract addresses from the e-mail, try to first check for an
address inside angle brackets.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-18 18:45:14 +01:00
Aaro Koskinen
95e99e5271
sendmail: don't mangle e-mail headers
...
Leave the original To: and Cc: headers untouched, when we try to extract
addresses from them.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-18 18:45:13 +01:00
Aaro Koskinen
14285d14a5
sendmail: avoid sending mail to wrong addresses
...
If we get an address we cannot parse properly, we currently just strip
the unknown characters and still try to send it. This is considered
harmful as the resulting address may still be valid but different from
what the user originally intended.
Instead, skip sending to an address we cannot fully understand and
print the characters what we have scanned so far. Leading and trailing
whitespace is allowed and silently stripped.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-18 18:45:13 +01:00
Denys Vlasenko
7c6f2d4207
mkfs_minix: use get_volume_size_in_bytes instead of local version
...
Hopefully this also closes 4730
function old new delta
valid_offset 55 - -55
mkfs_minix_main 2925 2674 -251
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 0/1 up/down: 0/-306) Total: -306 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-18 02:26:58 +01:00
Denys Vlasenko
4424dfd69b
mdev: fix build failure
...
The error was "error: 'struct globals' has no member named 'parser'"
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-17 23:01:17 +01:00
Denys Vlasenko
c56d12505b
nc: fix build failure ("subscripted value is neither array nor pointer")
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-17 22:59:51 +01:00
Denys Vlasenko
091f831424
ash: add comment about failures in source builtin. No code changes.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-17 14:25:22 +01:00
Denys Vlasenko
88b532d59a
hush: source builtin should override $N only if it has args
...
function old new delta
builtin_source 174 184 +10
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-17 14:11:04 +01:00
Stefan Hellermann
4ef1439c59
ash: read $HOME/.profile instead of $(pwd)/.profile
...
ash --login should read ~/.profile instead of .profile in the current
directory. I noticed it while trying to figure out why /root/.profile
is only read sometimes.
function old new delta
ash_main 1374 1398 +24
Signed-off-by: Stefan Hellermann <stefan@the2masters.de >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-15 02:45:50 +01:00
Stefan Hellermann
aeb717aa5e
ash: move code to allow setting $HOME in /etc/profile
...
move HISTFILE=$HOME/.ash_history below reading /etc/profile,
so that /etc/profile can set $HOME. HOME can be unset when
directly invoking ash --login from init without going through
getty.
Signed-off-by: Stefan Hellermann <stefan@the2masters.de >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-15 02:37:51 +01:00
Denys Vlasenko
9e7c002182
vi: code shrink
...
function old new delta
status_line_bold_errno - 32 +32
colon 2891 2873 -18
file_insert 354 313 -41
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/2 up/down: 32/-59) Total: -27 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-15 02:17:29 +01:00
Ron Yorston
cb5aa725df
vi: fix adjustment of buffer on partial file read
...
The second argument to text_hole_delete was incorrect: it should
be a pointer to the end of the hole.
Signed-off-by: Ron Yorston <rmy@tigress.co.uk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-15 02:10:07 +01:00
Denys Vlasenko
257a77568a
sysklogd: trim help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-15 01:50:35 +01:00
Guilherme Maciel Ferreira
4a600f8777
traceroute: free some memory allocated by xzalloc()
...
Signed-off-by: Guilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-15 01:23:48 +01:00
Alexander Shiyan
45dc96c8a6
flash_eraseall: implement -N
...
Signed-off-by: Alexander Shiyan <shc_work@mail.ru >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-15 00:42:39 +01:00
Alexander Shiyan
0d61dcd641
nanddump: fix build if nandwrite isn't enabled
...
Signed-off-by: Alexander Shiyan <shc_work@mail.ru >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-15 00:27:41 +01:00
Denys Vlasenko
af4a07a244
ping[6]: accept and ignore -n. Code shrink
...
function old new delta
print_stats_and_exit 270 232 -38
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-15 00:11:35 +01:00
Denys Vlasenko
7b5d5c1bdb
udhcpd: also add -I ADDR to help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-14 02:18:52 +01:00
Denys Vlasenko
e3f5b73ad0
udhcpd: add -I LOCAL_ADDR option
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-13 22:27:37 +01:00
Bernhard Reutner-Fischer
b79a0fef99
awk: Fix handling of functions with empty body
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2013-03-13 09:47:07 +01:00
Mandeep Singh Baines
7991d45446
losetup: fix util-linux compatibility
...
Added -a support. Also made sure -f works as follows:
losetup [-r] [-o offset] {-f|loopdev} file
Removed support for 'losetup -r' with no arguments.
Signed-off-by: Mandeep Singh Baines <msb@chromium.org >
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2013-03-12 16:31:25 -04:00
Mike Frysinger
1b49c25e0a
readlink: note that our -f is really -e
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2013-03-12 11:38:03 -04:00
Mike Frysinger
af9e70b8cb
readlink: uClibc supports automatic allocation too now
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2013-03-12 11:14:24 -04:00
Mike Frysinger
445e7543e8
platform: use KERNEL_VERSION to simplify uClibc version checking
...
This makes reading the logic (as well as adding new code) a lot simpler,
and fixes one or two cases that were broken due to incorrect sub-version
tests.
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2013-03-12 11:13:22 -04:00
Mike Frysinger
bca5c556c4
udhcpc: use readlink rather than realpath
...
The realpath utility requires all paths exist when canonicalizing
symlinks. If /etc/resolv.conf points to a tmpfs, then it might
not exist initially. Use `readlink -f` so that we follow all
symlinks that are available.
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2013-03-12 10:48:09 -04:00
Denys Vlasenko
9bbf6b98c4
hostid: do not output sign-extended host id. Closes 6056
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-04 03:04:38 +01:00
Mike Frysinger
93b51819cf
archival: note implicit dependencies between lzop & bbunzip
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2013-03-03 00:48:53 -05:00
Denys Vlasenko
507f6ea6d2
decompress_unlzma: move function, no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-01 14:48:10 +01:00
Denys Vlasenko
a2d04e0702
decompress_unlzma: 10% speedup in "small" code
...
text data bss dec hex filename
1796 0 0 1796 704 decompress_unlzma.o
1801 0 0 1801 709 decompress_unlzma.o
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-01 14:43:07 +01:00
Denys Vlasenko
c09fd27c0a
decompress_unlzma: make "fast" version a bit smaller
...
It is not slower. In fact it seems a tiny bit faster too.
text data bss dec hex filename
2827 0 0 2827 b0b decompress_unlzma.o
2797 0 0 2797 aed decompress_unlzma.o
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-01 14:37:58 +01:00
Denys Vlasenko
2fe5fed2df
lzop: fiq -q and OPTION_DECOMPRESS mismatch
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-01 08:25:45 +01:00
Mike Frysinger
08e28e806d
bbunzip: fix order of flags vs bit defines
...
Too much code shuffling.
Reported-by: Mandeep Singh Baines <msb@chromium.org >
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2013-02-28 21:28:21 -05:00
Mike Frysinger
920c1baab7
bbunzip: ignore the -q flag with the decompressors
...
The -q flag is used in shell scripts for suppressing output.
Have our applets swallow the flag for compatibility.
Reported-by: Mandeep Singh Baines <msb@chromium.org >
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2013-02-28 17:21:50 -05:00
Denys Vlasenko
fb03663619
ifupdown: support "source" stanza in /etc/network/interfaces
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-28 19:01:28 +01:00
Denys Vlasenko
41655438c6
zcat: fix "zcat FILE" trying to do detection twice
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-28 18:37:04 +01:00
Denys Vlasenko
8e96efa323
zcat: if seamless uncompressors are defined, autodetect file's format
...
function old new delta
bbunpack 526 622 +96
packed_usage 29335 29341 +6
gunzip_main 64 67 +3
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-28 18:06:09 +01:00
Denys Vlasenko
f2d8478e56
fix error message on failure to oen /dev/null; fix zcat's help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-28 18:05:01 +01:00
Denys Vlasenko
577235dee8
code shrink in check_errors_in_children()
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-28 16:38:25 +01:00
Denys Vlasenko
7794c21daf
pgrep: fix a "missing closing paren" build error
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-28 15:51:55 +01:00
Denys Vlasenko
216e952fb8
ifplugd: make -k send SIGINT, not SIGQUIT
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-28 12:50:09 +01:00
Bernhard Walle
47f8558eee
pgrep: fix -x option
...
Because when -x is used (exact match), then we cannot compile the
regular expression with REG_NOSUB. The manual page regcomp(3) states
in section "Byte offsets":
Unless REG_NOSUB was set for the compilation of the pattern
buffer, it is possible to obtain substring match addressing
information.
The problem was detected on an ARM system with glibc 2.16.
Signed-off-by: Bernhard Walle <bernhard@bwalle.de >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-28 12:42:38 +01:00
Denys Vlasenko
ed954b6855
Fix config help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-28 12:39:27 +01:00
Denys Vlasenko
efd0698f74
make --help return exitcode 0. Closes 5612
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-28 12:34:18 +01:00
Peter Korsgaard
5d1c599d76
run-parts: fix unicode creep in --help
...
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-28 12:25:49 +01:00
Denys Vlasenko
de6f148006
nc_bloaty: support -ll and -lk. Closes 2245
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-28 12:20:06 +01:00
Denys Vlasenko
a14f319805
nc: don't redirect stderr to network in -e PROG mode
...
This in incompatible with nc-1.10, but makes a lot of sense.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-28 11:09:14 +01:00
Thomas De Schampheleire
bc0ffc0e97
nameif: fix use-after-free in ENABLE_FEATURE_CLEAN_UP code
...
Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-28 10:31:54 +01:00
Denys Vlasenko
1e43a381b2
run-parts: stop providing incompatible short options
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-28 10:22:49 +01:00
Peter Korsgaard
0496e824a5
run-parts: add --exit-on-error | -e support
...
The "big" run-parts supports a handy --exit-on-error to stop execution on
errors, so lets support it as well.
Upstream doesn't have a short option for it, but I've used '-e' for busybox.
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-28 09:59:23 +01:00
Leonid Lisovskiy
f59d563399
xz: fix put_unaligned_{l,b}e32
...
Signed-off-by: Leonid Lisovskiy <lly.dev@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-27 18:32:58 +01:00
Shawn J. Goff
46031da862
lineedit: initialize delptr
...
In vi mode, the 'p' and 'P' commands caused a segfault when nothing had
been put in the buffer yet because the delptr was not initialized.
Signed-off-by: Shawn J. Goff <shawn7400@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-27 18:30:05 +01:00
Lasse Collin
380c8a0763
xz: support concatenated .xz streams
...
function old new delta
xz_dec_reset - 77 +77
unpack_xz_stream 2402 2397 -5
Signed-off-by: Lasse Collin <lasse.collin@tukaani.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-27 17:26:40 +01:00
Lasse Collin
433757413f
xz: mention xzminidec.c in README
...
Signed-off-by: Lasse Collin <lasse.collin@tukaani.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-27 16:41:36 +01:00
Lasse Collin
c3045edec2
xz: fix incorrect XZ_BUF_ERROR
...
xz_dec_run() could incorrectly return XZ_BUF_ERROR if
all of the following was true:
- The caller knows how many bytes of output to expect
and only provides that much output space.
- When the last output bytes are decoded, the
caller-provided input buffer ends right before
the LZMA2 end of payload marker. So LZMA2 won't
provide more output anymore, but it won't know it
yet and thus won't return XZ_STREAM_END yet.
- A BCJ filter is in use and it hasn't left any
unfiltered bytes in the temp buffer. This can happen
with any BCJ filter, but in practice it's more likely
with filters other than the x86 BCJ.
This fixes <https://bugzilla.redhat.com/show_bug.cgi?id=735408 >
where Squashfs thinks that a valid file system is corrupt.
Thanks to Jindrich Novy for telling me that such a bug report
exists, Phillip Lougher for providing excellent debug info,
and other people on #fedora-ppc.
This also fixes a similar bug in single-call mode where the
uncompressed size of a XZ Block using BCJ + LZMA2 was 0 bytes
and caller provided no output space. Many empty .xz files
don't contain any Blocks and thus don't trigger this bug.
This also tweaks a closely related detail: xz_dec_bcj_run()
could call xz_dec_lzma2_run() to decode into temp buffer when
it was known to be useless. This was harmless although it
wasted a minuscule number of CPU cycles.
Signed-off-by: Lasse Collin <lasse.collin@tukaani.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-27 16:39:56 +01:00
Lasse Collin
a1ae2b75a7
xz: fix decoding of LZMA2 streams having no uncompressed data.
...
No .xz encoder creates files with empty LZMA2 streams,
but such files would still be valid and decompressors
must accept them.
Note that empty .xz files are a different thing than
empty LZMA2 streams. This bug didn't affect typical .xz
files that had no uncompressed data.
Signed-off-by: Lasse Collin <lasse.collin@tukaani.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-27 16:38:06 +01:00
Lasse Collin
efb800439f
cz: add C++ support to xz.h
...
Signed-off-by: Lasse Collin <lasse.collin@tukaani.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-27 16:37:18 +01:00
Lasse Collin
aada3126a7
xz: remove an empty line from xz_dec_lzma2.c
...
Signed-off-by: Lasse Collin <lasse.collin@tukaani.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-27 16:36:17 +01:00
Lasse Collin
b967e42b77
xz: make bcj_x86_test_msbyte() an inline function
...
Signed-off-by: Lasse Collin <lasse.collin@tukaani.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-27 16:34:06 +01:00
Lasse Collin
18714d8460
xz: add a comment about using uint32_t as vli_type
...
Signed-off-by: Lasse Collin <lasse.collin@tukaani.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-27 16:32:03 +01:00
Lasse Collin
9056fcecbf
xz: avoid "NOTE:" in xz.h
...
Signed-off-by: Lasse Collin <lasse.collin@tukaani.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-27 16:28:33 +01:00
Lasse Collin
3a7b2417f9
xz: update README
...
Signed-off-by: Lasse Collin <lasse.collin@tukaani.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-27 16:26:03 +01:00
Lasse Collin
04f296b28a
xz: omit explicit \0 from HEADER_MAGIC
...
Signed-off-by: Lasse Collin <lasse.collin@tukaani.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-27 16:23:24 +01:00
Denys Vlasenko
e3e321682c
Fix move_to_unaligned16
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-27 15:49:38 +01:00
Denys Vlasenko
5bce135e36
mdev: improve $SEQ handling; improve debug logging
...
Sequential run of concurrent mdev's was too simplistic:
they waited for /dev/mdev.seq to match. This could sometimes
cause cumulative loss of time on the order of a second.
Added SIGCHLD signaling from exiting mdev to all other mdev's.
Added debugging required to see that code actually works as intended.
Example of /dev/mdev.log (with "woken up" elevated from dbg lvl 3 to 2):
mdev[1023]: first seq written
^^^^ seq, not pid
mdev[1023]: 35.022395 ACTION:add SUBSYSTEM:module DEVNAME:(null) DEVPATH:/module/lib80211
mdev[1023]: rule matched, line -1
^^^^^^^ means "default rule"
mdev[1023]: 35.022676 exiting
^^^^^^^^^ second,usec timestamp
mdev[1024]: 35.069691 ACTION:add SUBSYSTEM:vc DEVNAME:vcs9 DEVPATH:/devices/virtual/vc/vcs9
mdev[1024]: dev 7,9
mdev[1025]: 35.069889 waiting for '1024'
mdev[1026]: 35.069946 waiting for '1024'
mdev[1027]: 35.070151 waiting for '1024'
mdev[1024]: rule matched, line -1
mdev[1024]: mknod vcs9 (7,9) 20660 0:0
mdev[1024]: 35.070346 exiting
mdev[1025]: woken up
mdev[1026]: woken up
mdev[1025]: 35.071213 ACTION:add SUBSYSTEM:vc DEVNAME:vcsa9 DEVPATH:/devices/virtual/vc/vcsa9
^^^^^^^^^ took only a millisecond to start running after prev mdev exited
mdev[1025]: dev 7,137
mdev[1027]: woken up
mdev[1025]: rule matched, line -1
mdev[1025]: mknod vcsa9 (7,137) 20660 0:0
mdev[1025]: 35.072109 exiting
function old new delta
mdev_main 849 1372 +523
curtime - 59 +59
dirAction 87 134 +47
static.ts - 8 +8
keywords 19 12 -7
make_device 2189 2119 -70
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-27 10:51:41 +01:00
Mike Frysinger
9fed24c031
udhcpc: tweak math shell style with the metric var
...
Some shells (like dash) are lame and omit the POSIX increment/decrement
feature (because it is listed as optional). Tweak the shell script to
work in all POSIX variants.
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2013-02-27 01:05:34 -05:00
Mike Frysinger
39b8fb41c5
udhcpc: support resolv.conf symlinks
...
Often it is desirable to have /etc/ be on read-only storage (well, the
whole rootfs) but have things like /etc/resolv.conf be symlinks to a
writable location. Tweak the simple script to support that.
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2013-02-27 01:01:43 -05:00
Denys Vlasenko
40b97fb31e
mdev: add environment variable match
...
function old new delta
make_device 1998 2189 +191
clean_up_cur_rule 61 96 +35
dirAction 75 87 +12
mdev_main 838 849 +11
packed_usage 29272 29273 +1
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 5/0 up/down: 250/0) Total: 250 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-26 00:40:46 +01:00
Denys Vlasenko
1961aea305
move endofname() to libbb
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-26 00:36:53 +01:00
Denys Vlasenko
3305c008ed
tail: make help text for -n +N syntax more correct
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-25 07:24:44 +01:00
Denys Vlasenko
40c6da433f
head: support -n -NUM and -c -NUM
...
function old new delta
head_main 406 832 +426
packed_usage 29234 29252 +18
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/0 up/down: 444/0) Total: 444 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-25 01:26:09 +01:00
Denys Vlasenko
af0255f496
head,tail: use common suffix struct. simplify help text.
...
function old new delta
head_tail_suffixes - 32 +32
head_main 415 406 -9
packed_usage 29252 29234 -18
tail_suffixes 32 - -32
head_suffixes 32 - -32
------------------------------------------------------------------------------
(add/remove: 2/2 grow/shrink: 0/2 up/down: 32/-91) Total: -59 bytes
text data bss dec hex filename
890474 497 7584 898555 db5fb busybox_old
890415 497 7584 898496 db5c0 busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-25 01:24:32 +01:00
Denys Vlasenko
8e6a1ea825
rpm: unmap rpm file before working with next one
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-20 16:01:48 +01:00
Denys Vlasenko
d4d4f3528e
rpm: stop using statics; move main() to the end of the source file
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-20 16:01:10 +01:00
Denys Vlasenko
2aec773688
rpm: use "create+rename" method of replacing existing files
...
Users were reporting getting errors like
"ls: error while loading shared libraries: libc.so.6: ELF load command past end of file"
while rpm was unpacking glibc tarball.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-20 15:58:42 +01:00
Denys Vlasenko
10f5f9b10d
rpm: make -ql display more compatible; improve help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-20 15:57:39 +01:00
Aaro Koskinen
cf5731bcbd
fdisk_sun: fix partition alignment
...
When the display unit is sectors, the partition alignment will convert
the partition start to a wrong unit (it should always be in sectors). Fix
this.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-11 00:22:59 +01:00
Aaro Koskinen
1bd5ca2f53
fdisk_sun: fix corrupted partition data with blank disk
...
After creating Sun disk label for the first time for a blank disk,
the partition table appears corrupted because current_label_type will
never get set to a proper type. Fix this by calling check_sun_label()
after BusyBox has created the label.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-11 00:22:48 +01:00
Denys Vlasenko
272d85cc85
vasprintf: return -1 on strdup failure
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-10 23:03:38 +01:00
Denys Vlasenko
b5fc51198b
vasprintf: do not use xmalloc, it will deadlock on OOM
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-07 16:06:54 +01:00
Denys Vlasenko
ba76b7a40b
mdev: chdir back to /dev after trying to read firmware
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-04 23:35:27 +01:00
Denys Vlasenko
06af569f44
arp: code shrink
...
function old new delta
packed_usage 29257 29252 -5
arp_main 1487 1471 -16
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-04 16:18:58 +01:00
Kuleshov Aleksey
a8816dafc4
arp: fix -H/-t handling.
...
While at it, shrank code.
function old new delta
arp_main 1558 1487 -71
Signed-off-by: Kuleshov Aleksey <rndfax@yandex.ru >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-04 15:14:20 +01:00
Denys Vlasenko
6e29d07417
mdev: extend debug logging output
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-30 16:51:22 +01:00
Denys Vlasenko
04ac6e03c3
udhcpc6: fix port numbers used if !FEATURE_UDHCP_PORT
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-28 15:25:35 +01:00
Kang Kai
03b614739b
testsuite/du/du-k-works: fix false positive
...
Signed-off-by: Kang Kai <kai.kang@windriver.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-28 14:02:51 +01:00
Denys Vlasenko
6be6f3bfec
flashcp: trivial code shrink
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-28 12:26:29 +01:00
Denys Vlasenko
17d4436424
ps: seconds_since_boot: uint64_t -> ulong
...
Even if long is 32-bit, 4 billion second uptime isn't likely :)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-26 14:21:15 +01:00
Denys Vlasenko
ee3bc70cea
getopt: improve help text; code shrink
...
function old new delta
generate_output 356 351 -5
packed_usage 29271 29257 -14
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-24 11:36:00 +01:00
Denys Vlasenko
243e733001
flashcp: pad output to BUFSIZE. Hopefully closes 5882
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-23 11:41:22 +01:00
Denys Vlasenko
bf99807657
unzip: add missing fflush; code shrink
...
function old new delta
my_fgets80 - 41 +41
unzip_main 2291 2242 -49
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-22 11:16:08 +01:00
Denys Vlasenko
9b7ebfe644
mount: whitespace fix. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-22 11:00:45 +01:00
Denys Vlasenko
778794d1dd
*: reuse more strings
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-22 10:13:52 +01:00
Denys Vlasenko
6aab061d2d
ps: fix sscanf format specifier (%l); make uptime unsigned
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-22 10:07:23 +01:00
Denys Vlasenko
f474dfa681
Start 1.22.0 development cycle
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-21 08:56:21 +01:00
Denys Vlasenko
64406a92a0
Bump version to 1.21.0
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-21 08:51:23 +01:00
Denys Vlasenko
0cfba07fcd
fix testsuite false positive
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-21 08:28:37 +01:00
Denys Vlasenko
4609f477c7
mdev: fix mode of dir1 in =dir1/dir2/file rule
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-21 01:22:12 +01:00
Denys Vlasenko
31dc8603ee
ifconfig: do not accept "ifconfig eth0 up 1.2.3.4/17" (ip with mask). Closes 5786
...
function old new delta
ifconfig_main 1221 1237 +16
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-20 18:10:12 +01:00
Denys Vlasenko
2f5b5beb28
grep: fix grep -Fw not respecting the -w option. Closes 5792
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-20 16:57:19 +01:00
Denys Vlasenko
81fa999540
syslogd: do not segfault on parse error when using default config. Closes 5762
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-20 16:05:41 +01:00
Denys Vlasenko
2cfcc9e9d7
sha3: code shrink
...
function old new delta
sha3_hash 155 101 -54
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-20 00:38:09 +01:00
Peter Korsgaard
9980707efc
syslogd: convert dummy functions to statics and get rid of IF_FEATURE_* checks
...
As suggested by Mike. No bloat-o-meter difference, but a bit nicer to look at.
We cannot convert the call to log_to_shmem() as it checks for G.shbuf outside
the function, and G.shbuf is only available when IPC support is enabled.
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-18 19:46:47 +01:00
Denys Vlasenko
9daf33fc52
dc: code shrink
...
function old new delta
stack_machine 103 101 -2
operators 176 168 -8
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-18 13:30:13 +01:00
Denys Vlasenko
7c4b13e019
ash: revert wrong "fix" for an apparent memory leak. Closes 5822
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-17 13:02:27 +01:00
Denys Vlasenko
5d78355d5a
code shrink
...
function old new delta
applet_name_compare 36 31 -5
find_applet_by_name 43 25 -18
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-17 11:02:43 +01:00
Denys Vlasenko
5ca853e5da
fix a typo in config help text. Closes 5714
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-17 10:24:51 +01:00
Bernhard Reutner-Fischer
20c5e5a626
mount: fix -o user=foo mishandling, fix unc= generation, add prefixpath=
...
function old new delta
singlemount 1019 1049 +30
packed_usage 29252 29257 +5
parse_mount_options 230 232 +2
mount_option_str 337 338 +1
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/0 up/down: 38/0) Total: 38 bytes
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-17 02:30:35 +01:00
Denys Vlasenko
e4f0f26bad
sha3: s/sha3_process_block76/sha3_process_block72/
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-16 12:23:23 +01:00
Denys Vlasenko
5368fe541c
sha3: rename KeccakF->sha3_process_block76.
...
This brings the naming more in line with other hashes.
Pulled most statics and constants into it.
Also noticed that two byte arrays are 1 element too big.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-16 02:20:31 +01:00
Martin Santesson
406ea15e2c
mount: add unc option to CIFS mount (needed for Linux 3.4+)
...
unc option for CIFS mount is mandatory after CIFS option parsing
was rewritten in Linux 3.4
Signed-off-by: Martin Santesson <martinsn@axis.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-16 00:47:19 +01:00
Denys Vlasenko
970aa6b5bd
sha3: cache ctx->bytes_queued
...
function old new delta
sha3_hash 171 155 -16
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-15 22:19:24 +01:00
Denys Vlasenko
8fb3ab528e
sha3: remove two "small code" codepaths: I can't reproduce code size win on them anymore
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-15 22:07:48 +01:00
Denys Vlasenko
8e7312e12f
sha3: tweak choice of a fast code path for 64-bit
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-15 21:50:41 +01:00
Denys Vlasenko
5b7f50f372
sha3: cosmetic tweaks to various names, comments. No logic changes.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-15 19:52:30 +01:00
Denys Vlasenko
ac4100e103
sha3: code shrink
...
function old new delta
KeccakF 1053 1078 +25
KeccakF_RoundConstants 192 48 -144
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-15 16:27:39 +01:00
Denys Vlasenko
a55df27936
sha3: code shrink
...
function old new delta
KeccakF 1064 1053 -11
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-15 15:22:30 +01:00
Denys Vlasenko
07a54e21dd
sha3: another speedup for SHA3_SMALL=0 case
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-15 14:47:05 +01:00
Denys Vlasenko
6830ade6aa
whitespace fixes. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-15 13:58:01 +01:00
Denys Vlasenko
30a8652fbf
sha3: make size/speed optimization decision configurable
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-15 01:12:26 +01:00
Denys Vlasenko
60cb48ca50
whitespace cleanup. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-14 15:57:44 +01:00
Lauri Kasanen
b8173b603f
sha3sum: new applet
...
function old new delta
KeccakF - 496 +496
KeccakF_RoundConstants - 192 +192
sha3_hash - 171 +171
sha3_end - 40 +40
hash_file 274 299 +25
KeccakF_RotationConstants - 25 +25
KeccakF_PiLane - 25 +25
packed_usage 29213 29232 +19
sha3_begin - 18 +18
KeccakF_Mod5 - 10 +10
applet_names 2445 2453 +8
applet_main 1420 1424 +4
applet_nameofs 710 712 +2
------------------------------------------------------------------------------
(add/remove: 8/0 grow/shrink: 9/7 up/down: 1049/-54) Total: ~995 bytes
Signed-off-by: Lauri Kasanen <curaga@operamail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-14 05:20:50 +01:00
Paul Marks
b7841cf7b9
ntpd: fix incorrect m_status field in outgoing packets. Closes 5120
...
When using busybox ntpd with an NTPv3 client and NTPv4 server (or vice
versa), the version numbers can be incorrectly ORed together, yielding
the bogus value of "NTPv7". This makes ntpd unusable with clients
such as Chrony and Windows "Internet Time".
This patch avoids the version mangling, by copying only the Leap
Indicator bits from the server's status field.
Signed-off-by: Paul Marks <paul@pmarks.net >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-14 02:39:10 +01:00
Denys Vlasenko
90801dadfa
Remove redundant 'config FEATURE_VOLUMEID_SQUASHFS'
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-14 02:24:27 +01:00
Sven-Göran Bergh
6928d9f049
volume_id: add squashfs detection
...
function old new delta
volume_id_probe_squashfs - 74 +74
fs1 12 16 +4
Signed-off-by: Sven-Göran Bergh <sgb@systemasis.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-14 02:21:41 +01:00
Denys Vlasenko
6967578728
whitespace fixes. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-14 01:34:48 +01:00
Sven-Göran Bergh
5218515508
volume_id: uuid_format small code shrink
...
function old new delta
volume_id_set_uuid 318 300 -18
Signed-off-by: Sven-Göran Bergh <sgb@systemasis.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-14 00:52:03 +01:00
Sven-Göran Bergh
07b419dbcb
volume_id: display hfs[+] 128-bit UUID properly
...
Signed-off-by: Sven-Göran Bergh <sgb@systemasis.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-14 00:37:00 +01:00
Sven-Göran Bergh
a58f7b7d2f
blkid: add type display for hfsplus
...
Signed-off-by: Sven-Göran Bergh <sgb@systemasis.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-14 00:35:31 +01:00
Peter Korsgaard
cd776cf967
syslogd: add option to log to Linux kernel printk buffer
...
Why invent our own shared memory circular buffer when the kernel has a
perfectly fine one already?
This can be used as a smaller/simpler alternative to the syslogd IPC support
(as IPC shmem/klogd/logread aren't needed), while also allowing centralised
logging of everything (kernel messages, userspace bootup and syslog)
when used together with ttyprintk.
Notice that kernel 3.5+ is needed to store syslog facility in printk buffer,
otherwise only the priority is stored.
bloat-o-meter compared to IPC+klogd+logread:
function old new delta
get_linux_version_code - 84 +84
lbb_prepare 25 90 +65
applet_nameofs 6 - -6
static.stdout@@GLIBC_2 8 - -8
applet_names 23 9 -14
bb_msg_standard_output 16 - -16
init_sem 18 - -18
xatoull_range 19 - -19
overlapping_strcpy 21 - -21
init_data 56 32 -24
applet_main 24 - -24
main 124 99 -25
full_write2_str 26 - -26
error_exit 26 - -26
bb_basename 30 - -30
sem_up 32 - -32
interrupted 35 - -35
fflush_stdout_and_exit 38 - -38
bb_banner 46 - -46
find_applet_by_name 59 - -59
bb_signals_recursive_norestart 90 - -90
run_applet_no_and_exit 104 - -104
timestamp_and_log 651 523 -128
syslogd_main 798 581 -217
xstrtoull_range_sfx 267 - -267
run_applet_and_exit 432 - -432
klogd_main 490 - -490
logread_main 508 - -508
.rodata 1870 937 -933
bb_common_bufsiz1 8193 - -8193
------------------------------------------------------------------------------
(add/remove: 2/26 grow/shrink: 1/6 up/down: 149/-11829) Total: -11680 bytes
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk >
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2013-01-06 13:30:50 -05:00
Peter Korsgaard
d189b598b4
klogd: handle multi-char log levels
...
Since Linux 3.5 (7ff9554bb5: printk: convert byte-buffer to variable-length
record buffer), klog buffer can now contain log lines with multi-char
loglevel indicators (<[0-9]+>) - So use strtoul to parse it.
function old new delta
klogd_main 490 525 +35
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/0 up/down: 35/0) Total: 35 bytes
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk >
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2013-01-05 21:03:19 -05:00
Peter Korsgaard
3917fa32dc
dmesg: handle multi-char log levels
...
Since Linux 3.5 (7ff9554bb5: printk: convert byte-buffer to variable-length
record buffer), klog buffer can now contain log lines with multi-char
loglevel indicators (<[0-9]+>) - So we can no longer just skip 3 bytes.
Instead skip past the terminating '>' like util-linux does.
function old new delta
dmesg_main 266 280 +13
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/0 up/down: 13/0) Total: 13 bytes
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk >
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2013-01-05 21:02:14 -05:00
Lauri Hintsala
fb499c5752
powertop: fix error message
...
Application tries to use timer_stats module instead of cpufreq_stats.
Error message is printed if opening of the file /proc/timer_stats fails.
Signed-off-by: Lauri Hintsala <lauri.hintsala@bluegiga.com >
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2013-01-04 17:45:44 -05:00
Mike Frysinger
a38f9faa9f
ifenslave: fix missing close paren
...
Reported-by: David J Cozatt <ygdrasil@comcast.net >
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2012-12-26 17:12:26 -05:00
Anthony G. Basile
12677acf0a
CONFIG_PID_FILE_PATH: new configuration option for pidfile paths
...
We set a default path for the directory where pidfiles are create
when FEATURE_PIDFILE is selected. The default has no effect on
applets which must specify a pidfile path on the command line to
run, and it can be overridden by applets which optionally allow
the user to specify the pidfile path.
We also add pidfile write/remove support for klogd, ntpd and watchdog.
For syslogd, we add a missing remove_pidfile() for better cleanup
on daemon exit.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org >
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2012-12-19 15:53:33 -05:00
Denys Vlasenko
393c395ca5
du: document incompatibility with standard tool
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-12-14 17:14:11 +01:00
Denys Vlasenko
4d5955e9ec
decompress_uncompress: comment out a bigger chunk of debug code
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-12-05 11:08:30 +01:00
Denys Vlasenko
a8461173ba
decompress_uncompress: comment out debug printout on corrupted data
...
99% plus of all people who'll get corrupted archive wouldn't bother
debugging it. The rest can uncomment the code.
function old new delta
unpack_Z_stream 1304 1234 -70
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-12-05 01:06:05 +01:00
Denys Vlasenko
c71547ccfc
decompress_uncompress: move 'code' variable into loop - sole user
...
Apparently, gcc does this optimization itself, since generated code is the same.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-12-05 01:04:54 +01:00
Jon Tollefson
4ba6c5d3ba
ash: fix a memory leak
...
The script which triggers the leak:
while true
do
while true
do
break;
done</dev/null
done
Signed-off-by: Jon Tollefson <kniht@linux.vnet.ibm.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-11-13 19:26:53 +01:00
S-G Bergh
e4b9451413
volume_id: add exFAT detection
...
function old new delta
volume_id_probe_exfat - 294 +294
Signed-off-by: S-G Bergh <sgb@systemasis.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-11-13 14:40:37 +01:00
Denys Vlasenko
3f21044f20
ifupdown: code shrink
...
function old new delta
execute 571 548 -23
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-11-09 17:16:40 +01:00
Denys Vlasenko
a803bfa0f0
ifupdown: remove unused errno assignments
...
function old new delta
execute 607 571 -36
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-11-05 14:18:36 +01:00
Denys Vlasenko
11181335f9
ifupdown: simple code shrink
...
function old new delta
execute 631 607 -24
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-11-05 13:22:56 +01:00
S-G Bergh
d2d5049c1d
blkid: show filesystem when both label and UUID are missing, but type is known
...
Signed-off-by: S-G Bergh <sgb@systemasis.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-11-05 13:16:07 +01:00
Mike Frysinger
5694afd72a
build system: use pkg-config to look up selinux libs
...
Newer versions of libselinux has started linking against more libs.
Rather than continuing hardcoding things, switch to using pkg-config
to query for its dependencies.
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2012-10-20 15:01:26 -04:00
Timo Teräs
67dc7b21ca
fbsplash: fix regression from e4fa7b7
...
commit e4fa7b7 (limit progress bar flicker) made the progress bar
counter unsigned causing i < 0 to never come true.
Signed-off-by: Timo Teräs <timo.teras@iki.fi >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-10-17 19:39:34 +02:00
Baruch Siach
3aeb870b22
nanddump: invert the meaning of the -o parameter to match upstream
...
Signed-off-by: Baruch Siach <baruch@tkos.co.il >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-10-15 14:32:23 +02:00
Baruch Siach
98f6b2d399
nanddump: skip bad blocks when instructed to do so
...
Signed-off-by: Baruch Siach <baruch@tkos.co.il >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-10-15 14:25:26 +02:00
Baruch Siach
da0200a1e5
nanddump: use the right operator of logic AND
...
Signed-off-by: Baruch Siach <baruch@tkos.co.il >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-10-15 14:21:45 +02:00
Ron Yorston
eab343e7e1
mktemp: fix mktemp -u temp.XXXXXX returning garbage when TMPDIR is set
...
Use mktemp instead of tempnam for compatibility with real mktemp.
Don't let mktemp fail silently, print some simple error messages.
Don't ignore -q.
Signed-off-by: Tito Ragusa <farmatito@tiscali.it >
Signed-off-by: Ron Yorston <rmy@tigress.co.uk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-10-08 11:47:22 +02:00
Tito Ragusa
8dc6d1a813
adduser: make it accept "adduser USER GROUP" form
...
Signed-off-by: Tito Ragusa <farmatito@tiscali.it >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-10-08 11:18:08 +02:00
Denys Vlasenko
fd77ea505e
mark get_shell_name FAST_FUNC
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-10-03 09:42:21 +02:00
Denys Vlasenko
32711c4141
top/ps: argv0:"gdm-session-worker [pam/gdm-password]" == comm:"gdm-session-wor"
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-10-02 11:31:37 +02:00
Denys Vlasenko
d527588882
ash: implement export -n
...
function old new delta
exportcmd 129 175 +46
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-10-01 13:41:17 +02:00
Nicolas Thill
f47ce07b26
brctl: fix description and usage
...
brctl uncorrectly displays the "showmacs" command as being supported while
it is not, remove it from the usage and Config.src file.
Signed-off-by: Nicolas Thill <nico@openwrt.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-29 16:43:33 +02:00
Felix Fietkau
1c7a58dfb8
udhcpc[6]: allow discover_retries == 0 (infinite)
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-27 16:22:24 +02:00
Manuel Zerpies
d109798882
flashcp: remove unused variable opts
...
Signed-off-by: Manuel Zerpies <manuel.f.zerpies@ww.stud.uni-erlangen.de >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-27 16:06:34 +02:00
Denys Vlasenko
b2320370be
lineedit: in !EDITING config, return -1 on fgets error
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-27 16:03:49 +02:00
Denys Vlasenko
9371043698
fix unsafe bb_perror_msg(filename) calls
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-27 15:35:10 +02:00
Denys Vlasenko
225cc1327a
scripts/kconfig/mconf: work on systems w/o SIGWINCH
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-27 15:26:40 +02:00
Denys Vlasenko
c4f2d997a4
libbb: correctness/size tweaks in signal-related helpers
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-27 13:20:34 +02:00
Denys Vlasenko
73a1990897
top: do not touch stdin if -b
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-26 16:58:25 +02:00
Denys Vlasenko
06a98e32ae
modprobe_small: make rmmod to NOT remove dependencies. Closes 5162
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-25 20:37:38 +02:00
Denys Vlasenko
0b4980c252
ash: trivial fixes for compile failures
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-25 12:49:29 +02:00
Denys Vlasenko
ffe03f04cb
top: fix build failure in !USE_TERMIOS case
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-25 12:48:46 +02:00
Denys Vlasenko
42be921d48
ps: fix build failure in !DESKTOP case
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-25 12:48:10 +02:00
Denys Vlasenko
2fb8d0dee9
top: implement scrolling up/down (_very_ useful)
...
function old new delta
handle_input 494 564 +70
top_main 928 947 +19
display_topmem_process_list 363 381 +18
display_process_list 1442 1453 +11
clearmems 38 28 -10
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/1 up/down: 118/-10) Total: 108 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-21 13:04:37 +02:00
Alexey Froloff
3c62bbae94
ushcpc: gracefully handle packets with CHECKSUM_PARTIAL
...
function old new delta
udhcp_recv_raw_packet 415 579 +164
change_listen_mode 317 370 +53
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/0 up/down: 217/0) Total: 217 bytes
Signed-off-by: Alexey Froloff <raorn@raorn.name >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-17 16:02:44 +02:00
Denys Vlasenko
0ffd63ca9a
telnet: convert Enter -> CR LF in line mode too
...
function old new delta
handle_net_output 87 98 +11
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-17 11:54:35 +02:00
Denys Vlasenko
57f07bfcb2
telnet: shrink literal string size
...
text data bss dec hex filename
888483 497 7584 896564 dae34 busybox_old
888450 497 7584 896531 dae13 busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-17 11:53:09 +02:00
Denys Vlasenko
aca464ddac
telnet: convert CR -> CR LF, not CR -> CR NUL when sending data to server
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-13 13:00:49 +02:00
Linus Walleij
6d463de46b
fbsplash: support non-RGB565 pixels in 16-bit mode
...
function old new delta
fbsplash_main 953 989 +36
fb_pixel_value 80 110 +30
Signed-off-by: Linus Walleij <triad@df.lth.se >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-06 16:52:31 +02:00
Denys Vlasenko
2dc1a97272
find: make -mindepth N -xdev correctly stop on mountpoints
...
function old new delta
fileAction 153 193 +40
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-06 15:24:11 +02:00
Denys Vlasenko
9e71e3cea5
ash: fix "read -s" + ^C. Closes 5504
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-06 13:28:10 +02:00
Denys Vlasenko
50157f3dec
top: fix "last CPU" parsing
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-06 12:43:22 +02:00
Joshua Kahlenberg
c439851438
sysctl: implement -q
...
function old new delta
packed_usage 29208 29223 +15
sysctl_act_recursive 605 598 -7
sysctl_main 233 222 -11
Signed-off-by: Joshua Kahlenberg <jbkberg@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-05 18:15:12 +02:00
walter harms
d1d794fd48
refactor correct_password.c to avoid one if
...
Signed-off-by: walter harms <wharms@bfs.de >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-04 12:26:20 +02:00
Denys Vlasenko
9b80b903c7
build system: stop .eh_frame generation
...
From Rich Felker:
By default, modern GCC generates DWARF2 debug/unwind tables in the
.eh_frame section of the object files/binaries. This adds significant
bloat (as much as 15%) to the size of the busybox binary, including
the portion mapped/loaded into memory at runtime (possibly a big issue
for NOMMU targets), and the section is not strippable with the strip
command due to being part of the loaded program text.
I've since done some further checking - both testing and asking the
GCC developers about it - and it seems the solution is to add to the
CFLAGS -fno-unwind-tables and -fno-asynchronous-unwind-tables. If
debugging is disabled, this will prevent GCC from outputting DWARF2
tables entirely. But since busybox builds with -g by default, the
interesting case is what happens then. I originally thought these
options would break debugging, but they don't; instead, they tell GCC
to output the DWARF2 tables in the .debug_frame section instead of
the newish .eh_frame section (used for exception handling). With these
options added, busybox_unstripped is still fully debuggable, and the
final busybox binary loses the 15% bloat factor from the DWARF2
tables.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-04 11:46:44 +02:00
Denys Vlasenko
b7812ce0f7
wget: reorder fread and poll: poll only if fread returns EAGAIN. Closes 5426
...
function old new delta
retrieve_file_data 451 427 -24
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-03 12:49:30 +02:00
Denys Vlasenko
168f87c531
httpd_indexcgi.c: fix compile failure
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-03 12:20:10 +02:00
Denys Vlasenko
5f10fdf1dd
Fix compile failure in ll_proto.c
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-03 11:41:30 +02:00
Sven-Göran Bergh
c5a9fa2d2a
blkid: add support for nilfs2
...
function old new delta
volume_id_probe_nilfs - 99 +99
fs2 52 56 +4
Signed-off-by: Sven-Göran Bergh <svengbergh-busybox@yahoo.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-02 15:34:39 +02:00
Denys Vlasenko
8019b3a7ae
volume_id: code shrink
...
function old new delta
volume_id_set_unicode16 200 173 -27
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-02 15:33:47 +02:00
Sven-Göran Bergh
11f2c0d4f8
blkid: add type display for btrfs
...
Signed-off-by: Sven-Göran Bergh <svengbergh-busybox@yahoo.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-02 14:56:25 +02:00
Denys Vlasenko
405dafffbb
ll_proto.c: code shrink
...
text data bss dec hex filename
762 0 0 762 2fa ll_proto.o.old
526 0 0 526 20e ll_proto.o
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-02 14:29:45 +02:00
Denys Vlasenko
a0fd4a789c
style fixes, no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-02 14:29:14 +02:00
Denys Vlasenko
41f7885f06
getty: tweak style, no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-02 13:57:49 +02:00
Denys Vlasenko
9c55143bbf
wget: try reading after poll timeout - stdio may have buffered data. Closes 5426
...
function old new delta
retrieve_file_data 436 451 +15
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-08-16 16:52:27 +02:00
Denys Vlasenko
45c35e9de0
getty: add commented-out extended error diagnostic
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-08-16 13:29:25 +02:00
Denys Vlasenko
dba7094d62
login: increase login name size limit from 32 to 64
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-08-15 17:06:37 +02:00
Denys Vlasenko
6567edd10b
udhcp[cd]: fix binding to network aliases. Closes 5432, 5438
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-08-10 00:27:22 +02:00
Cliff Frey
4919565c15
lineedit: fix Alt-D when cursor==0
...
Signed-off-by: Cliff Frey <cliff@meraki.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-08-07 17:59:40 +02:00
Denys Vlasenko
2ffd710656
platform.h: disable ALIGNn macros for s390[x]
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-08-06 17:17:15 +02:00
Mike Frysinger
ca81a93722
disable format security warnings
...
We pass strings to printf directly a lot. Some distros enable some flags
in their gcc by default like -Wformat-security. With these two things, we
end up with a lot of build warnings like so:
loginutils/chpasswd.c:42:3: warning: format not a string literal and
no format arguments [-Wformat-security]
But we don't care. Our focus is first and foremost on size, so adding a
lot of dummy calls like:
- printf(some_constant_string);
+ printf("%s", some_constant_string);
is pointless bloat.
Disable this warning flag if the compiler supports it.
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2012-08-04 16:14:24 -04:00
Denys Vlasenko
293c94564c
udhcpc: make -O <numeric_opt> work. Closes 5402
...
function old new delta
udhcpc_main 2642 2685 +43
udhcp_recv_raw_packet 414 415 +1
d6_recv_raw_packet 248 249 +1
udhcpc6_main 2430 2413 -17
add_client_options 239 213 -26
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/2 up/down: 45/-43) Total: 2 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-07-27 13:25:07 +02:00
Bradley M. Kuhn
0e941d5427
Simplify copyright/license notice that appears in the binary.
...
Existing copyright notice for binary would need to be longer to achieve
optimal accuracy. This compromise punts to the source for full notices,
but does note the years of the copyrights and that there are many authors,
all licensing under GPLv2.
Signed-off-by: Bradley M. Kuhn <bkuhn@ebb.org >
Signed-off-by: Tony Sebro <tony@sfconservancy.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-07-26 13:17:06 +02:00
Denys Vlasenko
5cfb818181
Add yet another missing ALIGN2 on a global declaration.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-07-26 12:58:41 +02:00
Denys Vlasenko
71045cc819
dhcpd: write lease file on exit
...
function old new delta
udhcpd_main 1431 1403 -28
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-07-24 17:21:26 +02:00
Aurelien Jarno
d3a42391b1
*: declare strings with ALIGN1, as appropriate
...
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-07-24 16:28:34 +02:00
Michael Tokarev
32f774cd34
*: declare strings with ALIGN1, as appropriate
...
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-07-24 15:56:37 +02:00
Yao Zhao
e565383fd5
testsuite: make mkfs.minix test not fail spuriously on big endian
...
Signed-off-by: Yao Zhao <yao.zhao@windriver.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-07-24 13:58:12 +02:00
Mimi Li
37a79c092e
sed: allow 'w' cmd to use two address form
...
function old new delta
add_cmd 1101 1094 -7
Signed-off-by: Mimi Li <felloak@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-07-24 13:20:12 +02:00
Denys Vlasenko
dbed6c4b46
tftpd: fix -u USER to work with chroot. Closes 5348
...
function old new delta
tftpd_main 546 568 +22
tftp_protocol 1844 1839 -5
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-07-18 17:32:32 +02:00
Denys Vlasenko
df8066a78c
awk: fix FS assignment behavior. Closes 5108
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-07-11 01:27:15 +02:00
Denys Vlasenko
e1db338a51
ftpd: free allocated string on error path
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-07-11 00:26:24 +02:00
Denys Vlasenko
3bb858765e
ftpd: fix MDTM's month value. Closes 5336
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-07-11 00:16:08 +02:00
Denys Vlasenko
566a313a7f
ash: add a comment about VEXPORT
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-07-07 21:40:35 +02:00
Linus Walleij
b5c7220e7b
fbset: respect rgba configuration lines in fb.modes
...
The fbset utility would not respect "rgba" config entries in
the fb.modes file such as this (for the ARM Integrator/CP):
mode "640x480-60-clcd"
# D: 25.175 MHz, H: 31.469 kHz, V: 59.94 Hz
geometry 640 480 640 480 16
timings 39722 48 16 33 10 96 2
rgba 5/10,5/5,5/0,1/15
endmode
This is important especially for this ARGB5551 device which
is hopeless to configure otherwise. I noticed this lacking
feature after the TI "fbtest" program managed to set up the
the colormode correctly.
Signed-off-by: Linus Walleij <triad@df.lth.se >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-07-07 19:58:15 +02:00
Eric Martin
5345b8db8b
acpid: add missing lid switch definition
...
This patch adds a missing LID0 switch definition.
Without it, closing the notebook lid is not detected by acpid.
Signed-off-by: Eric Martin <eric.martin@gmx.net >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-07-07 19:06:50 +02:00
Mike Frysinger
c5fe9f7b72
include sys/resource.h where needed
...
We use functions from sys/resource.h in misc applets, but don't include
the header. This breaks building with newer glibc versions, so add the
include where needed.
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2012-07-05 23:19:09 -04:00
Denys Vlasenko
9ad8979ff1
mount: support strictatime option. Closes 5240
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-26 16:09:00 +02:00
Denys Vlasenko
ea664dde87
awk: make -F STR interpret escape sequences. Closes 5126
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-22 18:41:01 +02:00
Denys Vlasenko
440a509849
dpkg: fix creation of .list files (were empty since b768aeb). Closes 5324
...
While at it, fix filename order and free the list of names.
function old new delta
llist_rev - 21 +21
get_header_tar 1733 1741 +8
unpack_package 587 585 -2
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/1 up/down: 29/-2) Total: 27 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-22 16:27:21 +02:00
Denys Vlasenko
d52c9510fd
trivial small speed optimization
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-22 15:54:05 +02:00
Denys Vlasenko
6ebb2b6b24
mount: do not pass "comment=ANYTHING" option to kernel. Closes 5240
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-22 15:17:18 +02:00
Denys Vlasenko
a396ade9f8
mount: undo recent breakage when mount flags were made unsigned
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-22 15:06:27 +02:00
Denys Vlasenko
c9a13116a4
mount: fix the wrongly stored fs creation time
...
This bug made our ext2 images non-mountable by ext4 driver.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-21 16:50:46 +02:00
Denys Vlasenko
9ee4266490
mount: set up RO loop device if mount -o ro. Closes 4784
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-21 12:08:56 +02:00
Denys Vlasenko
1d7ad7a022
tweak help texts
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-21 09:45:11 +02:00
Denys Vlasenko
2bc495e4c4
adduser: install to /usr, not /, like all other similar tools
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-20 20:35:58 +02:00
Denys Vlasenko
dac8e79a19
Move several applets to different install dir:
...
Moved to [/usr]/sbin:
addgroup, adduser, delgroup, deluser,
arping, chat, ether-wake, fdformat, ifplugd,
ip, ipaddr, iplink, iproute, iprule, iptunnel,
killall5, readahead, rtcwake, tftpd, add-shell, remove-shell, powertop.
Moved to /bin for /usr/bin: kbd_mode.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-20 20:24:57 +02:00
Denys Vlasenko
e3e0d2b812
tweak help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-19 12:46:59 +02:00
Bernhard Walle
9b78e14dfb
build system: fix build of kconfig on Darwin
...
Of course busybox cannot be used on Darwin (Mac OS X), but it can be
cross-compiled for Linux there. Cross-compilation still requires kconfig
to be built as native host tool.
Signed-off-by: Bernhard Walle <bernhard@bwalle.de >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-18 01:51:26 +02:00
Denys Vlasenko
aacd448601
wget: fix wget-supports--P testsuite failure. Closes 4940
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-17 20:21:30 +02:00
Pierre Carrier
e0a6004ce8
config: do not refer to HTTPS for wget
...
Signed-off-by: Pierre Carrier <pierre@spotify.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-17 19:59:53 +02:00
Denys Vlasenko
6144124aac
wget: make -c _not_ truncate the file
...
function old new delta
retrieve_file_data 396 436 +40
reset_beg_range_to_zero 52 45 -7
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-17 19:52:25 +02:00
Denys Vlasenko
c5b01016e6
unzip: make options parsing more robust on getopt w/o gnu extensions
...
Also, code shrank:
function old new delta
static.extn 15 10 -5
packed_usage 29231 29217 -14
unzip_main 2388 2291 -97
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-116) Total: -116 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-15 16:43:26 +02:00
Denys Vlasenko
604499e5a9
Merge branch 'master' of git+ssh://busybox.net/var/lib/git/busybox
2012-06-14 17:30:04 +02:00
Denys Vlasenko
bf146b8610
wget: correctly handle failure to -c (continue)
...
function old new delta
reset_beg_range_to_zero - 52 +52
wget_main 2168 2189 +21
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-13 17:31:07 +02:00
Vladimir Dronnikov
f5abc78579
wget: add dummy --no-cache
...
function old new delta
static.wget_longopts 155 166 +11
packed_usage 29259 29231 -28
Signed-off-by: Vladimir Dronnikov <dronnikov@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-13 17:29:41 +02:00
Michael Tokarev
ac42e3de90
ps: use separate get_uptime() and make it work on non-linux too
...
Create get_uptime() function in procps/ps.c, and use it rather than
relying on linux-specific sysinfo() inline.
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-13 02:52:28 +02:00
Matt Reimer
6979325592
nanddump: make dumping read-only partitions work
...
Make dumping read-only partitions work by opening the device
O_RDONLY; otherwise the open() will fail with -EPERM.
Signed-off-by: Matt Reimer <mreimer@sdgsystems.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-13 02:39:22 +02:00
Tanguy Pruvot
772f17a843
modinfo: match more standard module fields and fix version field
...
Previously, -F version could match the srcversion= string.
before :
~ # modinfo -F version tiwlan_drv
version: 6.1.2012.05.29
version: 533BB7E5866E52F63B9ACCB
version: 0x%x, oui=0x%x, 0x%x, 0x%x
version: 0x%x
~ # modinfo tiwlan_drv
filename: tiwlan_drv.ko
author: Texas Instruments Inc - Retouched by CyanogenDefy
license: GPL
vermagic: 2.6.32.9 preempt mod_unload ARMv7
parm: g_sdio_debug_level:debug level
depends:
now :
~ # modinfo -F version tiwlan_drv
version: 6.1.2012.05.29
~ # modinfo tiwlan_drv
filename: tiwlan_drv.ko
license: GPL
author: Texas Instruments Inc - Retouched by CyanogenDefy
version: 6.1.2012.05.29
srcversion: 533BB7E5866E52F63B9ACCB
depends:
uts_release: 2.6.32.9-g306944c
vermagic: 2.6.32.9 preempt mod_unload ARMv7
parm: g_sdio_debug_level:debug level
This patch also add support for the old "-n" and some other helpers
Change-Id: Icb4e9ca513cbce46b075a6f038799a7a19fb7e22
Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-12 16:26:03 +02:00
Denys Vlasenko
ac164dd2a7
volume_id/ext: use common bb_e2fs_defs.h for ext2/3/4 constants and structs
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-12 15:00:35 +02:00
Pascal Bellard
70fc8c17e2
su: do not change to home dir unless -l
...
Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-12 13:21:02 +02:00
Denys Vlasenko
588e284f53
remove FEATURE_VI_OPTIMIZE_CURSOR from example config
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-12 01:48:45 +02:00
Denys Vlasenko
39f82d4309
rdate: code shrink
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-11 14:57:29 +02:00
Denys Vlasenko
0ccae4d8b3
Add comments in keyboard escape sequences table
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-11 14:40:17 +02:00
Denys Vlasenko
d3dff879f0
vi: save/restore screen upon invocation
...
function old new delta
vi_main 253 273 +20
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-11 13:53:26 +02:00
Denys Vlasenko
04b52892ed
vi: nuke FEATURE_VI_OPTIMIZE_CURSOR
...
It is not Unicode safe, it is not saving much of I/O, and it's large:
function old new delta
vi_main 255 253 -2
go_bottom_and_clear_to_eol 28 26 -2
do_cmd 4194 4182 -12
show_status_line 388 374 -14
strncat 39 - -39
__GI_strncat 39 - -39
refresh 774 724 -50
place_cursor 276 83 -193
------------------------------------------------------------------------------
(add/remove: 0/3 grow/shrink: 0/6 up/down: 0/-351) Total: -351 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-11 13:51:38 +02:00
Denys Vlasenko
4125a6b630
ntpd: on time step, kill all outstanding replies from other peers
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-11 11:41:46 +02:00
Tanguy Pruvot
0a393cf7da
testsuite: some more awk tests related to conditions
...
Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-11 10:33:45 +02:00
Denys Vlasenko
93c32f2dd2
rdate: code shrink
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-11 02:06:11 +02:00
Denys Vlasenko
605f2641d8
vi: do not set autoindent by default
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-11 01:53:33 +02:00
Tias Guns
c9677ed83c
libbb: add missing_syscalls.c: for now, only Android syscalls
...
Signed-off-by: Tias Guns <tias@ulyssis.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-10 14:40:30 +02:00
Tias Guns
bd01f22986
android: some sensible defconfig changes
...
- no /usr
- no skip rootfs
- use /system/lib/modules
And for niceties:
- show usage
- have installer
- long opts
- verbose cp
- ls --color support
- bbconfig
Also adds lsof (new in 1.20.0)
Signed-off-by: Tias Guns <tias@ulyssis.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-10 14:29:15 +02:00
Tias Guns
3645195377
platform.h: Android tweaks: ioprio defines, BB_ADDITIONAL_PATH
...
Signed-off-by: Tias Guns <tias@ulyssis.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-10 14:26:32 +02:00
Tias Guns
a1ec841913
android: fix 'stat', ifdef S_TYPEIS* in coreutiles/stat.c
...
patch modified from 'BusyBox Patch V1.0 (Vitaly Greck)'
https://code.google.com/p/busybox-android/downloads/detail?name=patch_busybox
Signed-off-by: Tias Guns <tias@ulyssis.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-10 14:20:42 +02:00
Tias Guns
64f763b42a
inetd: fix build failure in Android
...
Signed-off-by: Tias Guns <tias@ulyssis.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-10 14:19:01 +02:00
Denys Vlasenko
49b8e72012
brctl: fix build failure by s/strtotimeval/bb_strtotimeval/ (android has strtotimeval)
...
Signed-off-by: Tias Guns <tias@ulyssis.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-10 14:16:16 +02:00
Denys Vlasenko
52de9c7141
lpr: don't send 0-byte print jobs (compat)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-10 13:47:17 +02:00
Etienne Le Sueur
cfc212cdff
tar: fix 256-bit encoded number decoding
...
Signed-off-by: Etienne Le Sueur <elesueur@vmware.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-09 08:37:05 +02:00
Denys Vlasenko
f451b2cfe0
ash: fix a bug in >${varexp} handling. Closes 5282
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-09 02:06:57 +02:00
Denys Vlasenko
37ca36a711
sed: yet another fix on top of zero length match code
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-08 10:25:31 +02:00
Denys Vlasenko
ba1d561d76
man: fix handling of gzipped manpages
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-08 10:22:05 +02:00
Denys Vlasenko
84406e459b
sed: fix breakage added by zero length match code
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-07 16:34:57 +02:00
Denys Vlasenko
c35545a100
sed: code shrink
...
function old new delta
process_files 2181 2173 -8
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-04 14:45:09 +02:00
Denys Vlasenko
21f6fbf545
sed: fix zero chars match/replace
...
function old new delta
process_files 2099 2181 +82
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-04 14:44:47 +02:00
Denys Vlasenko
21f620f6e5
ifplugd: tweak help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-03 10:26:16 +02:00
Denys Vlasenko
085b293338
udhcpc[6]: show select timeout in log
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-02 23:53:53 +02:00
Natanael Copa
02112d8ae3
unzip: ignore chmod errors
...
This makes unzip to FAT filesystems not exit with error.
This is similar to how the "normal" unzip works.
Signed-off-by: Natanael Copa <natanael.copa@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-05-28 01:29:15 +02:00
Boris Reisig
dfc2473b9e
tar: support -J, --xz explicit compression option
...
function old new delta
tar_main 868 881 +13
tar_longopts 285 290 +5
packed_usage 29267 29270 +3
Signed-off-by: Boris Reisig <boris@boris.ca >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-05-24 09:01:55 +02:00
Anthony G. Basile
6e9284db78
build system: fix build failure when only gunzip is selected
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-05-20 12:56:17 +02:00
Christoph Lohmann
25cb5aae2b
mdev: tell kernel that we didn't find the firmware
...
function old new delta
mdev_main 797 801 +4
Signed-off-by: Christoph Lohmann <20h@r-36.net >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-05-19 23:39:45 +02:00
Denys Vlasenko
aaf827203d
Merge branch 'master' of git+ssh://vda@busybox.net/var/lib/git/busybox
2012-05-19 22:37:07 +02:00
Natanael Copa
0446104137
tar: implement --no-recursion
...
function old new delta
tar_longopts 259 274 +15
.rodata 5757 5772 +15
tar_main 1038 1052 +14
writeTarFile 362 353 -9
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/1 up/down: 44/-9) Total: 35 bytes
text data bss dec hex filename
81457 1706 8344 91507 16573 busybox_old
81477 1706 8344 91527 16587 busybox_unstripped
Signed-off-by: Natanael Copa <natanael.copa@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-05-18 16:34:30 +02:00
Denys Vlasenko
b6beada5a1
mdev: remove undocumented subsystem/devname matching hack
...
It was colliding with matching of devnames with slashes.
We need a more generic way to examine env.vars in rules anyway.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-05-18 15:11:16 +02:00
Denys Vlasenko
ea57f51819
mdev: when found, print major,minor into mdev.log
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-05-18 11:39:57 +02:00
Denys Vlasenko
8d11854678
tweak help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-05-18 04:47:18 +02:00
Denys Vlasenko
516530c932
mdev: add support for $DEVNAME and /dev/mdev.log debug aid
...
function old new delta
make_device 1843 2083 +240
mdev_main 712 804 +92
packed_usage 29236 29251 +15
keywords 288 19 -269
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/1 up/down: 347/-269) Total: 78 bytes
text data bss dec hex filename
887506 497 7584 895587 daa63 busybox_old
887982 497 7584 896063 dac3f busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-05-18 04:45:35 +02:00
Denys Vlasenko
7c8aa2b47c
typo fix in comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-05-18 02:53:11 +02:00
Denys Vlasenko
0133921726
volume_id/ext: detect ext4 too
...
function old new delta
volume_id_probe_ext 108 132 +24
Signed-off-by: Dees Troy<dees_troy@teamw.in >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-05-18 02:51:27 +02:00
Denys Vlasenko
be1cfeea2e
find: if DESKTOP=y, support -wholename (synonym for -path)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-05-17 12:25:25 +02:00
Denys Vlasenko
4a6a56c778
examples/mdev_fat.conf: small addition
...
I needed this to make Android's adb see my phone
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-05-16 03:03:54 +02:00
Denys Vlasenko
02b8b9b014
busybox: tweak help text and copyright year
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-05-14 23:52:57 +02:00
Denys Vlasenko
a5ee090e86
fix for spurious testsuite failure
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-05-10 19:26:37 +02:00
Simon B
f1f8fcaad5
mv: accept but ignore -v
...
function old new delta
mv_longopts 36 46 +10
Signed-off-by: Simon B <sburnet@hotmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-05-06 18:08:24 +02:00
Simon B
3698ed1ca1
mkdir,rmdir: accept and ignore -v, --verbose
...
function old new delta
static.rmdir_longopts 38 48 +10
mkdir_longopts 18 28 +10
Signed-off-by: Simon B <sburnet@hotmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-05-06 15:03:32 +02:00
Simon B
8c3439554a
sed: support long opts and -iSFX
...
function old new delta
static.sed_longopts - 67 +67
sed_main 618 682 +64
packed_usage 29179 29236 +57
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 2/0 up/down: 188/0) Total: 188 bytes
Signed-off-by: Simon B <sburnet@hotmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-05-06 14:01:41 +02:00
Simon B
44642d1ec1
ln: support -T and -v
...
function old new delta
ln_main 445 524 +79
packed_usage 29182 29179 -3
Signed-off-by: Simon B <sburnet@hotmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-05-06 13:18:35 +02:00
Andreas Oberritter
556ac3633c
get_linux_version_code: don't fail on Linux version strints like "3.0-foo"
...
Signed-off-by: Andreas Oberritter <obi@opendreambox.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-05-05 17:47:23 +02:00
Mike Frysinger
3da46c8163
udhcpc6: depend on ipv6
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2012-05-02 21:45:35 -04:00
Denys Vlasenko
d133144d41
fix build failure when compressed help is selected, but bz2 compression is not
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-29 14:28:12 +02:00
Ron Yorston
576b1d3c41
sendmail: use host rather than NIS domain name for HELO
...
According to RFC 5321 the argument to HELO "contains the fully-qualified
domain name of the SMTP client" or its IP address if no FQDN is available.
BusyBox sendmail uses the NIS domain name instead which, in many cases,
is likely to be the default "(none)". [vda: yes, I checked my machine
and its uts.domainname was indeed "(none)"]
Using the host name is more likely to satisfy the intent of the RFC while
allowing the otherwise unused safe_getdomainname function to be removed.
Signed-off-by: Ron Yorston <rmy@tigress.co.uk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-28 17:04:19 +02:00
Denys Vlasenko
0c62f20454
lpr: small code shrink
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-27 15:03:34 +02:00
Dennis Groenen
deee356a62
lineedit: histfile can get emptied when CONFIG_FEATURE_EDITING_SAVE_ON_EXIT=y
...
When CONFIG_FEATURE_EDITING_SAVE_ON_EXIT is set to y, the histfile
will get cleared if the total amount of history lines is less than MAX_HISTORY.
Only if the histfile is not empty _and_ the amount of lines currently
in memory are equal to or greater than MAX_HISTORY, history saving will
work as expected with this feature enabled.
Output from defconfig + CONFIG_FEATURE_EDITING_SAVE_ON_EXIT=y:
$ echo "foo" > ~/.ash_history
$ ./busybox ash
~/busybox/a $ echo "bar" > /dev/null
~/busybox/a $ exit
$ cat ~/.ash_history
$
Output with the patch applied and same config as above:
$ echo "foo" > ~/.ash_history
$ ./busybox ash
~/busybox/b $ echo "bar" > /dev/null
~/busybox/b $ exit
$ cat ~/.ash_history
foo
echo "bar" > /dev/null
exit
$
Signed-off-by: Dennis Groenen <tj.groenen at gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-26 11:19:38 +02:00
Denys Vlasenko
9d75370238
hush: remove sighandler_t definition hack, platform.h has it too
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-26 10:59:01 +02:00
Denys Vlasenko
eced0c78a5
getty: fix for NOCTTY killing us with SIGHUP
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-26 10:53:48 +02:00
Denys Vlasenko
b84dafb5e5
sed: slightly better fix for prev commit's problem
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-24 19:27:34 +02:00
Denys Vlasenko
e39afe1fbd
sed: fix handling of s/// which has empty matches
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-24 19:21:16 +02:00
Andreas Oberritter
3a9365e273
ifupdown: improve compatibility with Debian
...
Set environment variable 'PHASE'.
Treat post-up and pre-down as aliases for up and down.
Uses the same logic as ifupdown.nw from ifupdown-0.6.16.
Makes it possible to execute Debian's ifupdown script for
wpa-supplicant.
Signed-off-by: Andreas Oberritter <obi@opendreambox.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-23 22:08:39 +02:00
Denys Vlasenko
b9d494453d
Start 1.21.0 development cycle
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-22 03:47:39 +02:00
Denys Vlasenko
f5234398ef
Bump version to 1.20.0
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-22 03:38:31 +02:00
Denys Vlasenko
d2266d43bf
udhcpc: fix improper size calculation for OPTION_STRING_HOST
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-22 03:37:01 +02:00
Denys Vlasenko
c9665631d3
mdev: fix mode of creatred node if config file support is not configured
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-21 14:35:32 +02:00
Denys Vlasenko
df9196d824
Fix another build failure found with randconfig
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-20 18:59:14 +02:00
Denys Vlasenko
6dca172610
fix build breakage with gcc 4.2.1
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-20 18:24:09 +02:00
Denys Vlasenko
56443cdbdd
whitespace fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-20 15:07:22 +02:00
Denys Vlasenko
8cab66730a
fix build breakage found by randconfig
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-20 14:48:00 +02:00
Denys Vlasenko
b110e1fecb
who: fix typo in help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-18 14:38:15 +02:00
Denys Vlasenko
d778e6c6f8
hwclock: fix wrong comparison of time value (when it will overlow int)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-17 19:25:13 +02:00
Denys Vlasenko
6500d123d0
udhcp: make arpping code resistant to time jumps
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-17 17:10:31 +02:00
Denys Vlasenko
53772869bc
who,less: tweaked help text
...
function old new delta
packed_usage 29176 29173 -3
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-17 16:11:25 +02:00
Denys Vlasenko
75e1e7b3d5
mktemp: add support for -u
...
zlib-1.2.6 Makefile uses "mktemp -u".
function old new delta
___path_search - 266 +266
mktemp_main 165 250 +85
tempnam - 79 +79
packed_usage 29189 29176 -13
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 1/1 up/down: 430/-13) Total: 417 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-17 16:00:20 +02:00
Denys Vlasenko
176bc34475
Drop include/bb_linux_ext2_fs.h, use existing e2fsprogs/e2fs_defs.h
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-17 15:06:55 +02:00
Denys Vlasenko
86a03bee1d
umount: make -d always active, add -D to suppress it
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-17 13:07:28 +02:00
Denys Vlasenko
ee0d4cd8cb
Tweak INSTALL text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-17 12:28:13 +02:00
Denys Vlasenko
0b2b0f31a3
Create and use our own copy of linux/ext2_fs.h
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-13 16:39:18 +02:00
Denys Vlasenko
caf5768154
work around linux/ext2_fs.h breakage
...
See https://bugzilla.kernel.org/show_bug.cgi?id=42986
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-12 14:01:10 +02:00
Denys Vlasenko
14850308e9
killall5: don't do STOP/CONT dance if the signal we send is SIGSTOP or SIGCONT
...
function old new delta
kill_main 913 942 +29
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-03 08:16:05 +02:00
Rob Walker
7a4269329f
httpd: emit correct content length on range requests past the end. Closes 4952
...
Signed-off-by: Rob Walker <rwalker@codeaurora.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-03 08:09:28 +02:00
Denys Vlasenko
1d9e99b399
hostname: make -i not emit extra trailing space
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-01 16:52:21 +02:00
Denys Vlasenko
3e3a8d50b3
ntpd: fix build failure if !NTPD_SERVER. Closes 4994
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-01 16:31:04 +02:00
Sven Oliver Moll
1c12b67705
lsof: new applet
...
text data bss dec hex filename
221 0 0 221 dd lsof.o
Signed-off-by: Sven Oliver Moll <busybox@svol.li >
Signed-off-by: souf <souf_oued@yahoo.fr >
Signed-off-by: Tito Ragusa <farmatito@tiscali.it >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-01 16:23:23 +02:00
Bernhard Reutner-Fischer
25dbb0743e
bloat-o-meter: Remove unused code
...
The regex matching is way slower, so remove it since it was disabled
anyway.
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2012-03-30 19:50:39 +02:00
Bernhard Reutner-Fischer
b1b70969e0
bloat-o-meter: handle huge (hex) sizes.
...
dynamic symbols with size >99999 are printed in hex.
see print_vma(psym->st_size, DEC_5)
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2012-03-30 19:26:40 +02:00
Denys Vlasenko
0d6bbb0497
hush: remove unused member struct command::is_stopped
...
function old new delta
builtin_umask 133 132 -1
checkjobs 551 544 -7
builtin_fg_bg 291 267 -24
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-27 14:32:48 +02:00
Denys Vlasenko
ba88826c66
busybox: tweak help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-22 11:15:06 +01:00
Denys Vlasenko
cc1bb603e8
ftp{get,put}: tweak help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-19 12:22:57 +01:00
Denys Vlasenko
78a3b6739c
Fix one-applet build for tcpsvd
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-19 04:38:00 +01:00
Denys Vlasenko
5e896481eb
nc: support "-<other_opts>e PROG" form of -e option
...
function old new delta
nc_main 975 1033 +58
doexec 31 45 +14
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/0 up/down: 72/0) Total: 72 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-19 01:17:36 +01:00
Denys Vlasenko
7fe1e3f161
ubi_tools: add workaround for bad kernel headers. Closes 4838
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-11 18:04:14 +01:00
Denys Vlasenko
65457625a7
build system: remove bogus $(1) in last commit
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-11 12:17:20 +01:00
Denys Vlasenko
c528917195
build system: detect missing crypt and drop it from linking
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-10 16:30:00 +01:00
Denys Vlasenko
79bec06168
ntpd: make "reply from IP" messages more uniform
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-08 13:02:52 +01:00
Denys Vlasenko
07fcaab595
test: "test !" was accessing argv past NULL - fix it. Closes 4832
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-08 03:50:01 +01:00
Denys Vlasenko
d98dc92d6a
ntpd: drop offset averaging code
...
function old new delta
filter_datapoints 475 174 -301
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-08 03:27:49 +01:00
Denys Vlasenko
4e3beb2e1d
tftpd: chroot to DIR, not merely chdir. Closes 4874
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-08 00:28:52 +01:00
Denys Vlasenko
0687a5b496
libbb: make xchroot do a chdir("/") after chroot
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-08 00:28:24 +01:00
Denys Vlasenko
39c2cb2e93
build system: fix broken CONFIG_SYSROOT handling
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-08 00:20:01 +01:00
Rob Walker
bf6343796e
Add SYSROOT, EXTRA_{LDFLAGS,LDLIBS} config opts; sample Android NDK config
...
Signed-off-by: Rob Walker <rwalker@rwalker.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-07 12:25:53 +01:00
Denys Vlasenko
69d81a1c1b
printf: fix this case: printf "%b" '\0057usr\0057bin\n'
...
It was not accepting \0NNN. Standard printf tool does.
function old new delta
printf_main 869 886 +17
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-07 11:57:47 +01:00
Denys Vlasenko
d4acaf70c5
printf: trim help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-07 11:44:15 +01:00
Denys Vlasenko
8be49c3a80
ntpd: tweak log messages format
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-06 19:16:50 +01:00
Denys Vlasenko
bb8d7db597
testsuite: add a test that tar detects XZ-compressed data
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-06 16:57:01 +01:00
Denys Vlasenko
d29c946f93
fix trivial bug in unpack_gz_stream (wrong fd used in read)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-06 16:46:25 +01:00
Denys Vlasenko
b5d6ae9a33
Don't compile get_header_tar_FOO function if they are not needed
...
Now get_header_tar_gz, get_header_tar_bz2, get_header_tar_lzma
are only used if dpkg is built.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-06 16:34:23 +01:00
Denys Vlasenko
faac1d3e6e
tar,rpm2cpio: check that child decompressor did not error out
...
function old new delta
check_errors_in_children - 57 +57
tar_main 833 848 +15
get_header_tar 1720 1733 +13
rpm2cpio_main 147 140 -7
handle_SIGCHLD 41 - -41
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 2/1 up/down: 85/-48) Total: 37 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-06 16:33:42 +01:00
Denys Vlasenko
02c3c38420
Move seamless .Z support into unpack_gz_stream
...
unpack_gz_stream 566 643 +77
unpack_gunzip 123 12 -111
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-06 16:32:06 +01:00
Denys Vlasenko
8a6a2f9c9c
update seamless uncompression code
...
This change makes "tar tf hello_world.txz" work without
adding special-casing for ".txz" extension. It also removes
ever-growing magic checking code in rpm2cpio and get_header_tar -
we reuse one which lives in setup_unzip_on_fd.
function old new delta
unpack_gz_stream 7 566 +559
check_signature16 - 70 +70
setup_unzip_on_fd 99 142 +43
handle_SIGCHLD - 41 +41
unpack_bz2_stream 342 376 +34
unzip_main 2352 2385 +33
bbunpack 503 533 +30
open_transformer 74 102 +28
unpack_Z_stream 1278 1304 +26
unpack_gunzip 101 123 +22
init_transformer_aux_data - 18 +18
unpack_xz_stream 2388 2402 +14
open_zipped 131 141 +10
rpm_main 1358 1363 +5
get_header_tar_lzma 52 57 +5
get_header_tar_bz2 52 57 +5
unpack_lzma_stream 2698 2702 +4
hash_find 234 233 -1
get_header_tar 1759 1733 -26
get_header_tar_gz 92 57 -35
unpack_uncompress 51 12 -39
rpm2cpio_main 201 147 -54
unpack_unxz 67 12 -55
unpack_bz2_stream_prime 55 - -55
get_header_tar_Z 86 - -86
unpack_gz_stream_with_info 539 - -539
------------------------------------------------------------------------------
(add/remove: 3/3 grow/shrink: 14/6 up/down: 947/-890) Total: 57 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-06 16:27:48 +01:00
Denys Vlasenko
774bce8e8b
archival/libarchive/decompress_unzip.c -> decompress_gunzip.c. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-06 16:26:20 +01:00
Denys Vlasenko
59655077c5
preparatory cleanups for seamless uncompression improvements
...
unpack_gz_stream_with_info: fix buggy error check
man: fix possible accesses past the end of a string
move seamless uncompression helpers from read_printf.c to open_transformer.c
function old new delta
show_manpage 153 212 +59
unpack_gz_stream_with_info 520 539 +19
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-06 16:23:50 +01:00
Denys Vlasenko
17eedcad94
ssd: compat: match -x EXECUTABLE by /proc/pid/exe too
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-05 16:28:07 +01:00
Denys Vlasenko
11e61d5c71
uudecode: tweak help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-05 14:23:26 +01:00
Denys Vlasenko
fa737cebe7
uuencode: tweak help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-05 14:22:33 +01:00
Denys Vlasenko
547ee7926e
ntpd: fix a case when discipline_jitter = 0 if we step
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-05 10:18:00 +01:00
Denys Vlasenko
b3439d4727
cp: trim help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-05 10:09:18 +01:00
Denys Vlasenko
bb9254a3b2
du: trim help text a bit more
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-05 09:59:56 +01:00
Denys Vlasenko
81b6bf1852
du: remove stray whitespace in help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-05 09:52:19 +01:00
Denys Vlasenko
132b044f4b
ntpd: experimental code to correct frequency a bit more aggressively
...
function old new delta
update_local_clock 730 792 +62
recv_and_process_peer_pkt 850 835 -15
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-05 00:51:48 +01:00
Denys Vlasenko
e8cfc3f693
blkid: if parameters are given, do not scan /dev
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-03 15:09:07 +01:00
Denys Vlasenko
97e5281641
ntpd: fix the "are we a server" check in previous commit
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-03 13:50:31 +01:00
Denys Vlasenko
e8ce285395
ntpd: avoid printing messages between send and recv. good for fast networks
...
function old new delta
ntpd_main 887 929 +42
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-03 12:15:46 +01:00
Denys Vlasenko
b124c3491b
ntpd: log clock drift with three digits after decimal point
...
+15 bytes.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-02 15:51:43 +01:00
Denys Vlasenko
74584b8665
ntpd: log jitter on update too; increase assumed clock precision x2 - to 2ms
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-02 01:22:40 +01:00
Denys Vlasenko
03a99e3d5c
date: extend help text to explain compat date format. Closes 4820
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-01 08:36:07 +01:00
Yin Kangkai
3ac066c256
fbsplash: use line_length instead of xres * bytes_per_pixel
...
In some system (e.g. my "strange" device), line_length is not equal xres *
bytes_per_pixel, so we need to use line_length in scr_fix to mmap and draw
rectangle etc.
My "strange" device output this:
bytes_per_pixel: 4
xres: 600, yres: 1024
yoffset: 0, xoffset: 0, line_length: 2432
G.addr: b74da000
Signed-off-by: Yin Kangkai <kangkai.yin@intel.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-02-29 18:07:59 +01:00
Denys Vlasenko
62c006d508
libbb/procps.c: make fast_strtoul_10() stop on '\n' too
...
This time for real :)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-02-28 11:16:21 +01:00
Natanael Copa
cd09e81520
grep: support for -x, match whole line
...
Specified in POSIX.
http://pubs.opengroup.org/onlinepubs/009604499/utilities/grep.html
Signed-off-by: Natanael Copa <ncopa@alpinelinux.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-02-28 03:44:08 +01:00
Denys Vlasenko
0b170e6a09
libbb/procps.c: make fast_strtoul_10() stop on '\n' too
...
This is needed for parsing /proc data on linux 2.4
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-02-28 03:36:49 +01:00
Ian Wienand
694738f4eb
du: use long long for size field
...
du has issues with files reporting large block counts on
32-bit systems with 4 byte longs. From looking at the stat.c code, it
seems the preference is to use 'long long', rather than blkcnt_t.
function old new delta
du 420 444 +24
du_main 317 321 +4
print 43 41 -2
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 28/-2) Total: 26 bytes
Signed-off-by: Ian Wienand <ianw@vmware.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-02-28 03:10:31 +01:00
Denys Vlasenko
fc4ebd0d0b
ntpd: fix offset adjustment after step; better step printing
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-02-28 02:45:00 +01:00
Denys Vlasenko
16c52a5d7b
ntpd: increase OPT_qq constant to not collide with -L
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-02-23 14:28:47 +01:00
Denys Vlasenko
6111f967f5
tar: add support for PAX-encoded path=LONGFILENAME
...
function old new delta
get_header_tar 1478 1759 +281
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-02-23 13:45:18 +01:00
Timo Teras
af36ba206f
mkdir: fix permissions on 64-bit platforms
...
sizeof(long) != sizeof(mode_t), this causes the compare in
bb_make_directory of (long)-1 != (mode_t)-1 to fail and mess up
the permissions of final directory by doing chmod((mode_t) -1).
Signed-off-by: Timo Teras <timo.teras@iki.fi >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-02-23 03:22:25 +01:00
Natanael Copa
cfcb1dac83
ifupdown: support metric for static default gw
...
This is useful when you have multiple ISPs with failover. It allows
setting the priority of the static gateway and makes it possible
to specify multiple static gateways.
The ubuntu ifupdown supports it.
function old new delta
.rodata 116725 116797 +72
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/0 up/down: 72/0) Total: 72 bytes
text data bss dec hex filename
953343 7313 8984 969640 ecba8 busybox_old
953415 7313 8984 969712 ecbf0 busybox_unstripped
Signed-off-by: Natanael Copa <natanael.copa@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-02-19 17:25:55 +01:00
Denys Vlasenko
8cce1b3ad8
httpd: make byte ranges which start at 0 work too. Closes 4766
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-02-19 17:18:45 +01:00
Denys Vlasenko
b2d668872c
modprobe-small: add comment about aliased commands' help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-02-19 16:57:08 +01:00
Lauri Kasanen
5a5db93b0f
depmod: supply help text
...
Signed-off-by: Lauri Kasanen <curaga@operamail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-02-19 16:33:37 +01:00
Denys Vlasenko
817c230a0c
getopt: trim help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-02-09 18:39:16 +01:00
Pere Orga
d0222503ff
applets_sh/*: Add a few more examples of "shell applets"
...
Signed-off-by: Pere Orga <gotrunks@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-02-09 18:23:33 +01:00
Denys Vlasenko
594db1e62a
getopt: simple code shrink; expand help text
...
function old new delta
packed_usage 28978 29184 +206
getopt_main 656 632 -24
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-02-09 18:17:29 +01:00
Jonh Wendell
9106107a50
Make unix (local) sockets work without IPv6 enabled
...
The xsocket_type() function had an optional "family" argument
that was enabled only if IPv6 is enabled. In the case of the
function was called with a valid AF_UNIX argument, and IPv6 is
disabled, this argument was silently ignored.
This patch makes the "family" argument mandatory, while keeping
the old behavior i.e., if AF_UNSPEC is passed, we try first IPv6
(if it's enabled) and fallback to IPv4.
Also I changed all callers of xsocket_type() to reflect its new
interface.
Signed-off-by: Jonh Wendell <jonh.wendell@vexcorp.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-02-09 15:14:33 +01:00
Denys Vlasenko
638dbc34b3
mdev: add a comment. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-02-06 01:00:00 +01:00
Denys Vlasenko
bbf1e3c144
acpid: do not install handlers for fatal signals
...
For acpid, it's ok to die at once.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-02-05 15:08:08 +01:00
Aaro Koskinen
6e9d047c15
cttyhack: handle multiple consoles found in sysfs
...
If multiple consoles are found from the sysfs file, cttyhack fails:
cttyhack: can't open '/dev/tty0 ttyS0': No such file or directory
In such cases take the last one as the kernel will use that one for
/dev/console.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-02-04 21:55:01 +01:00
Denys Vlasenko
ef43beac63
httpd: fix sendfile of files larger than 2 Gb. Closes 4754
...
When built with "sendfile" support, httpd was unable to send large files
(>2 GB) in one single connection, terminating it before the full file
has been sent.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-02-04 21:37:17 +01:00
Denys Vlasenko
9ec3cd400a
tweak comment, no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-02-02 11:29:43 +01:00
Denys Vlasenko
35def51c97
httpd: fix MD5-encrypted-in-httpd.conf password logic
...
function old new delta
check_user_passwd 467 492 +25
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-02-01 02:42:54 +01:00
Felipe Contreras
428bd2d433
modprobe: accept -b even if blacklist functionality is disabled
...
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-01-31 14:55:15 +01:00
Dennis Groenen
c0657e0d0a
vi: add ":prev" command support
...
function old new delta
colon 2844 2891 +47
vi_main 243 255 +12
text_yank 54 56 +2
refresh 780 774 -6
Signed-off-by: Dennis Groenen <tj.groenen@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-01-31 14:12:38 +01:00
Denys Vlasenko
800a9a056a
vi: move mark[i] pointers if text[] moves after realloc
...
While at it, optimized :s/find/repl/ a bit
function old new delta
text_hole_make 120 150 +30
colon 2848 2844 -4
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-01-31 14:10:26 +01:00
Sergey Naumov
7eaa03709b
login: -f should not ask for password even with PAM
...
Signed-off-by: Sergey Naumov <sknaumov@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-01-30 12:52:56 +01:00
Denys Vlasenko
da2b2da6a7
init: add a segv debugging aid, disabled by default
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-01-30 12:15:22 +01:00
Paulius Zaleckas
1c7724bf2a
gen_build_files.sh: exclude hidden directories
...
I am using quilt to manage patches internally. Quilt creates dir .pc
and stores unmodified files there. Since I made change in one of
Config.src quilt made a copy in .pc/xxx.patch/xxx/Config.src. When
I run make it calls gen_build_files.sh and it generates
.pc/xxx.patch/xxx/Config.in. Now when I want to pop patch quilt
thinks I have made changes to original xxx/Config.in.
IMO the best solution is just to ignore hidden directories in
gen_build_files.sh. This also results in shorter build time in case
busybox is under git/svn versioning, since it avoids searching
many directories for Config.src.
Signed-off-by: Paulius Zaleckas <paulius.zaleckas@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-01-30 02:34:56 +01:00
Javier Viguera
e8758eaf4f
mdev: fix wrong sizeof
...
Signed-off-by: Javier Viguera <javier.viguera@digi.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-01-30 02:15:13 +01:00
Quentin Casasnovas
c158601d50
bootchartd: add process accounting feature
...
function old new delta
bootchartd_main 962 1088 +126
finalize 294 357 +63
acct - 33 +33
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 2/0 up/down: 222/0) Total: 222 bytes
Signed-off-by: Quentin Casasnovas <quentin.casasnovas@mathembedded.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-01-18 02:12:13 +01:00
Javier Viguera
ce4f39ac7c
find_mount_point: fix find_mount_point for char devices
...
This allows to find mount points of 'char' devices such as UBI volumes
which otherwise fail for example with 'df' command:
/ # df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 72091984 12360980 56068924 18% /
devtmpfs 115236 4 115232 0% /dev
tmpfs 28672 32 28640 0% /tmp
/dev/ubi0_0 360268 18348 341920 5% /tmp/mnt/userfs
/ # df /dev/ubi0_0
Filesystem 1K-blocks Used Available Use% Mounted on
devtmpfs 115236 4 115232 0% /dev
Signed-off-by: Javier Viguera <javier.viguera@digi.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-01-18 01:49:11 +01:00
Denys Vlasenko
fdd0b3b398
vconfig: fix help text; small code shrink. Closes 4658
...
function old new delta
xfind_str 45 46 +1
vconfig_main 228 223 -5
packed_usage 28980 28954 -26
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-01-16 04:00:37 +01:00
Denys Vlasenko
6e8861b5f1
*: better comments on termios manipulations. No code changes.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-01-15 23:00:13 +01:00
Denys Vlasenko
7ce209b9d4
shell_builtin_read: set cc[VMIN] to 1; lineedit: don't clear c_cc[VINTR]
...
First change fixes "read -n NUM". Apparently poll() won't report
data availability if cc[VMIN] > 1 until there are at least cc[VMIN] bytes.
function old new delta
read_line_input 3885 3877 -8
shell_builtin_read 1097 1087 -10
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-18) Total: -18 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-01-15 22:58:06 +01:00
Denys Vlasenko
d29ae7e071
sed: fix possible case of signed char bug; expand debugging printouts
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-01-15 20:06:03 +01:00
Denys Vlasenko
7550201e9a
mke2fs: do not zero out first kilobyte. Closes 3247
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-01-11 01:02:31 +01:00
Denys Vlasenko
499597d6ef
mdev: do not treat non-leading '#' chars as start of comment. Closes 4676
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-01-11 00:37:17 +01:00
Denys Vlasenko
982fdaf4b2
acpid: close fds which are reported as dead (POLLERR/POLLHUP/POLLNVAL) by poll.
...
function old new delta
acpid_main 1159 1229 +70
packed_usage 28977 28980 +3
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-01-09 05:01:25 +01:00
Denys Vlasenko
d45efd3a9f
passwd,cryptpw: make default encryption algorithm configurable
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-01-08 16:44:37 +01:00
Denys Vlasenko
3e0c428c45
Move include <shadow.h> close to pwd.h and grp.h includes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-01-08 16:13:55 +01:00
Denys Vlasenko
a76dd50ce1
Move Adroid endgrent() and endpwent() NOPS to libbb.h
...
They should be after includes of pwd.h and grp.h
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-01-08 16:11:38 +01:00
Denys Vlasenko
acdb0041b3
libpwdgrp/pwd_grp.c: use same static buffer for all getpwXX functions
...
This should save more than 0.5k of malloced memory in applets
which use those functions.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-01-06 16:24:56 +01:00
Denys Vlasenko
2e55404bcf
libpwdgrp/pwd_grp.c: set opened /etc/{passwd,group,shadow} fds CLOEXEC
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-01-06 16:23:42 +01:00
Denys Vlasenko
6b64a26976
platform.h: define endgrent() and endpwent() as no-ops on Android
...
Surprisingly, bionic libc seems to lack these functions.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-01-06 16:23:18 +01:00
Denys Vlasenko
ba65872950
libbb/bb_strtonum: always set end ptr, even on error return
...
function old new delta
handle_errors 69 61 -8
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-22 13:00:32 +01:00
Alexey Fomenko
6a93212b54
kill: fix segfault in arguments parsing
...
Signed-off-by: Alexey Fomenko <ext-alexey.fomenko@nokia.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-22 11:38:57 +01:00
Denys Vlasenko
83f103b30e
ash: in standalone mode, search in $PATH if /proc/self/exe doesn't exist
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-20 06:10:35 +01:00
Denys Vlasenko
3365e9f3cc
makemime: tweak help text: -a HDR can be repeated
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-20 02:15:19 +01:00
Denys Vlasenko
03419aa037
httpd: don't drop/abuse QUERY_STRING when /cgi-bin/index.cgi is used
...
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-19 12:30:34 +01:00
Denys Vlasenko
93b4a60526
wget: fix use-after-free on redirect
...
function old new delta
wget_main 2153 2168 +15
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-18 05:11:56 +01:00
Denys Vlasenko
f282c6b657
libbb: remove is_directory's argument which is always NULL
...
function old new delta
send_cgi_and_exit 892 890 -2
ln_main 447 445 -2
handle_incoming_and_exit 2784 2780 -4
is_directory 66 59 -7
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/6 up/down: 2/-19) Total: -15 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-18 03:27:46 +01:00
Denys Vlasenko
f85bd1a7a7
httpd: remove redundant NULL assignment and save one strrchr. -8 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-18 03:22:36 +01:00
Michael McTernan
ee0f444f11
udhcp: finish support of classless static routes (now the correct patch!)
...
Signed-off-by: Michael McTernan <Michael.McTernan.2001@cs.bris.ac.uk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-16 17:10:09 +01:00
Michael McTernan
7b57ff4436
udhcp: finish support of classless static routes
...
function old new delta
udhcp_str2optset 415 532 +117
Signed-off-by: Michael McTernan <Michael.McTernan.2001@cs.bris.ac.uk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-16 17:05:52 +01:00
Paulius Zaleckas
be2a557918
vconfig: remove /proc/net/vlan/config check
...
In original implementation /proc/net/vlan/config check only prints warning
and does not exit. Busybox version exits if this file is not found and this
prevents kernel module autoloading to work.
I think it is safe to remove this check since ioctl() call will fail
(with proper
error code) anyway if 802.1q module is not loaded (or autoloading is off).
Signed-off-by: Paulius Zaleckas <paulius.zaleckas@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-16 01:42:55 +01:00
Denys Vlasenko
b05cd6b7a7
httpd: fix /../ sanitization (had one extra semicolon). rewrote it
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-16 01:37:02 +01:00
Denys Vlasenko
cda6ea905d
ash: document bash's exit code too. No code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-16 00:44:36 +01:00
Denys Vlasenko
2bef526331
ash: add comment about bash's ENOEXEC handling. No code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-16 00:25:17 +01:00
Denys Vlasenko
d6f5000c13
*: style fixes. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-15 12:39:25 +01:00
Lauri Hintsala
454fe29a80
ifupdown: remove interface from state_list if iface_up fails
...
Fix the issue where interface is set to the configured state even if
configuration has failed. Add error check to state setting logic.
Signed-off-by: Lauri Hintsala <lauri.hintsala@bluegiga.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-15 12:33:39 +01:00
Daniel Fandrich
1b41b33be3
configs/android_defconfig: update
...
Signed-off-by: Daniel Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-15 10:14:51 +01:00
walter harms
fdf514f343
touch: add new option FEATURE_TOUCH_SUSV3
...
This options -d -t -r where hidden under DESKTOP.
This option allows the user to enable these options for (only) touch.
The patch only changes DESKTOP to FEATURE_TOUCH_SUSV3.
Signed-off-by: walter harms <wharms@bfs.de >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-14 08:48:59 +01:00
Denys Vlasenko
3ef3cc5949
touch: document -t DT option in help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-13 16:56:47 +01:00
Denys Vlasenko
7280d2017d
udhcpc: sanitize hostnames in incoming packets. Closes 3979.
...
The following options are replaced with string "bad" if they
contain malformed hostname:
HOST_NAME, DOMAIN_NAME, NIS_DOMAIN, TFTP_SERVER_NAME
function old new delta
xmalloc_optname_optval 850 888 +38
attach_option 440 443 +3
len_of_option_as_string 13 14 +1
dhcp_option_lengths 13 14 +1
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/0 up/down: 43/0) Total: 43 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-08 16:41:05 +01:00
Denys Vlasenko
53782d9221
iproute: fix help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-06 18:59:55 +01:00
Denys Vlasenko
2f8ccc14f7
blkid: make help text show [BLOCKDEV]...
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-06 15:09:27 +01:00
Denys Vlasenko
c3375f0389
volume_id/get_devname: trivial code shrink
...
function old new delta
uuidcache_init 36 41 +5
get_devname_from_uuid 55 51 -4
get_devname_from_label 61 57 -4
display_uuid_cache 109 105 -4
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/3 up/down: 5/-12) Total: -7 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-06 15:06:59 +01:00
Denys Vlasenko
b8ff9357d5
suppress a "integer overflow in expression" waring on big endian. Closes 4405
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-05 04:54:14 +01:00
Tristan Schmelcher
5560e1af0a
Fix link failure on some platforms when PAM is enabled
...
Signed-off-by: Tristan Schmelcher <tristan_schmelcher@alumni.uwaterloo.ca >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-05 04:38:58 +01:00
Denys Vlasenko
ef7aa46bc4
init: code shrink -4 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-05 03:54:28 +01:00
Denys Vlasenko
beb860ac75
init: utmp update of DEAD_PROCESS was misplaced, and could be skipped. Fixing.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-05 03:31:05 +01:00
Pascal Bellard
0fa3e5f6f9
httpd: small fixes to previous change
...
Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-29 20:54:30 +01:00
Pascal Bellard
7291755439
httpd: make it possible to use system passwords for auth
...
function old new delta
check_user_passwd 320 467 +147
httpd_main 760 757 -3
Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-29 13:51:11 +01:00
Denys Vlasenko
901365fcff
old_e2fsprogs/blkid: close the fd after we are done with it
...
Some people have HUGE /dev/*...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-28 18:57:04 +01:00
Denys Vlasenko
1fd7129bc6
vi: fix [end] key handling
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-28 04:55:48 +01:00
Daniel Fandrich
65a1ee956f
rx: fix file corruption on block checksum failure
...
Rather than dropping the bad block, rx was appending it
to the file.
Signed-off-by: Daniel Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-23 12:07:31 +01:00
Denys Vlasenko
d2277e262f
nommu: fix cases where we mangle argv[0][0]
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-22 17:19:26 +01:00
Daniel Fandrich
fcb9e07eca
Added a few more features to android_defconfig
...
Signed-off-by: Daniel Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-21 14:27:35 +01:00
Denys Vlasenko
5f118ff885
Merge branch 'master' of git+ssh://busybox.net/var/lib/git/busybox
2011-11-21 14:25:15 +01:00
Denys Vlasenko
fc186711fe
makemime: document our current behavior. Tweak help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-19 14:43:02 +01:00
Denys Vlasenko
3bc4fc5857
makemime: content-type should default to application/octet-stream
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-19 13:55:46 +01:00
Denys Vlasenko
578b817151
sendmail: fix a mistake in previous commit
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-19 13:54:50 +01:00
Denys Vlasenko
41fea01066
sendmail: stop doing -t unconditionally; makemime: generate 76 char base64 lines
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-18 22:25:35 +01:00
Denys Vlasenko
a0bef7cc27
hexdump: fix hexdump -n1 -ve '8/2 ""' SEGV. Closes 4478
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-18 02:47:35 +01:00
Denys Vlasenko
860491c525
udhcpc: shrink code by setting xid more economically
...
function old new delta
send_decline 90 82 -8
udhcpc_main 2649 2640 -9
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-18 02:09:13 +01:00
Denys Vlasenko
1dc80bae0b
libbb.h: add check for bad off_t size detection
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-17 21:51:32 +01:00
Denys Vlasenko
f59a50ee30
libbb.h: tighten up macro code
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-16 21:30:19 +01:00
Denys Vlasenko
a092a89d8f
udhcpc6: rudimentary code to export data to script; fix IAADDR parsing
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-16 20:17:12 +01:00
Denys Vlasenko
2951add2bf
applets_sh/nologin: an applet implemented as shell script
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-10 18:00:28 +01:00
Denys Vlasenko
39b233182c
mount: resolve hosts to IPs in nfs mounts
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-10 17:01:39 +01:00
Denys Vlasenko
a86e02492d
mount: make FEATURE_MOUNT_NFS not needed for Linux 2.6.23+
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-10 16:53:35 +01:00
Dave Love
fae473c81b
mount: support -o noacl
...
Signed-off-by: Dave Love <fx@gnu.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-10 15:19:25 +01:00
Bernhard Reutner-Fischer
b9f4cd85f0
Config: clarify {SHOW,VERBOSE,COMPRESS}_USAGE
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2011-11-09 20:23:38 +01:00
Peter Korsgaard
743edac6c8
bb_daemonize_or_rexec(): add flag to double-fork; use it in start-stop-daemon
...
Add a DAEMON_DOUBLE_FORK flag to make bb_daemonize double-fork so it isn't a
session leader, and hence doesn't get a controlling tty on Linux if a tty is
ever opened, similar to how libdaemon's daemon_fork or the big
start-stop-daemon does it - And use it in start-stop-daemon.
For details, see http://www.win.tue.nl/~aeb/linux/lk/lk-10.html#ss10.3
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-09 19:44:37 +01:00
Denys Vlasenko
7e21f0491c
udhcpc[6]: tweak help text, remove -B from udhcpc6 and "--version" from both
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-08 11:39:41 +01:00
Denys Vlasenko
2b6a6b90cc
udhcpc6: set hop limit to 1 in emitted raw packets
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-07 18:22:06 +01:00
Denys Vlasenko
68c5b28156
udhcpc6: fix endianness
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-07 16:21:24 +01:00
Denys Vlasenko
9ba75048c0
udhcpc6: new applet. Not yet functional.
...
It builds. It sends Solicit packets. Not sure these packets are well-formed.
I have no server to test it against.
function old new delta
udhcpc6_main - 2426 +2426
d6_send_raw_packet - 428 +428
d6_send_kernel_packet - 274 +274
d6_recv_raw_packet - 248 +248
send_d6_discover - 177 +177
packed_usage 28795 28966 +171
d6_run_script - 156 +156
send_d6_renew - 140 +140
send_d6_release - 126 +126
d6_recv_kernel_packet - 116 +116
send_d6_select - 95 +95
perform_d6_release - 78 +78
d6_find_option - 74 +74
init_d6_packet - 54 +54
d6_copy_option - 48 +48
d6_mcast_from_client_config_ifindex - 42 +42
d6_dump_packet - 24 +24
static.FF02__1_2 - 16 +16
d6_store_blob - 13 +13
applet_names 2432 2440 +8
applet_main 1412 1416 +4
applet_nameofs 706 708 +2
add_d6_client_options - 1 +1
------------------------------------------------------------------------------
(add/remove: 21/0 grow/shrink: 4/0 up/down: 4721/0) Total: 4721 bytes
text data bss dec hex filename
879080 493 7584 887157 d8975 busybox_old
884585 497 7584 892666 d9efa busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-07 15:55:39 +01:00
Denys Vlasenko
50089fc61c
udhcpc: trim help text, rename badly-named variable
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-07 15:44:46 +01:00
Denys Vlasenko
0fd4347ced
udhcpc: code shrink
...
function old new delta
udhcpc_main 2646 2649 +3
udhcp_run_script 816 802 -14
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-07 00:54:27 +01:00
Denys Vlasenko
3b46fcb95d
udhcpc: remove workaround for bugs in Win98 dhcp server ("MSFT 98" vendor string)
...
Stats for last three commits:
function old new delta
udhcpc_main 2635 2646 +11
udhcp_recv_raw_packet 425 414 -11
udhcp_recv_kernel_packet 210 134 -76
packed_usage 28940 28857 -83
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/3 up/down: 11/-170) Total: -159 bytes
text data bss dec hex filename
879524 493 7584 887601 d8b31 busybox_old
879340 493 7584 887417 d8a79 busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-05 01:26:18 +01:00
Denys Vlasenko
d38ca03946
udhcpc: reuse string constant; remove unneeded memset(0)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-05 01:25:03 +01:00
Denys Vlasenko
2017d48c0d
udhcpc: deprecate --hostname NAME
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-05 01:24:14 +01:00
Denys Vlasenko
c0cae52662
lineedit: fix build failure
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-04 01:09:09 +01:00
Denys Vlasenko
9ce09bc9cb
lineedit: add support for M-b, M-f, M-d, M-Backspace
...
function old new delta
ctrl_left - 96 +96
ctrl_right - 76 +76
static.esccmds 81 93 +12
read_line_input 3876 3885 +9
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 2/0 up/down: 193/0) Total: 193 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-03 13:28:22 +01:00
Daniel Fandrich
45cdf166dc
android build system updates
...
Signed-off-by: Daniel Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-03 11:20:07 +01:00
Denys Vlasenko
f3efd3c2a0
rx: code shrink
...
function old new delta
rx_main 961 947 -14
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-03 10:19:53 +01:00
Dan Fandrich
f808e777db
rx: Fix file corruption with duplicate blocks
...
Rather than dropping the dupe, rx was appending it to the file.
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-03 10:18:33 +01:00
Karol Lewandowski
b5ebe5fdb3
mount: handle list of comma-separated fs types in -t option
...
Allows one to specify list of filesystem types to be
tried when mounting particular device. E.g.
mount -t vfat,ext2 ...
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-03 10:02:31 +01:00
Denys Vlasenko
f85554c265
mount: free commented /etc/filesystems lines when we read it
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-03 09:54:53 +01:00
Denys Vlasenko
3b1603410a
nmeter: fix block i/o count on newer Linux kernels
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-01 23:34:46 +01:00
Denys Vlasenko
f8a5b792ba
cttyhack: move /sys/class/tty/console/active check to the front
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-31 16:57:04 +01:00
Alexander Shishkin
156840c249
cttyhack: print detected ctty name when called without parameters
...
Sometimes there's a need to figure out the controlling tty from a shell
script, for example, to obtain a line for getty. In this case it's easier
to call cttyhack than trying to repeat some of the cttyhack's logic.
function old new delta
cttyhack_main 283 327 +44
packed_usage 28911 28915 +4
Signed-off-by: Alexander Shishkin <virtuoso@slind.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-31 13:18:44 +01:00
Denys Vlasenko
bcdae63875
testsuite: merge bzcat2.tests into bzcat.tests
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-31 01:10:47 +01:00
Denys Vlasenko
c0e37b4340
testsuite: fix the mishap in the previous commit
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-31 01:08:35 +01:00
Denys Vlasenko
c531b9a3e4
bzcat: fix unpacking of more than one file, and unpacking of zero-size bz2. Closes 4393
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-31 01:05:16 +01:00
Denys Vlasenko
b076193f74
modinfo: make it select PLATFORM_LINUX. Closes 4411
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-30 22:07:36 +01:00
Denys Vlasenko
e504c245f7
getty: Hurd has no CBAUD, work around that
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-30 21:27:33 +01:00
Denys Vlasenko
83e34ac4b5
makemime: fix -a option not taking parameter
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-28 18:25:38 +02:00
Christian Engelmayer
8de2e42201
syslogd: work around rename() not renaming hardlinks to themselves
...
Function log_locally() within the syslogd can potentially lock up when
restarting the daemon after a power loss in case the unplanned shutdown hit the
rename operation during logfile rotation.
While POSIX requires the rename operation to be atomic, many file systems such
as JFFS2 implement the rename operation in 2 steps by linking the new name
followed by unlinking the original name. In case of a power loss during the
rename the system can end up with /var/log/messages and /var/log/messages.0
being 2 hard links to the same file.
When the syslog daemon restarts in such a situation it will rediscover the need
to rotate the log files, however, POSIX also requires that rename does nothing
and reports success in case oldpath and newpath are existing hard links to the
same file. Looping through reopen: by (O_CREAT | O_APPEND), the daemon
eternally reopens the same file without succeeding to rotate.
Signed-off-by: Christian Engelmayer <christian.engelmayer@frequentis.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-28 18:12:42 +02:00
Denys Vlasenko
e6094d95b5
libbb: shrink base64 decoding a bit
...
function old new delta
bb_uuenc_tbl_base64 67 66 -1
decode_base64 182 161 -21
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-28 16:15:00 +02:00
Denys Vlasenko
73d249e704
whitespace fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-28 14:07:44 +02:00
Leonid Lisovskiy
328f27fe44
libbb: split decode_base64 off read_base64
...
function old new delta
decode_base64 - 182 +182
read_base64 378 255 -123
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/1 up/down: 182/-123) Total: 59 bytes
Signed-off-by: Leonid Lisovskiy <lly.dev@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-28 13:59:55 +02:00
Denys Vlasenko
ec447c7f01
libbb.h: remove unused defines
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-24 04:06:18 +02:00
Denys Vlasenko
e9dc354df8
getty: fix a minor problem of Ctrl-D not printing '\n'
...
Also removed defines for control chars which are never changed,
and added login/getty README.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-23 23:58:59 +02:00
Denys Vlasenko
ee320c6d9c
getty: reset tty attrs on Ctrl-C and Ctrl-D too
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-23 18:05:58 +02:00
Denys Vlasenko
e206a4de4c
getty: add O_NONBLOCK to open which is used to drop ctty
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-22 08:19:42 +02:00
Denys Vlasenko
a241069004
remove duplicate include <sys/swap.h>
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-22 06:39:00 +02:00
Denys Vlasenko
94354154c4
getty: remove now not needed resetting of ALRM to to SIG_DFL
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-22 06:30:48 +02:00
Denys Vlasenko
7449e18190
getty,login: tighten up handling of ctty, pgrp, and tty attr restoring on timeout
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-22 06:27:41 +02:00
Denys Vlasenko
ef5a2d757a
getty: shrink help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-22 03:16:23 +02:00
Denys Vlasenko
5dd1f472a4
stty: trim too verbose error messages (-40 bytes)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-21 19:45:13 +02:00
Denys Vlasenko
17fb598dc2
docs/ctty.htm: add a useful URL to
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-21 18:44:33 +02:00
Denys Vlasenko
2af2acf9b5
udhcpc: add comment about server IP
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-20 14:47:41 +02:00
Denys Vlasenko
fbca0c68a7
udhcpc: in fill_envp, export BOOTP fields first
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-20 14:24:18 +02:00
Denys Vlasenko
cd4d78f525
dhcpc: fix the case where we might add extra space at the end of envvar.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-20 13:21:55 +02:00
Denys Vlasenko
1dff672335
udhcpc: fix 6rd option formatting (was using 4 more bytes than there is)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-20 12:29:18 +02:00
Denys Vlasenko
42816c204d
udhcpc: remove unused argument in sprint_nip6
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-20 10:52:07 +02:00
Denys Vlasenko
7981d79ef0
udhcpc: small code shrink
...
function old new delta
udhcp_recv_raw_packet 430 425 -5
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-20 10:34:05 +02:00
Denys Vlasenko
f461385521
typo fix in comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-20 08:54:16 +02:00
Denys Vlasenko
1f56e51ca1
udhcpc: add support for DHCP option 212 (RFC 5969)
...
The patch is from OpenWRT people.
function old new delta
xmalloc_optname_optval 637 874 +237
dhcp_option_strings 237 243 +6
dhcp_optflags 68 70 +2
len_of_option_as_string 12 13 +1
dhcp_option_lengths 12 13 +1
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 5/0 up/down: 247/0) Total: 247 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-19 22:40:35 +02:00
Denys Vlasenko
2ea73b513d
nc: small code shrink
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-19 22:31:01 +02:00
Denys Vlasenko
4ea37d62c2
gen_build_files.sh: simplify "print everything up to INSERT line" part
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-19 21:17:20 +02:00
Denys Vlasenko
efd08bfa0a
gen_build_files: don't pass 200k+ strings as params. Closes 4321
...
Also removes one grep per generated file.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-19 17:54:42 +02:00
Denys Vlasenko
f74f280a14
get_header_tar: shrink 6->64 sign extension code
...
function old new delta
getOctal 125 107 -18
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-19 14:51:12 +02:00
Denys Vlasenko
9c28fb8d28
ifupdown: code shrink
...
function old new delta
keywords_up_down - 43 +43
set_environ 371 259 -112
ifupdown_main 2194 2073 -121
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/2 up/down: 43/-233) Total: -190 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-19 02:37:08 +02:00
Peter Korsgaard
dd82443b92
ifupdown: support post-up / pre-down hooks
...
function old new delta
set_environ 330 371 +41
ifupdown_main 2156 2194 +38
iface_up 97 113 +16
iface_down 97 113 +16
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/0 up/down: 111/0) Total: 111 bytes
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-19 02:35:54 +02:00
Denys Vlasenko
ce8c4cf37f
TODO: all another location with bbox patches (OpenWRT)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-19 01:55:08 +02:00
Denys Vlasenko
5f92043c3f
uudecode: fix buggy check for empty filename
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-18 12:07:05 +02:00
Vladislav Grishenko
6464f15ddb
udhcpc: on SIGUSR1, limit renew attempts time to 20 seconds; then do total reconfig
...
Scenario:
1. udhcpc gets lease for 86400 secs and sleeps for 43200 before renew attempt
2. PC gets physically disconnected and connected to another network
3. some phy control software sends SIGUSR1 to renew the lease, SIGUSR2 isn't
used because newly connected network could be the same as before
4. udhcpc sends unicast renew requests until lease timeout fall to 60 sec.
They are ignored by new network dhcp servers
5. udhcpc sends broadcast rebind requests for 60 seconds, which are NAKed
or ignored too
6. udhcpc deconfigs and starting from discover state, gets new lease for the
new network
So, pt.4+5 it could take up to 86400 secs without correct lease, which is
too long and not acceptable.
Second SIGUSR1 will immediately run into deconfig/discover state, which is
not preferable in case of the same subnet replugged.
This patch makes sure after SIGUSR1 timeout is no more than -A NUM
(usually 20 sec). It means that renew will be requested via broadcast,
and if no replies come back, full deconf/reconf cycle will be initiated
in 20 seconds.
Signed-off-by: Vladislav Grishenko <themiron@mail.ru >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-18 01:37:47 +02:00
Leonid Lisovskiy
6c9c0a1dc9
udhcp: IF_UDHCP_VERBOSE() macro - improve code readability
...
Signed-off-by: Leonid Lisovskiy <lly.dev@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-18 00:35:47 +02:00
Peter Korsgaard
cd06e06eee
fbsplash: support 8bit mode
...
Fake truecolor support using a RGB:332 palette.
function old new delta
fb_setpal - 172 +172
fbsplash_main 920 953 +33
fb_pixel_value 50 80 +30
fb_write_pixel 47 51 +4
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 3/0 up/down: 239/0) Total: 239 bytes
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-17 05:31:52 +02:00
Peter Korsgaard
e4fa7b7965
fbsplash: limit progress bar flicker
...
Progress bar updates flicker quite a bit on slow hw / high resolutions
as the background is completely cleared before the new progress bar
position is drawn on top.
Improve it by first drawing the progress bar and then only fill the
remaining rows with the background.
function old new delta
fb_drawprogressbar 444 429 -15
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-17 04:35:23 +02:00
Denys Vlasenko
4c77ad75b1
pwd: implement -LP if DESKTOP
...
function old new delta
pwd_main 41 244 +203
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-16 05:16:50 +02:00
Flemming Madsen
ecccbac37b
inotify: if PROG is -, print events to stdout
...
function old new delta
inotifyd_main 516 589 +73
packed_usage 28698 28709 +11
Signed-off-by: Flemming Madsen <busybox@themadsens.dk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-10 20:24:02 +02:00
Rob Landley
39ec6a2ad5
patch: make -p count path components, not slashes (think /blah//thing)
...
Signed-off-by: Rob Landley <rob@landley.net >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-10 19:59:38 +02:00
Oliver Metz
cc87588a61
disable strverscmp usage if we build against uClibc-0.9.31
...
Signed-off-by: Oliver Metz <oliver.metz@googlemail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-09 02:08:42 +02:00
Denys Vlasenko
faf7c62f1d
tftp: mode string is case independent
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-06 17:19:09 +02:00
Cristian Ionescu-Idbohrn
85b1f292c9
ps: fix for !FEATURE_PS_LONG build
...
Signed-off-by: Cristian Ionescu-Idbohrn <cii@axis.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-29 11:02:00 +02:00
Flemming Madsen
b64bd16459
ps: with -l, show STIME too
...
Signed-off-by: Flemming Madsen <busybox@themadsens.dk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-27 15:31:25 +02:00
Denys Vlasenko
8d9ac30572
ps: add support for -l for !DESKTOP
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-26 02:56:08 +02:00
Denys Vlasenko
d184a728cf
rename archive.h to bb_archive.h. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-22 12:45:14 +02:00
Denys Vlasenko
45f0a1156d
mdev: trim overlong comments. No code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-22 04:55:47 +02:00
Denys Vlasenko
3eccd7ecbe
mdev: don't reparse rules on -s
...
function old new delta
make_device 1648 1843 +195
clean_up_cur_rule - 61 +61
make_default_cur_rule - 41 +41
mdev_main 690 712 +22
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 2/0 up/down: 319/0) Total: 319 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-22 03:46:30 +02:00
Denys Vlasenko
16714245f9
add INIT_G()'s. No code changes.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-21 01:59:15 +02:00
Denys Vlasenko
5c6ba6c56f
mdev: expand --help so that it's actually useful.
...
function old new delta
packed_usage 28634 28822 +188
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-19 12:18:11 +02:00
Denys Vlasenko
34c469ae04
sendmail: don't talk until 220 code is seen. Closes 3487
...
function old new delta
sendmail_main 934 939 +5
smtp_checkp 167 165 -2
packed_usage 28634 28621 -13
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-18 03:01:49 +02:00
Denys Vlasenko
0851d125c3
tail: fix -c +N. Closes 4111
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-17 00:12:24 +02:00
Denys Vlasenko
6d2d652cd3
applet_tables: fix single applet build failure. Closes 4009
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-16 14:28:32 +02:00
Denys Vlasenko
514cbfc593
syslogd: fix missing newline problen in memory log buffer. Closes 4159
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-16 13:28:52 +02:00
Denys Vlasenko
c74a79f288
chpst: move misplaced comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-16 11:54:13 +02:00
Denys Vlasenko
d18ef6c9f6
chpst: simple code shrink
...
function old new delta
chpst_main 733 718 -15
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-16 11:52:43 +02:00
Denys Vlasenko
585541e8e3
start_stop_daemon: set complementary group ids too. Closes 3253
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-15 18:27:05 +02:00
Denys Vlasenko
dd1eb413f2
suppress "warning: implicit declaration of function 'alloca'"
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-15 10:37:04 +02:00
Ian Wienand
378ab68199
login: new option LOGIN_SESSION_AS_CHILD
...
Signed-off-by: Ian Wienand <ianw@vmware.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-14 08:41:38 +02:00
Denys Vlasenko
a221bc5f99
sed: better help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-13 18:40:22 +02:00
Pascal Bellard
f9e07e70bb
conspy: add framebuffer support, -Q option.
...
Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-13 18:39:04 +02:00
Bernhard Reutner-Fischer
74b871febb
Config: fix wording in help-text
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2011-09-13 14:59:06 +02:00
Denys Vlasenko
13e709c53f
losetup: implement -r option. Closes 4033.
...
function old new delta
packed_usage 28595 28633 +38
losetup_main 285 290 +5
singlemount 906 908 +2
set_loop 674 672 -2
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-12 08:30:16 +02:00
Denys Vlasenko
dd1061b6a7
wget: URL-decode user:password before base64-encoding it into auth hdr. Closes 3625.
...
function old new delta
percent_decode_in_place - 152 +152
parse_url 304 317 +13
handle_incoming_and_exit 2795 2798 +3
httpd_main 763 760 -3
decodeString 152 - -152
------------------------------------------------------------------------------
(add/remove: 2/1 grow/shrink: 2/1 up/down: 168/-155) Total: 13 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-11 21:04:02 +02:00
Denys Vlasenko
5126cf9a15
ping: display real IPv6 response address. Hopefully closes 3745.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-11 20:27:28 +02:00
Denys Vlasenko
46aa5e0859
tune2fs: add support for -C MOUNT_COUNT. +40 bytes. Closes 3901.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-11 20:08:12 +02:00
Denys Vlasenko
223b9417b3
inetd: close new udp fd in "udp nowait" case
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-11 16:48:21 +02:00
Denys Vlasenko
d2fe2ba08d
chpasswd: fix possible free() or non-allocated string. +8 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-11 12:25:59 +02:00
Denys Vlasenko
7b46d11582
awk: fix a SEGV
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-11 00:30:56 +02:00
Denys Vlasenko
d48fdde370
stop declariong our own dirname prototype
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-10 13:48:34 +02:00
Denys Vlasenko
522041ee7b
regularize options which control size/speed trade
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-10 13:25:57 +02:00
Denys Vlasenko
202a1b9284
awk: fix define name collision with BSD headers
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-10 04:51:09 +02:00
Ian Wienand
c2a06db69d
gzip: new GZIP_BIG_MEM option
...
Enabling the config option on my standard linux box and zipping a
random 250mb file:
small mem: 21.85user 0.44system 0:22.35elapsed
big mem: 13.45user 0.46system 0:13.94elapsed
Signed-off-by: Ian Wienand <ianw@vmware.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-09 20:19:35 +02:00
Sonic Zhang
880eec8f33
depmod.pl: output correct dep format according to kernel version
...
All kernel version except for 2.4 has the same dep output format.
(Possibly related to era of kernels 3.0+)
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-09 18:58:08 +02:00
Denys Vlasenko
f23f7856cb
tweak comments in android build files
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-09 18:07:38 +02:00
Denys Vlasenko
e0894f567a
Android build fixes and alternate (hopefully simpler) defconfig for it
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-09 18:00:44 +02:00
Denys Vlasenko
831756bac4
unzip: fflush stdout before reading interative y/n answer from stdin
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-09 17:30:55 +02:00
Denys Vlasenko
12e154f0cf
vi: prevent unlimited recursion in do_cmd(). Closes 4153
...
function old new delta
do_cmd 4284 4194 -90
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-09 12:35:49 +02:00
Baruch Siach
289c47b049
udhcp: remove the declaration of non-existent udhcp_checksum
...
Signed-off-by: Baruch Siach <baruch@tkos.co.il >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-09 11:03:45 +02:00
Denys Vlasenko
0d0260fd1e
inet_cksum: big-endian fix
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-08 10:59:26 +02:00
Denys Vlasenko
9289935cfd
Fix compile breakage
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-07 22:19:46 +02:00
Denys Vlasenko
f65c5f5c54
awk: next_input_file can return NULL, don't SEGV in this case.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-07 20:01:39 +02:00
Baruch Siach
e8f36330d9
networking: consolidate the IP checksum code. -129 bytes.
...
Signed-off-by: Baruch Siach <baruch@tkos.co.il >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-07 17:55:40 +02:00
Denys Vlasenko
8c84f7545c
crond: fix the case when option -d is disabled
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-07 05:56:09 +02:00
Denys Vlasenko
e45af7ad17
lineedit: remove SAVE_HISTORY bit, ->hist_file can be used as indicator
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-04 16:15:24 +02:00
Denys Vlasenko
bede215cf1
lineedit: add support for history saving on exit
...
Based on the patch by Dennis Groenen <tj.groenen@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-04 16:12:33 +02:00
Denys Vlasenko
4840ae8a06
lineedit: fix atomic replace of history file; hush: fix $HISTFILE handling
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-04 15:28:03 +02:00
Lauri Kasanen
7b46220d92
grep: be GNU compatible with -f EMPTY_FILE
...
Signed-off-by: Lauri Kasanen <curaga@operamail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-28 12:39:04 +02:00
Denys Vlasenko
2390109dcb
top: fix CPU% for thread display. Closes 4081
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-28 11:57:36 +02:00
Ian Wienand
abc33ac8b2
Fix find -follow support
...
Signed-off-by: Ian Wienand <ianw@vmware.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-28 06:53:20 +02:00
Denys Vlasenko
24915117a2
Fixes for warnings in FreeBSD build
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-28 05:31:49 +02:00
Matthias Andree
1285437217
Fixes for FreeBSD build
...
Signed-off-by: Matthias Andree <mandree@freebsd.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-28 05:05:02 +02:00
Denys Vlasenko
a04e4c2266
uncompress: die on read errors
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-22 04:59:41 +02:00
Rob Landley
c5f7847659
patch: make it able to create files (again)
...
I broke patch's ability to create files in November, and nobody noticed in
the ensuing 11 months. Sigh.
Signed-off-by: Rob Landley <rob@landley.net >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-22 04:58:32 +02:00
Denys Vlasenko
251fc70e97
uncompress: fix buffer underrun by corrupted input
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-18 14:29:41 +02:00
Pere Orga
b1611d9a46
hostid: fix behavior on identifiers starting with zeros
...
Signed-off-by: Pere Orga <gotrunks@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-16 23:36:10 +02:00
Kevin Cernekee
4619802a5f
cttyhack: trivial spelling/spacing fixes
...
Signed-off-by: Kevin Cernekee <cernekee@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-16 23:31:03 +02:00
Kevin Cernekee
816cd16a4c
cttyhack: remove the trailing newline when reading console name from sysfs
...
Signed-off-by: Kevin Cernekee <cernekee@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-16 23:29:54 +02:00
Denys Vlasenko
9176f6c52c
patch: add a test we currently fail
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-16 22:57:12 +02:00
Denys Vlasenko
a7d6bb3b5d
sed: fix range handling for sed -i. Closes 4069
...
function old new delta
sed_main 606 618 +12
add_cmd 1099 1101 +2
process_files 2108 2099 -9
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 14/-9) Total: 5 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-16 13:29:34 +02:00
Denys Vlasenko
4f54168ea2
less: fix for screen size detection
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-16 01:53:12 +02:00
Denys Vlasenko
c21c310e46
swapoff: dont pass "p" in opt_complementary
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-13 23:36:36 +02:00
Denys Vlasenko
c97578de6b
conspy,nandwrite,nanddump: enable in defconfig
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-13 09:00:29 +02:00
Denys Vlasenko
8b141ebd45
Start 1.20.0 development cycle
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-13 08:56:58 +02:00
Denys Vlasenko
d84b175cb6
Bump version to 1.19.0, update copyright year in help message
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-13 08:46:00 +02:00
Denys Vlasenko
2969e24e2a
testsuite: fixes after randomconfig run
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-11 10:40:12 +02:00
Denys Vlasenko
87249fbf50
find: fix a bug in !ENABLE_FEATURE_FIND_XDEV config
...
A subtle one: wrong pairing of "else"!
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-11 02:27:13 +02:00
Denys Vlasenko
5845a06c9e
uptime: more compatible output
...
was: 12:59:35 up 1:57, 4 users, load average: 0.11, 0.20, 0.53
is: 12:59:37 up 1:57, 4 users, load average: 0.11, 0.20, 0.53
While at it, switched code to unsigned division.
Based on patch by Pere Orga <gotrunks@gmail.com >.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-10 13:00:04 +02:00
Denys Vlasenko
47b03368f3
randomconfig fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-10 10:45:48 +02:00
Denys Vlasenko
b47b3ce1bd
randomconfig fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-10 00:51:29 +02:00
Denys Vlasenko
b347df9131
randomconfig fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-09 22:49:15 +02:00
Denys Vlasenko
a6367f9fae
remove extra IF_WHO()
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-09 10:28:28 +02:00
Denys Vlasenko
89edf29cfd
remove extra += who.o
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-09 09:36:25 +02:00
Ralf Friedl
00103d3287
df: more compatible -P behavior
...
In coreutils df, one of the effects of the option -P is to output
everything in one line. This makes it much easier for a script to parse
the output of df.
This patch adds the same behavior to busybox df.
function old new delta
df_main 853 863 +10
Signed-off-by: Ralf Friedl <Ralf.Friedl@online.de >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-09 04:49:27 +02:00
Thomas Petazzoni
98aeabe792
zcip.script: fix $ip environment variable
...
The environment variable containing the IP address allocated by zcip
is "ip" and not "IP".
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-09 04:41:00 +02:00
Tito Ragusa
7926b98949
users: new applet.
...
Signed-off-by: Tito Ragusa <farmatito@tiscali.it >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-09 04:37:50 +02:00
Pere Orga
d91b13806f
uptime: add config flag to allow displaying the number of users currently logged on
...
Signed-off-by: Pere Orga <gotrunks@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-09 04:09:17 +02:00
Denys Vlasenko
7485086f1e
die_if_bad_username: tighten up a bit
...
function old new delta
die_if_bad_username 77 97 +20
Based on patches from Tito.
The changes are:
better comments
we disallow '@' now - in practice such usernames will be unusable
use of the portable filename character set plus '$'
don't use isalnum as it allows non-ASCII letters in legacy 8-bit locales (pointed out by Rich Felker)
enforce maximum length of LOGIN_NAME_MAX (including NUL)
don't allow '$', '.', and '-' as first char
don't print the illegal char in error message as if it is a wide char it will be unreadable
print the position of the illegal character
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-09 04:05:13 +02:00
Denys Vlasenko
6e42b89b8d
hush: fix remaining known two bugs with IFS expansion. Closes 4027.
...
function old new delta
expand_vars_to_list 1054 1140 +86
parse_stream 2425 2479 +54
expand_on_ifs 258 310 +52
builtin_umask 133 132 -1
done_word 820 779 -41
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/2 up/down: 192/-42) Total: 150 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-01 18:16:43 +02:00
Denys Vlasenko
4fb53fb08c
hush: partially fix wrong expansion on $IFS (bug 4027).
...
In the added testcase, before patch we failed 8 out of 9 tests,
now we fail only 2 (4th and 5th).
function old new delta
expand_on_ifs 225 258 +33
expand_vars_to_list 1038 1054 +16
o_save_ptr_helper 115 119 +4
builtin_umask 132 133 +1
o_addQstr 165 161 -4
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/1 up/down: 54/-4) Total: 50 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-01 14:06:20 +02:00
Ian Wienand
954dbd3a00
tar: ignore file size (assume 0) for hardlinks
...
Signed-off-by: Ian Wienand <ianw@vmware.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-29 08:33:47 +02:00
Denys Vlasenko
67905e2d7c
*: work around sysinfo.h versus linux/*.h problems
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-26 13:42:12 +02:00
Denys Vlasenko
4abcb8b0d1
tcpudp: simplify help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-25 16:35:44 +02:00
Denys Vlasenko
2ef4214dd9
less: add a TODO comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-25 15:23:52 +02:00
Denys Vlasenko
4e552a70ec
less: optionally query terminal size via "ESC [ 6 n". Closes bug 2659.
...
+7 bytes is not selected, +100 if selected.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-25 15:18:20 +02:00
Denys Vlasenko
be391e7596
libbb.h: do not use homegrown struct sysinfo.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-25 11:05:43 +02:00
Denys Vlasenko
f7f99900fd
android_defconfig: remove some extra cflags. untested
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-23 17:41:00 +02:00
Daniel Fandrich
0a428607a0
add defconfig files for Android, Cygwin and FreeBSD
...
Also added an example script to show how to compile BusyBox against
Android's bionic.
Signed-off-by: Daniel Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-19 08:10:05 +02:00
Denys Vlasenko
f2f9bc5932
dc: fix a case where we can run off malloced space
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-15 08:37:36 +02:00
Kevin Cernekee
43a668b2ee
cttyhack: fail gracefully if the device node is missing
...
Signed-off-by: Kevin Cernekee <cernekee@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-13 09:30:36 +02:00
Kevin Cernekee
064e99646a
cttyhack: check sysfs for the name of the active console
...
Signed-off-by: Kevin Cernekee <cernekee@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-13 09:26:58 +02:00
Denys Vlasenko
80856b37e8
fdisk: reinstate a short sleep between sync() and ioctl(BLKRRPART)
...
While at it, simplify code a bit.
function old new delta
write_table 201 198 -3
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-13 09:06:32 +02:00
Denys Vlasenko
a669eca3a2
libbb/lineedit: implement optional Ctrl-R history search
...
function old new delta
read_line_input 3433 3957 +524
load_string 77 90 +13
input_tab 1086 1069 -17
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 537/-17) Total: 520 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-11 07:36:59 +02:00
Lauri Kasanen
98f213ed79
bloat-o-meter: don't require that pythin is in /usr/bin.
...
Signed-off-by: Lauri Kasanen <curaga@operamail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-08 10:56:58 +02:00
Denys Vlasenko
4ee6487849
make configs/* files have _defconfig suffix
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-08 08:53:16 +02:00
Denys Vlasenko
14bd16ac56
more tweak for bionic
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-08 08:49:40 +02:00
Denys Vlasenko
acff3733ba
usleep: do not check for usleep error, it should never fail
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-08 08:37:57 +02:00
Denys Vlasenko
8f6ce094dc
a few tweaks for bionic
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-08 08:34:28 +02:00
Daniel Fandrich
126f2b2853
Support configuring Busybox from _defconfig files
...
The existing test .config files are moved to configs/ and renamed
to *_defconfig. 'make xyz_defconfig' will enable the
configuration in that specific file.
Signed-off-by: Daniel Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-08 07:59:16 +02:00
Denys Vlasenko
319b8bb355
hwclock: use locale-specific date output format
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-08 06:40:25 +02:00
Denys Vlasenko
db43d3d418
halt: perror_msg_and_die needs bb_ prefix
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-08 06:23:08 +02:00
Dan Fandrich
b5de0c12d6
typo fixes
...
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-08 05:47:49 +02:00
Denys Vlasenko
4dc35fb5b6
platform.h: tweaks for cygwin
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-08 04:41:38 +02:00
Denys Vlasenko
46465ecf72
hwclock: better help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-04 04:34:57 +02:00
Lauri Kasanen
e3f805ccc3
md5/shaNsum: make -c support a list of files
...
function old new delta
md5_sha1_sum_main 455 473 +18
Signed-off-by: Lauri Kasanen <curaga@operamail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-04 01:49:59 +02:00
Denys Vlasenko
066f399566
vi: tweak regex.h include
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-03 03:19:43 +02:00
Denys Vlasenko
104e01409d
halt/reboot: better message if /sbin/telinit is not found
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-03 01:46:02 +02:00
Dan Fandrich
75214cfe00
Use the _unlocked stdio macros only when they're all available
...
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-30 02:59:17 +02:00
Denys Vlasenko
0c4cf42c1e
libbb.h: tweak _unlocked hack
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-30 02:44:27 +02:00
Dan Fandrich
0e79e7bb42
Use the built-in getline on more systems that don't have it
...
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-30 02:11:49 +02:00
Timo Teras
0a5b310067
platform.c: provide getline implementation
...
Signed-off-by: Timo Teras <timo.teras@iki.fi >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-29 02:19:58 +02:00
Walter Harms
b9ba580917
vi: fix regex search, make it selectable in config
...
function old new delta
char_search 134 214 +80
find_pair 187 169 -18
mycmp 37 - -37
Signed-off-by: Walter Harms <wharms@bfs.de >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-27 02:59:37 +02:00
Denys Vlasenko
52f4fe9db6
id: correct getgroups usage
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-22 16:42:36 +02:00
Denys Vlasenko
d5ac9c88a7
groups: make it NOEXEC
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-22 04:17:49 +02:00
Denys Vlasenko
1e18a01fa2
ls: fix HAVE_STRVERSCMP check; add check for older uclibc versions
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-21 17:12:52 +02:00
Tito Ragusa
33092f1003
groups: new applet
...
Signed-off-by: Tito Ragusa <farmatito@tiscali.it >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-21 17:11:40 +02:00
Denys Vlasenko
561f9c8585
Add HAVE_STRVERSCMP, guard the only usage of strverscmp with #ifdef
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-21 16:38:29 +02:00
Dan Fandrich
040b5a2e29
setserial: added missing \n in help text
...
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-20 10:22:18 +02:00
Denys Vlasenko
06448912e6
libbb: use _unlocked variants of stdio I/O.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-20 10:06:28 +02:00
Timo Teras
adcabf3235
parse_config: use getline. BIG speedup with glibc (~40%).
...
function old new delta
config_read 559 604 +45
getline - 23 +23
config_close 29 49 +20
find_pair 169 187 +18
showmode 330 338 +8
hash_find 233 234 +1
builtin_umask 133 132 -1
lzo1x_optimize 1434 1429 -5
test_main 253 247 -6
buffer_fill_and_print 196 179 -17
create_J 1849 1826 -23
config_free_data 37 - -37
------------------------------------------------------------------------------
(add/remove: 3/1 grow/shrink: 5/5 up/down: 138/-89) Total: 26 bytes
Signed-off-by: Timo Teras <timo.teras@iki.fi >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-20 09:49:56 +02:00
Timo Teras
e12e0acb92
modprobe: use hash table. speeds up significantly if modprobe.dep is large
...
function old new delta
helper_get_module 106 157 +51
config_file_action 413 431 +18
modprobe_main 690 706 +16
do_modprobe 580 588 +8
add_probe 81 83 +2
load_modules_dep 192 190 -2
get_or_add_modentry 10 - -10
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 5/1 up/down: 95/-12) Total: 83 bytes
Signed-off-by: Timo Teras <timo.teras@iki.fi >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-20 09:38:13 +02:00
Denys Vlasenko
416e978ce8
diff: disable debug code; remove unsupported --dry-run from help text
...
function old new delta
packed_usage 28623 28602 -21
do_line 121 91 -30
patch_main 2086 1923 -163
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-214) Total: -214 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-19 01:40:31 +02:00
Denys Vlasenko
5331e382f7
libbb/read_cmdline: prepend {comm} if different from argv0. Closes 3835.
...
function old new delta
read_cmdline 114 233 +119
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-18 15:51:16 +02:00
Denys Vlasenko
12ac6287ee
procps: remove PSSCAN_STAT define, users were using it incorrectly
...
Also contains small cleanups ps.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-18 15:49:47 +02:00
Denys Vlasenko
da94760762
fix false positive in parse test
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-18 09:29:21 +02:00
Denys Vlasenko
3a649363aa
parse_config: make test applet easier to enable; fix its code
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-18 09:23:09 +02:00
Denys Vlasenko
a1a448347e
libbb: split bb_get_chunk_from_file and bb_get_chunk_with_continuation
...
This also moves bb_get_chunk_with_continuation into its sole user,
parse_config.c.
This allows to optimize both functions separately,
they need to be optimized for speed.
(this need was highlighted by slow modprobe caused in part by slow
bb_get_chunk_with_continuation in config parser).
function old new delta
bb_get_chunk_from_file 7 130 +123
config_read 457 558 +101
bb_get_chunk_with_continuation 194 - -194
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 2/0 up/down: 224/-194) Total: 30 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-17 03:37:43 +02:00
Bernhard Reutner-Fischer
901a53baec
inetd: check if RPC is available
...
It would be better to have FEATURE_HAVE_RPC be user-selectable and
depend mount.nfs and inetd-rpc on it instead of the current, backward,
way.
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2011-06-15 09:41:00 +02:00
Denys Vlasenko
8ea683d5df
ls: fix comment about -p (it's compatible now)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-13 02:24:18 +02:00
Denys Vlasenko
f194cc1f33
ls: make -v and -X actually work as intended
...
function old new delta
strverscmp - 236 +236
sortcmp 186 254 +68
static.result_type - 60 +60
static.next_state 12 16 +4
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-13 02:13:42 +02:00
Denys Vlasenko
b307eabf4d
iplink: tweak includes to work on android
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-12 17:15:16 +02:00
Wade Berrier
000ae5cefe
pkill/pgrep: support extended regular expressions
...
Done by enabling the REG_EXTENDED and REG_NOSUB regex flags,
which also increases compatibility with the procps versions.
Signed-off-by: Wade Berrier <wade_berrier@appsig.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-10 06:01:30 +02:00
Daniel Fandrich
6295d273ad
Replaced __u32 etc. with standard uint32_t style types
...
Signed-off-by: Daniel Fandrich <dfandrich@intrinsyc.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-10 05:34:05 +02:00
Dan Fandrich
f533ec8767
*: simplify Ethernet header includes
...
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-10 05:17:59 +02:00
Denys Vlasenko
d488f5e8db
build system: delete generated files on "make mrproper"
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-07 10:01:58 +02:00
Denys Vlasenko
972e046070
fbset: apply modelines. Closes 3823
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-06 04:21:39 +02:00
Denys Vlasenko
d7efa06b83
fix breakage caused by 'remove "Options:" string from help texts' commit
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-05 15:07:31 +02:00
Denys Vlasenko
66426760be
*: remove "Options:" string from help texts
...
function old new delta
packed_usage 28706 28623 -83
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-05 03:58:28 +02:00
Maksym Kryzhanovskyy
9f7780250c
iostat: code shrink
...
function old new delta
iostat_main 2048 2400 +352
is_partition 48 - -48
print_stats_dev_struct 350 - -350
Signed-off-by: Maksym Kryzhanovskyy <xmaks@email.cz >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-05 03:37:14 +02:00
Denys Vlasenko
5d3aaceb79
udhcpc: allow -O OPT take numeric params
...
function old new delta
udhcpc_main 2623 2654 +31
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-04 05:07:16 +02:00
Denys Vlasenko
fe86d6b636
appletlib.c: do not use PAGE_SIZE for malloc tweaking
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-03 21:39:42 +02:00
Dan Fandrich
71d7313625
platform.h: support for build under Android
...
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-03 20:51:58 +02:00
Dan Fandrich
2f5769151f
only compile obscure.c when needed
...
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-03 20:28:14 +02:00
Dan Fandrich
f3854f789c
replace nonstandard unsigned typedefs
...
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-03 20:25:17 +02:00
Denys Vlasenko
56a3b82e96
hush: better comment. No code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-01 12:47:07 +02:00
Denys Vlasenko
00ae989ee5
hush: fix a corner case of empty "do \n done" structure
...
The structure is:
while cmd; do
done
bash doesn't accept it at all. We were accepting it but execution
was buggy.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-31 17:35:45 +02:00
Bernhard Reutner-Fischer
14f55538f0
makedevs: fix help-text
...
pull
http://git.buildroot.net/buildroot/commit/?id=99ead3c2ead605d6504b9abad111778dc2a93ae6
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2011-05-30 23:00:47 +02:00
Denys Vlasenko
488dd70869
fix !ENABLE_FEATURE_GETOPT_LONG build. Closes 3775
...
When compiling with !ENABLE_FEATURE_GETOPT_LONG, busybox still tries
to include getopt.h which is not available; for example with uClibc
when !UCLIBC_HAS_GETOPT_LONG. getopt.h is only required
for the _long set of functions.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-29 04:24:52 +02:00
Denys Vlasenko
217a7f4bf9
fuser: fix inverted access() check. Closes 3799.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-29 02:03:38 +02:00
Peter Korsgaard
8dc6195c97
setconsole: open console for writing rather than reading
...
The console passed to TIOCCONS has to be writable, otherwise future
console writes will fail.
This presumably used to work, but in current kernels (see
drivers/tty/tty_io.c:redirected_tty_write) console writes are sent to
vfs_write(device), which checks if the device is writable. A quick look
in the linux git history doesn't show any recent changes to either tty_io
or vfs_write.
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-29 01:51:33 +02:00
Denys Vlasenko
abb0952e63
nmeter: trim help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-26 09:00:23 +02:00
Denys Vlasenko
aeab42e3f4
syslogd,klogd: better help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-25 11:58:56 +02:00
Maksym Kryzhanovskyy
eeed2306fc
fuser: code shrink
...
function old new delta
scan_proc_net_or_maps - 427 +427
scan_recursive - 380 +380
search_dev_inode 74 71 -3
add_pid 39 - -39
scan_link 46 - -46
scan_dir_links 76 - -76
scan_pid_maps 222 - -222
fuser_main 871 297 -574
------------------------------------------------------------------------------
(add/remove: 2/4 grow/shrink: 0/2 up/down: 807/-960) Total: -153 bytes
Signed-off-by: Maksym Kryzhanovskyy <xmaks@email.cz >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-23 03:39:48 +02:00
Denys Vlasenko
e6df7e261e
libbb.h: small reordering
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-23 03:39:08 +02:00
Denys Vlasenko
b24ef035bd
find: cater for libc w/o FNM_CASEFOLD
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-23 00:40:54 +02:00
Bogdan Harjoc
7948ecb505
find: implement -ipath
...
Signed-off-by: Bogdan Harjoc <harjoc@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-22 03:50:21 +02:00
Denys Vlasenko
d616ab6bbb
reformime: do not require \r\n
...
function old new delta
parse 958 1063 +105
packed_usage 28691 28712 +21
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-22 03:46:33 +02:00
Denys Vlasenko
9b90d9b503
adduser: better logic for choosing addgroup -g/--gid
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-21 21:32:40 +02:00
Denys Vlasenko
569e930768
adduser: prefer to call addgroup --gid, not non-std addgroup -g
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-21 19:57:58 +02:00
Denys Vlasenko
b808614785
od: code shrink
...
function old new delta
od_main 2147 2132 -15
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-21 19:15:55 +02:00
Denys Vlasenko
d373355bf8
od: another fix for --strings
...
function old new delta
od_main 2139 2147 +8
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-21 18:47:51 +02:00
Denys Vlasenko
9d96e274ce
od: fix -S NUM to not print chars >0x80
...
function old new delta
write_block 433 431 -2
print_ascii 217 215 -2
check_and_close 104 96 -8
od_main 2164 2139 -25
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-21 18:38:59 +02:00
Denys Vlasenko
3ef344be91
od: code shrink
...
function old new delta
exit_code - 1 +1
open_next_file 73 72 -1
limit_bytes_to_format 1 - -1
ioerror 1 - -1
flag_pseudo_start 1 - -1
flag_dump_strings 1 - -1
od_main 2275 2164 -111
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-21 18:38:40 +02:00
Denys Vlasenko
5c10fa5c24
od: code shrink, fix "od --traditional FILE"
...
function old new delta
parse_old_offset 107 125 +18
packed_usage 28715 28691 -24
od_main 2312 2275 -37
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-21 17:43:06 +02:00
Alexey Fomenko
232ebaa568
lineedit: fix rare SEGV; mark a few FIXMEs
...
Signed-off-by: Alexey Fomenko <ext-alexey.fomenko@nokia.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-20 04:26:29 +02:00
Cristian Ionescu-Idbohrn
ea137aa931
warning removal
...
Signed-off-by: Cristian Ionescu-Idbohrn <cii@axis.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-20 03:52:36 +02:00
Denys Vlasenko
9e933d9bfc
tail: optimize "tail -c HUGENUM REGULAR_FILE". Closes 3763.
...
function old new delta
tail_main 1541 1547 +6
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-20 00:30:04 +02:00
Denys Vlasenko
24b71fd894
top: display sort indicator in memory display
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-18 12:11:19 +02:00
Denys Vlasenko
351fec332a
busybox.conf: code shrink
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-16 14:30:26 +02:00
Denys Vlasenko
d83aff1aed
busybox.conf: USER.GROUP is _optional_
...
function old new delta
main 785 809 +24
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-16 13:53:19 +02:00
Denys Vlasenko
3770b6b061
main: make busybox.conf mode handling less obscure
...
function old new delta
static.mode_mask - 20 +20
main 782 785 +3
static.mode_chars 15 13 -2
run_applet_no_and_exit 450 441 -9
mode_mask 24 - -24
------------------------------------------------------------------------------
(add/remove: 2/2 grow/shrink: 1/2 up/down: 41/-53) Total: -12 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-16 13:19:25 +02:00
Denys Vlasenko
9be4702a30
main: free suid_config list after use
...
function old new delta
run_applet_no_and_exit 438 450 +12
ifupdown_main 2147 2149 +2
writeFileToTarball 1325 1326 +1
pidof_main 244 245 +1
last_main 896 897 +1
grep_main 779 780 +1
find_list_entry2 121 122 +1
tar_main 835 833 -2
llist_unlink 28 26 -2
llist_rev 23 21 -2
main 791 782 -9
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 7/4 up/down: 19/-15) Total: 4 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-16 12:21:31 +02:00
Cristian Ionescu-Idbohrn
9a296fbeab
vi.c: remove warning: variable 'sp' set but not used
...
Signed-off-by: Cristian Ionescu-Idbohrn <cii@axis.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-16 03:53:43 +02:00
Cristian Ionescu-Idbohrn
662972a77a
The [-Wunused-but-set-variable] warnings
...
networking/ntpd.c:1748:19: warning: variable 'version' set but not used
Signed-off-by: Cristian Ionescu-Idbohrn <cii@axis.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-16 03:53:00 +02:00
Denys Vlasenko
6afc6775e8
dc: do not advertise ops disabled in .config
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-16 00:13:18 +02:00
Denys Vlasenko
4566e172eb
simplify parsing of /etc/busybox.conf
...
function old new delta
parse_config_file 799 667 -132
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-16 00:01:08 +02:00
Denys Vlasenko
e0238f852b
tweak config help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-14 15:23:55 +02:00
Denys Vlasenko
29f9b7268a
hush: fix misparsing of "... do eval a= ...". Closes 3721
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-14 11:27:36 +02:00
Denys Vlasenko
eafc558f94
top: better indicator of selected field in mem view
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-14 01:32:09 +02:00
Denys Vlasenko
60a9414cad
fix "variable 'foo' set but not used" warnings
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-13 20:57:01 +02:00
Denys Vlasenko
8dd29da2c6
ls: code shrink
...
function old new delta
sort_and_display_files - 427 +427
scan_and_display_dirs_recur 497 488 -9
ls_main 765 735 -30
display_files 422 - -422
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 0/2 up/down: 427/-461) Total: -34 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-13 17:55:08 +02:00
Denys Vlasenko
4029e21b37
ls: reorder and rename functions. No code changes
...
function old new delta
display_single - 931 +931
scan_and_display_dirs_recur - 497 +497
display_files - 422 +422
showfiles 422 - -422
showdirs 497 - -497
list_single 931 - -931
------------------------------------------------------------------------------
(add/remove: 3/3 grow/shrink: 0/0 up/down: 1850/-1850) Total: 0 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-13 17:28:46 +02:00
Denys Vlasenko
2a81639534
ls: reduce memory consumption and speed up (don't do redundant [l]stat)
...
function old new delta
my_stat 110 278 +168
splitdnarray 120 118 -2
ls_main 769 765 -4
list_single 961 931 -30
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/3 up/down: 168/-36) Total: 132 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-13 17:28:09 +02:00
Denys Vlasenko
66ca241dca
ls: avoid forward declaration. No code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-13 17:27:36 +02:00
Denys Vlasenko
d27ac299eb
ls: code shrink
...
function old new delta
list_single 990 961 -29
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-13 17:27:15 +02:00
Denys Vlasenko
3a240212d9
passwd: shorter help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-13 03:31:45 +02:00
Denys Vlasenko
12a432715f
adduser: safe username passing to passwd/addgroup
...
passwd: support creating SHA passwords
random code shrink
function old new delta
crypt_make_pw_salt - 87 +87
adduser_main 883 904 +21
...
crypt_make_salt 99 89 -10
chpasswd_main 329 312 -17
packed_usage 28731 28691 -40
passwd_main 1070 1000 -70
cryptpw_main 310 224 -86
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 4/12 up/down: 154/-288) Total: -134 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-13 03:19:01 +02:00
Denys Vlasenko
0806e401d6
hush: install signal handlers with filled sigmask
...
function old new delta
install_sighandler - 39 +39
hush_main 1001 1031 +30
builtin_trap 386 392 +6
install_sighandlers 121 123 +2
switch_off_special_sigs 87 86 -1
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 3/1 up/down: 77/-1) Total: 76 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-12 23:06:20 +02:00
Denys Vlasenko
b1ab283f0b
inetd: add FIXMEs
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-12 23:05:27 +02:00
Denys Vlasenko
89f5bfd6c3
libbb.h: use inlined sigfillset, sigemptyset, sigisemptyset on uclibc
...
text data bss dec hex filename
875879 493 7584 883956 d7cf4 busybox_old
875879 493 7584 883956 d7cf4 busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-12 23:03:18 +02:00
Denys Vlasenko
279a7ac04e
ls: fix help text: -w N is optional
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-12 18:44:51 +02:00
Denys Vlasenko
4ad95e6b0e
ls: fix -p help text, improve comments and define names
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-12 18:40:59 +02:00
Denys Vlasenko
75e77deab1
hush: fixes and small shrink for HUSH_JOB!=y
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-12 13:12:47 +02:00
Denys Vlasenko
ebc1ee2e2a
hush: remove one sigprocmask from exit path
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-12 10:59:18 +02:00
Denys Vlasenko
0c40a731e3
hush: add forgotten {} in multi-statement if.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-12 09:50:12 +02:00
Denys Vlasenko
0a8971d112
trim help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-12 03:14:12 +02:00
Denys Vlasenko
f58f705c58
hush: fix login shell's signal handling; add -l option so that it's easier to test
...
function old new delta
hush_main 958 1001 +43
install_special_sighandlers 47 52 +5
packed_usage 28752 28741 -11
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 48/-11) Total: 37 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-12 02:10:33 +02:00
Denys Vlasenko
9d6cbafe72
hush: replace signal handling machinery
...
With new version of signal handling, read builtin should be less buggy
wrt signals.
function old new delta
install_sighandlers - 121 +121
switch_off_special_sigs - 84 +84
pick_sighandler - 58 +58
install_special_sighandlers - 47 +47
builtin_wait 284 319 +35
record_pending_signo - 21 +21
execvp_or_die 43 48 +5
file_get 290 288 -2
run_list 1004 998 -6
static.zero_timespec 8 - -8
sigprocmask_set 14 - -14
sigwaitinfo 23 - -23
record_signal 23 - -23
__GI_sigwaitinfo 23 - -23
sigtimedwait 25 - -25
builtin_trap 417 392 -25
__GI_sigtimedwait 25 - -25
hush_main 1003 965 -38
check_and_run_traps 263 217 -46
__rt_sigtimedwait 52 - -52
reset_traps_to_defaults 213 126 -87
init_sigmasks 198 - -198
builtin_read 536 197 -339
------------------------------------------------------------------------------
(add/remove: 5/10 grow/shrink: 2/7 up/down: 371/-934) Total: -563 bytes
text data bss dec hex filename
903075 936 17736 921747 e1093 busybox_old
902547 936 17736 921219 e0e83 busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-11 23:56:11 +02:00
Denys Vlasenko
10c0131a8a
hush: use SA_RESTARTed signal handlers across read.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-11 11:49:21 +02:00
Denys Vlasenko
12bc152b31
fbset: abort on unknown options. closes 3121
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-09 03:57:27 +02:00
Steve Iribarne
ed607a87e0
pam link error with SHARED_BUSYBOX and LIBBUSYBOX enabled
...
Signed-off-by: Steve Iribarne <siribarne@grid-net.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-09 01:42:12 +02:00
Denys Vlasenko
bcf1fa80f3
hush: add tests for interrupting read
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-09 01:05:33 +02:00
Denys Vlasenko
54e9e1217c
hush: code shrink
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-09 00:52:15 +02:00
Denys Vlasenko
80542bad2f
hush: make read builtin interruptible.
...
function old new delta
builtin_read 185 471 +286
check_and_run_traps 200 262 +62
nonblock_immune_read 73 119 +46
sigismember - 44 +44
record_signal - 21 +21
sigisemptyset - 16 +16
...
------------------------------------------------------------------------------
(add/remove: 5/0 grow/shrink: 7/5 up/down: 483/-46) Total: 437 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-08 21:23:43 +02:00
Denys Vlasenko
80c5b6893d
libbb: nonblock_safe_read->nonblock_immune_read, remove unused param of xmalloc_reads
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-08 21:21:10 +02:00
Denys Vlasenko
b8709032a3
hush: fix incorrect PS2 dispaly and trap handling while reading command
...
The fix affects only !ENABLE_FEATURE_EDITING configuration
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-08 21:20:01 +02:00
Maksym Kryzhanovskyy
29c54aa9f9
iostat: code shrink ~0.5k
...
Signed-off-by: Maksym Kryzhanovskyy <xmaks@email.cz >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-07 04:37:22 +02:00
Denys Vlasenko
c3f8db99bf
preparatory patch
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-07 04:36:46 +02:00
Denys Vlasenko
4d6059eedc
top: another scripting improvement
...
function old new delta
handle_input 492 493 +1
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-06 20:47:54 +02:00
Denys Vlasenko
7d9a1d25e5
top: make it possible to feed commands via pipe
...
function old new delta
handle_input - 492 +492
mult_lvl_cmp 38 49 +11
packed_usage 28247 28257 +10
top_main 1345 928 -417
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 2/1 up/down: 513/-417) Total: 96 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-06 20:34:04 +02:00
Denys Vlasenko
a348b4557d
traceroute: properly reduce poll timeout
...
This removes the problem where during the time we wait to declare
a target as unresponsive we receive an unrelated ICMP packet.
If there is enough traffic, this can make traceroute hang as
it never declares the target as unresponsive.
function old new delta
common_traceroute_main 4196 4261 +65
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-05 02:31:30 +02:00
Pascal Bellard
d3e4be3ccb
sed: shrink by 17 bytes
...
Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-05 00:26:37 +02:00
Denys Vlasenko
14b162f9ab
tweak examples/udhcp/udhcpd.conf
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-04 21:17:23 +02:00
Denys Vlasenko
9180c6045e
tar: store negative mtime as 0; pack very large files using base-256 encoding
...
function old new delta
writeTarHeader 841 979 +138
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-04 21:14:12 +02:00
Bernhard Reutner-Fischer
882062915d
mount: for NFS use tcp per default rather than udp
...
nfs-utils's mount.nfs uses TCP per default unless explicitly asked for
otherwise. This is also the expected behaviour for NFSv4, so ok there,
too.
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2011-05-04 19:03:30 +02:00
Denys Vlasenko
7945808c87
udhcp: fix some default values from "" to NULL
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-03 16:46:47 +02:00
Denys Vlasenko
6a0abcc02f
sed: support \r in s command
...
function old new delta
copy_parsing_escapes 65 91 +26
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-03 00:52:22 +02:00
Denys Vlasenko
52d8370836
sed: code shrink
...
text data bss dec hex filename
876354 493 7584 884431 d7ecf busybox_old
876323 493 7584 884400 d7eb0 busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-03 00:51:43 +02:00
Wolfgang Denk
91b77c3953
Compile options: default to -O2 when -Os is not available
...
Recent versions of GCC for PowerPC systems suffer from some compiler
bugs which prevent the use of "--enable-target-optspace" in their
configuration, which makes the compiler option "-Os" unavailable;
for reference see
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43810
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48278
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45053
In the result, BusyBox will be compiled without any optimization
options, which causes a huge binary (1.8 MiB for default configuration
on PPC, built with gcc 54.51 from the Yocto / Poky / OpenEmbedded tool
chains). This commit changes behaviour so "-O2" gets used as fallback
when "-Os" is not available. This reduces the image size in above
test to 1.3 MiB. This is still 10...15% more then what we get with
"-Os", but much better than using no optimization at all.
Signed-off-by: Wolfgang Denk <wd@denx.de >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-02 02:50:46 +02:00
Denys Vlasenko
90ea1e3454
setserial: small fix
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-02 02:47:25 +02:00
Cristian Ionescu-Idbohrn
fcbc641fe3
get rid of several "variable 'x' set but not used" warnings
...
Signed-off-by: Cristian Ionescu-Idbohrn <cii@axis.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-01 14:43:53 +02:00
Marek Bečka
2cfb57647b
setserial: new applet
...
text data bss dec hex filename
873605 493 7584 881682 d7412 busybox_old
876354 493 7584 884431 d7ecf busybox_unstripped
Signed-off-by: Marek Bečka <yuen@klacno.sk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-01 14:38:31 +02:00
Marek Polacek
2a6d5988b4
mpstat.c: remove unused line
...
Signed-off-by: Marek Polacek <mpolacek@redhat.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-30 22:09:01 +02:00
Lauri Kasanen
9cfcc4d7a2
fdisk: backport disk check from util-linux
...
With the digit check devices like mmcblk0 were skipped,
but now with 0 allowed we're seeing a ton of loop devices listed
(loop0, loop10, loop20...) as well as ramzswap0,
all which should not be shown in fdisk -l.
function old new delta
list_devs_in_proc_partititons 157 238 +81
Signed-off-by: Lauri Kasanen <curaga@operamail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-30 21:31:05 +02:00
Denys Vlasenko
d1993f180c
rename miscutils/ubi_attach_detach.c -> miscutils/ubi_tools.c
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-26 04:32:05 +02:00
Denys Vlasenko
0bfb9c2cf0
add help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-26 04:31:03 +02:00
Reuben Dowle
a610842322
ubiupdatevol: new applet
...
ubi_tools_main 658 1046 +388
packed_usage 28274 28304 +30
applet_names 2396 2409 +13
applet_main 1396 1400 +4
applet_nameofs 698 700 +2
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 5/0 up/down: 437/0) Total: 437 bytes
Signed-off-by: Reuben Dowle <Reuben.Dowle@navico.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-26 04:27:48 +02:00
Reuben Dowle
ab940af5c0
Fix ubirsvol usage information
...
The usage information for the ubirsvol applet is incorrect. This fixes the mistake.
Signed-off-by: Reuben Dowle <Reuben.Dowle@navico.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-26 03:43:25 +02:00
Nigel Hathaway
fb6b173ff7
udhcp: add FEATURE_UDHCP_8021Q option
...
function old new delta
dhcp_option_strings 217 237 +20
dhcp_optflags 64 68 +4
Signed-off-by: Nigel Hathaway <Nigel.Hathaway@ubiquisys.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-26 02:50:00 +02:00
Nigel Hathaway
c37d4c67e8
dhcpc: export unrecognized options in "optNN=XXXXXXXXX" form
...
function old new delta
udhcp_run_script 609 818 +209
Signed-off-by: Nigel Hathaway <Nigel.Hathaway@ubiquisys.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-26 02:38:29 +02:00
Denys Vlasenko
b83c970412
build fixes for scripts/kconfig
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-18 01:19:59 +02:00
Denys Vlasenko
cfbd31a7fb
add include <sys/socket.h>
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-17 23:18:15 +02:00
Denys Vlasenko
47061b4e9b
straighten out dprintf/fdprintf mess; remove old "define lchown chown"
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-17 23:14:19 +02:00
Denys Vlasenko
0288b27ad8
small fixes atop syslog config patch
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-16 20:15:14 +02:00
Ian Wienand
89b3cbaa97
ash: clear sa_flags always
...
Signed-off-by: Ian Wienand <ianw@vmware.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-16 20:05:14 +02:00
Denys Vlasenko
08caf0900d
fix another nonportable grep usage in scripts
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-16 19:45:33 +02:00
Sergey Naumov
e9c8bed4d3
syslogd: small fix to config patch
...
Signed-off-by: Sergey Naumov <sknaumov@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-16 19:36:15 +02:00
Denys Vlasenko
d506897b4e
wget: add a note about bug 3625
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-16 19:31:08 +02:00
Denys Vlasenko
43a3d50e14
md5/sha1sum: better fix for small resource leak
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-16 18:56:36 +02:00
Alexey Fomenko
88a8384388
md5/sha1sum: fix small resource leak
...
Signed-off-by: Alexey Fomenko <ext-alexey.fomenko@nokia.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-16 18:49:39 +02:00
Denys Vlasenko
2514302658
Use net/ethernet.h instead of linux/if_ether.h in more cases. Closes 3619
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-16 18:31:53 +02:00
Denys Vlasenko
8c498b6c6e
make FDISK_SUPPORT_LARGE_DISKS redundant when LFS=y
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-16 18:07:35 +02:00
Denys Vlasenko
c3dadba699
gen_build_files.sh: do not use "sed --" for now
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-16 17:59:34 +02:00
Marek Polacek
b0b8884009
Fix double words in comments. No code changes
...
Signed-off-by: Marek Polacek <mpolacek@redhat.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-16 17:33:43 +02:00
Denys Vlasenko
88d3cfdb75
add forgotten #include
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-11 05:24:58 +02:00
Denys Vlasenko
532e961f7e
tftpd: add -l "log to syslog" option. Needed for inetd mode
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-11 05:12:53 +02:00
Denys Vlasenko
24ec952f14
tftp: fix progress bar for large (>32M) files. Closes 3499
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-11 04:29:39 +02:00
Denys Vlasenko
c13ee8c0f3
basename,dirname,freeramdisk,rx,raidautorun,runsv,chvt: skip "--" argument
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-11 03:58:30 +02:00
Pascal Bellard
6161cdbb83
conspy: fix ESC key lost
...
Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-11 03:52:53 +02:00
Pere Orga
5bc8c005a8
move remaining help text from include/usage.src.h
...
Signed-off-by: Pere Orga <gotrunks@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-11 03:29:49 +02:00
Sergey Naumov
73ef15cf38
syslogd: optional support for /etc/syslog.conf
...
function old new delta
syslogd_main 1241 1870 +629
timestamp_and_log 301 540 +239
find_by_name - 37 +37
find_by_val - 22 +22
init_data 64 68 +4
log_locally 603 413 -190
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 3/1 up/down: 931/-190) Total: 741 bytes
Signed-off-by: Sergey Naumov <sknaumov@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-10 07:34:27 +02:00
Denys Vlasenko
d277f55ebd
http: document index.cgi usage. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-10 03:08:22 +02:00
Denys Vlasenko
ca18311d0a
libbb: make set_nport accept pointer to sockaddr, not to len_and_sockaddr.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-07 17:52:20 +02:00
Denys Vlasenko
8e23fafade
ntpd: decrease ntpd -q "no response" timeout to 10 sec
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-07 01:45:20 +02:00
Denys Vlasenko
c0644cac0d
applets/install.sh: afer quoting of variables
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-05 02:37:15 +02:00
Tito Ragusa
9eb7bfd4d4
passwd,chpasswd: reset password in /etc/passwd to "x" if /etc/shadow was updated
...
Signed-off-by: Tito Ragusa <farmatito@tiscali.it >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-05 00:18:33 +02:00
Denys Vlasenko
12140e607c
fix install.sh
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-04 03:53:23 +02:00
Denys Vlasenko
e32d05b708
ash,hush: add ulimit -e -r (RLIMIT_NICE, RLIMIT_RTPRIO)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-04 02:12:14 +02:00
Denys Vlasenko
929f63e57c
start-stop-daemon: fix "-K --test --pidfile PIDFILE" exitcode
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-04 02:03:35 +02:00
Pere Orga
6a3e01d5a9
move help text from include/usage.src.h to debianutils/*.c e2fsprogs/*.c editors/*.c loginutils/*.c mailutils/*.c
...
Signed-off-by: Pere Orga <gotrunks@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-03 01:33:55 +02:00
Denys Vlasenko
fa9126e689
ls: better help text for -a and -A
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-03 01:27:49 +02:00
Pere Orga
34425389e0
move help text from include/usage.src.h to coreutils/*.c
...
Signed-off-by: Pere Orga <gotrunks@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-31 14:43:25 +02:00
Denys Vlasenko
e3d8d077b7
small fix for HISTFILESIZE
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-31 14:39:38 +02:00
Denys Vlasenko
2c4de5b045
ash,hush: optional support for $HISTFILESIZE.
...
Based on patch from Alexey Fomenko (ext-alexey.fomenko AT nokia.com)
function old new delta
size_from_HISTFILESIZE - 44 +44
hush_main 998 1025 +27
ash_main 1348 1374 +26
read_line_input 3361 3372 +11
new_line_input_t 17 24 +7
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-31 13:16:52 +02:00
Denys Vlasenko
a439fa93f6
hush: remove outdated comments
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-30 19:11:46 +02:00
Denys Vlasenko
cecbc98611
hush: fix source1.tests
...
function old new delta
parse_and_run_stream 95 139 +44
static_get 22 25 +3
file_get 260 263 +3
builtin_umask 133 132 -1
parse_stream 2442 2425 -17
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/2 up/down: 50/-18) Total: 32 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-30 18:54:52 +02:00
Nuno Lucas
0e89fd9c39
fbsplash: Add support for 24 and 32 bit color depth
...
function old new delta
fb_drawprogressbar 372 447 +75
fb_pixel_value - 50 +50
fb_write_pixel - 47 +47
fbsplash_main 889 920 +31
fb_drawfullrectangle 101 131 +30
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 3/0 up/down: 233/0) Total: 233 bytes
Signed-off-by: Nuno Lucas <ntlucas@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-28 15:30:59 +02:00
Pere Orga
55068c478e
move help text from include/usage.src.h to console-tools/*.c
...
Signed-off-by: Pere Orga <gotrunks@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-28 02:51:01 +02:00
Denys Vlasenko
6ec1510f71
applet_tables: do not include libbb.h, that header ir for target builds
...
...and applets/applet_tables.c is built on *host*.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-28 01:23:38 +02:00
Denys Vlasenko
4a2aecb53a
mesg: operate on stdin, not on stderr (compat)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-28 00:59:16 +02:00
Peter Korsgaard
95755181b8
httpd: don't send error messages with gzip encoding
...
If CONFIG_FEATURE_HTTPD_GZIP is enabled and request contained
'Accept-Encoding: gzip', then errors were sent with 'Content-Encoding: gzip'
even though they aren't.
Fix it by clearing content_gzip before sending the headers.
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-27 23:26:33 +02:00
Roman Borisov
95f5c52e6f
diff: optimize diffing of files with the same metadata
...
Signed-off-by: Roman Borisov <ext-roman.borisov@nokia.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-27 23:24:09 +02:00
Pere Orga
1f4447b2d4
move help text from include/usage.src.h to archival/*.c
...
Signed-off-by: Pere Orga <gotrunks@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-27 22:40:30 +02:00
Vitaly Magerya
700fbc308d
wget: --post-data=STR should not encode STR, should send it verbatim
...
This matches GNU Wget 1.12 behavior.
Signed-off-by: Vitaly Magerya <vmagerya@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-27 22:33:13 +02:00
Denys Vlasenko
a9e5c43b8b
pstree: fix "warning: 'handle_thread' defined but not used"
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-27 16:15:02 +02:00
Denys Vlasenko
353680aa46
lineedit: fixes for CONFIG_UNICODE_USING_LOCALE=y
...
function old new delta
load_string 45 91 +46
save_string 40 82 +42
reinit_unicode 34 61 +27
BB_PUTCHAR 97 120 +23
init_unicode 17 37 +20
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 5/0 up/down: 158/0) Total: 158 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-27 01:18:07 +01:00
Roman Borisov
19311bfa7b
mount: add --rbind option support
...
Signed-off-by: Roman Borisov <ext-roman.borisov@nokia.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-26 23:12:12 +01:00
Roman Borisov
d3679d2491
mount: rprivate option fix
...
fixed the mistake in writing for -make-rprivate option
Signed-off-by: Roman Borisov <ext-roman.borisov@nokia.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-26 23:02:05 +01:00
Denys Vlasenko
c162bcdcd1
hush: document a bug about aborting on sourced file error when non-interactive
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-24 05:38:51 +01:00
Denys Vlasenko
3eab24e64a
hush: make parse errors in sourced file non-fatal in interactive script
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-24 05:25:59 +01:00
Denys Vlasenko
68d5cb5dac
hush: fix a case where return in sourced file has no effect
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-24 02:50:03 +01:00
Denys Vlasenko
20704f0662
ash,hush: recheck LANG before every line input
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-23 17:59:27 +01:00
Vitaly Magerya
7f4b769c42
don't call freeaddinfo(NULL)
...
Signed-off-by: Vitaly Magerya <vmagerya@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-22 20:14:26 +01:00
Ryan Phillips
cf9074b54b
login: set PAM RHOST
...
Signed-off-by: Ryan Phillips <ryan@trolocsis.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-22 18:27:21 +01:00
Alexey Soloviev
f922154f65
dd: free allocated memory if CLEANUP enabled
...
Signed-off-by: Alexey Soloviev <EXT-Alexey.Soloviev@nokia.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-22 17:42:29 +01:00
Denys Vlasenko
beea5a70c3
mesg: make group/all writability configurable
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-22 06:54:36 +01:00
Denys Vlasenko
b0e8ced358
ln: explain why we use xstrdup
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-21 12:36:35 +01:00
Denys Vlasenko
32176ccec4
init: fix a case where execv's 1st arg was wrong
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-21 05:07:43 +01:00
Denys Vlasenko
e2e55b0eb5
wget: move help text to .c file
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-21 00:37:05 +01:00
Denys Vlasenko
625f218d43
wget: fix fname_out usage wrt redirects
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-21 00:29:37 +01:00
Denys Vlasenko
c2fda8642d
mount: add a test for bind+rshared
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-14 06:28:28 +01:00
Pere Orga
cf8b55c40b
pwdx: new applet
...
function old new delta
pwdx_main - 197 +197
packed_usage 28237 28261 +24
applet_names 2391 2396 +5
applet_main 1392 1396 +4
applet_nameofs 696 698 +2
applet_install_loc 174 175 +1
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 5/0 up/down: 233/0) Total: 233 bytes
Signed-off-by: Pere Orga <gotrunks@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-12 18:13:15 +01:00
Denys Vlasenko
5c942713b7
busybox: fail if --install is not given an absolute path
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-12 06:08:28 +01:00
Denys Vlasenko
9ac5596a51
udhcpc: emit "correct" secs field
...
In theory, sending secs set to constant zero should be ok too.
But some bleeping servers can actually be configured to answer ONLY
if secs is bigger than a preset value (!!)
http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man8/bootpd.8.html
grep for "reply_threshold_seconds"
function old new delta
udhcpc_main 2573 2623 +50
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-12 05:37:54 +01:00
Denys Vlasenko
ea684c6aaf
ls: fix handling of symlinks by option -1
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-12 03:12:36 +01:00
Denys Vlasenko
8345b2bd5e
libbb: make warning go away
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-12 02:19:50 +01:00
Pascal Bellard
48b6f59e19
chsum: fix
...
Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-11 23:40:27 +01:00
Denys Vlasenko
7d4e7a27af
s/FAIL_DELAY/LOGIN_FAIL_DELAY/
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-08 21:07:05 +01:00
Denys Vlasenko
f8416dc6f6
forgot to add libbb/get_shell_name.c
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-08 21:02:42 +01:00
Denys Vlasenko
681efe20d3
use user's shell instead of hardwired "/bin/sh" (android needs this)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-08 21:00:36 +01:00
Denys Vlasenko
86cf0364bd
printenv: fix environ == NULL segfault
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-08 12:44:02 +01:00
Denys Vlasenko
6b6af53426
ash/hush: shrink help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-08 10:24:17 +01:00
Denys Vlasenko
115c35d68e
ftpd: better usage text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-08 03:01:10 +01:00
Pere Orga
9283d7c5c2
kill: fix infinite loop when passed PIDs are not valid numbers
...
Signed-off-by: Pere Orga <gotrunks@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-07 17:00:25 +01:00
Denys Vlasenko
976ec23da5
remove stray empty line
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-07 13:12:01 +01:00
Denys Vlasenko
b0b834342f
ash/hush: provide help text
...
$ ./busybox ash --help
BusyBox v1.19.0.git (2011-03-07 11:25:29 CET) multi-call binary.
Usage: ash [-/+OPTCHARS] [-/+o OPTNAME]... [-c 'SCRIPT' [ARG0 [ARGS]] / SCRIPT_FILE [ARGS]]
Unix shell interpreter
$ ./busybox hush --help
BusyBox v1.19.0.git (2011-03-07 11:25:29 CET) multi-call binary.
Usage: hush [-nx] [-c 'SCRIPT' [ARG0 [ARGS]] / SCRIPT_FILE [ARGS]]
Unix shell interpreter
function old new delta
packed_usage 28163 28212 +49
setcmd 85 78 -7
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 49/-7) Total: 42 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-07 12:34:59 +01:00
Denys Vlasenko
aefe1c260e
ash: fix execution of shell scripts without shebang
...
We were assuming #!/bin/sh, whereas we had to simply re-enter ash.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-07 12:02:40 +01:00
Denys Vlasenko
8b6b472f4e
klogd: fix the problem of delayed handling of ^C and SIGTERM
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-07 10:57:26 +01:00
Keith Young
e6bb8d339f
udhcpc: add -B option
...
function old new delta
udhcpc_longopts - 262 +262
add_client_options 218 239 +21
packed_usage 28149 28163 +14
static.udhcpc_longopts 250 - -250
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 2/0 up/down: 297/-250) Total: 47 bytes
Signed-off-by: Keith Young <stripydog7@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-07 03:19:42 +01:00
Denys Vlasenko
82e785cf8c
more: fix tabs handling
...
function old new delta
more_main 837 829 -8
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-07 02:01:52 +01:00
Denys Vlasenko
bff5f3f2b4
fix bit rot in scripts/Makefile.IMA #2
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-06 23:48:24 +01:00
Denys Vlasenko
726ebbaa9f
fix bit rot in scripts/Makefile.IMA
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-06 23:09:42 +01:00
Bjørn Forsman
102b8bde3b
.gitignore: add missing ignores
...
Ignore output files created by "make defconfig; make".
Signed-off-by: Bjørn Forsman <bjorn.forsman@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-06 19:54:15 +01:00
Phil Sutter
293a8f250d
nameif: add matching by phy_address=NUM; extend help text
...
function old new delta
nameif_main 618 686 +68
packed_usage 28095 28149 +54
prepend_new_eth_table 295 338 +43
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 165/0) Total: 165 bytes
Signed-off-by: Phil Sutter <phil.sutter@viprinet.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-06 19:42:51 +01:00
Phil Sutter
2adc0e6d8b
nameif: fix parsing of /proc/net/dev; small code shrink
...
function old new delta
nameif_main 628 618 -10
Signed-off-by: Phil Sutter <phil.sutter@viprinet.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-06 19:15:30 +01:00
Denys Vlasenko
bd74e3d8be
libbb/login/su: do not sanitize shell name twice
...
function old new delta
setup_environment 191 205 +14
login_main 1002 987 -15
su_main 474 458 -16
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/2 up/down: 14/-31) Total: -17 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-06 18:49:40 +01:00
Alexey Soloviev
41478ade4f
tr: free allocated memory in tr if CLEANUP enabled
...
Signed-off-by: Alexey Soloviev <EXT-Alexey.Soloviev@nokia.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-06 18:21:07 +01:00
Denys Vlasenko
4a2a86d5e7
improve --install operation in chroot jails
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-06 06:02:31 +01:00
Denys Vlasenko
7cfe6ea99e
xargs: support --no-run-if-empty (synonym to -r)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-03 09:51:57 +01:00
Alexey Fomenko
1df0af7670
don't leak malloced variables in the loop; remove double alloc
...
Signed-off-by: Alexey Fomenko <ext-alexey.fomenko@nokia.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-02 04:13:21 +01:00
Denys Vlasenko
940c7206c2
convert "do {...} while (1);" -> "while (1) {...}"
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-02 04:07:14 +01:00
Alexey Fomenko
708dd4c986
add missing fclose's
...
Signed-off-by: Alexey Fomenko <ext-alexey.fomenko@nokia.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-02 04:01:24 +01:00
Denys Vlasenko
b80acf58f1
tar: skip leading / and handle names like abc/..////def -> def (not ///def)
...
function old new delta
strip_unsafe_prefix - 105 +105
writeFileToTarball 557 520 -37
get_header_tar 1545 1462 -83
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-02 01:21:02 +01:00
Alexey Fomenko
ea6116ee59
libbb: remove dead code in getopt32. -7 bytes
...
Signed-off-by: Alexey Fomenko <ext-alexey.fomenko@nokia.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-01 19:25:49 +01:00
Denys Vlasenko
5e29e26388
tar: on extract, everything up to and including last ".." is stripped
...
function old new delta
get_header_tar 1493 1545 +52
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-01 17:21:07 +01:00
Denys Vlasenko
7d65abea09
libbb: make user/group name cache strings longer (~27 chars)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-01 16:27:13 +01:00
Denys Vlasenko
3b28dae17d
ls: widen -s (1k blocks) column from 4 to 6
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-01 05:37:41 +01:00
Denys Vlasenko
26d11b8133
ls: -g implies -l
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-28 12:38:08 +01:00
Denys Vlasenko
9f368e38fb
ls: fix bits for -T, -w and --color; make -n imply -l; fix comments
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-28 12:16:10 +01:00
Denys Vlasenko
c6450c974f
mount: strip multiple trailing slashes, not just one
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-28 11:09:49 +01:00
Roman Borisov
c8dc01dc80
mount: update /etc/mtab properly on mount --move
...
Signed-off-by: Roman Borisov <ext-roman.borisov@nokia.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-28 05:06:01 +01:00
Pere Orga
251962f207
whois: new applet
...
function old new delta
whois_main - 118 +118
pipe_out - 80 +80
packed_usage 28084 28095 +11
applet_names 2385 2391 +6
applet_main 1388 1392 +4
applet_nameofs 694 696 +2
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 4/0 up/down: 221/0) Total: 221 bytes
Signed-off-by: Pere Orga <gotrunks@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-27 23:38:52 +01:00
Harald Becker
9beb68e3e2
showkey: make showkey -a work on any stdin
...
function old new delta
showkey_main 496 513 +17
Signed-off-by: Harald Becker <ralda@gmx.de >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-27 07:16:44 +01:00
Denys Vlasenko
cd387f2554
ls: fix one-bit-off which caused -H to behave as -h
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-27 04:10:00 +01:00
Denys Vlasenko
143c5baf6c
adduser: use better argv passing to addgroup
...
function old new delta
adduser_main 855 882 +27
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-27 04:03:27 +01:00
Denys Vlasenko
e3b1a1fd28
Replace "depends on PLATFORM_LINUX" with "select PLATFORM_LINUX"
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-26 22:24:08 +01:00
Stefan Seyfried
da4441c44f
fix libiproute compile with kernel headers < 2.6.17
...
Signed-off-by: Stefan Seyfried <seife+dev@b1-systems.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-26 20:11:47 +01:00
Peter Korsgaard
301fe50ca2
mount: ignore unknown mount options when remounting NFS mounts
...
Don't fail on unknown nfs mount options. The kernel automatically
adds a few mount options that we don't currently handle, like:
sec=null|sys|krb5..
mountaddr=<ip>
mountproto=tcp|udp
local_lock=none|all|flock|posix
Which causes a simple mount -o remount,rw <mountpoint> to fail.
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-26 19:02:36 +01:00
Roman Borisov
945fd173e9
mount: fix wrong long option namess
...
Fixed the --make-shared, --make-rshared, ... etc. (--make-*) options
in the mount command. Now parse_mount_options() may reasonably process such
options.
Fixed: http://lists.busybox.net/pipermail/busybox/2011-January/074511.html
Signed-off-by: Roman Borisov <ext-roman.borisov@nokia.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-26 18:50:55 +01:00
Denys Vlasenko
3bb235c3b5
iproute: fix parsing and matching of of "short" IP addrs like 10/8
...
function old new delta
print_route 1613 1813 +200
get_addr_1 209 258 +49
get_prefix 393 356 -37
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 249/-37) Total: 212 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-23 01:20:44 +01:00
Denys Vlasenko
bac0a25f72
slightly better wording in comments
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-21 03:47:50 +01:00
Denys Vlasenko
b12553faa8
ash: fix ash-signals/signal8 testcase failure
...
function old new delta
killcmd 109 224 +115
kill_main 882 910 +28
changepath 194 195 +1
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 144/0) Total: 144 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-21 03:22:20 +01:00
Bernd Jendrissek
55988aed47
fix "make install"
...
Signed-off-by: Bernd Jendrissek <bernd.jendrissek@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-20 05:50:04 +01:00
Dan Fandrich
f303bdd918
blockdev: add --getsz to replace --getsize
...
function old new delta
blockdev_main 255 273 +18
bdcommands 160 176 +16
packed_usage 28142 28107 -35
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 34/-35) Total: -1 bytes
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-20 04:15:43 +01:00
Pere Orga
5369563bf9
wget: reduce bloat
...
Signed-off-by: Pere Orga <gotrunks@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-19 23:56:39 +01:00
Vladislav Grishenko
5827167338
udhcpd: optional IP selection based on MAC hash
...
function old new delta
find_free_or_expired_nip 153 225 +72
Signed-off-by: Vladislav Grishenko <themiron@mail.ru >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-16 13:31:30 +01:00
Denys Vlasenko
4fdb67cc65
echo: fix SEGV when run with no args
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-15 18:35:54 +01:00
Denys Vlasenko
28556b95fe
wget: check for final write errors for -O FILE too
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-15 11:03:53 +01:00
Gilles Espinasse
26b80e8fe3
Add the help text for 'position independent executable' code build
...
Signed-off-by: Gilles Espinasse <g.esp@free.fr >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-15 03:02:08 +01:00
Denys Vlasenko
5dad4aeede
modprobe: fix "modprobe -l name-with-dash"
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-15 02:17:31 +01:00
Denys Vlasenko
df7f2008c2
modinfo: trivial optimizations
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-15 01:45:14 +01:00
Lauri Kasanen
12f44ea183
modinfo: show firmware and depends fields
...
Signed-off-by: Lauri Kasanen <curaga@operamail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-15 01:43:04 +01:00
Denys Vlasenko
2384a357f4
wget: make "wget -O FILE URL1 URL2" concatenate output
...
Also fixes a few cases where URL1's data (like start pos)
was leaking into URL2
function old new delta
wget_main 2303 2321 +18
progress_meter 140 152 +12
retrieve_file_data 397 396 -1
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 30/-1) Total: 29 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-15 00:58:36 +01:00
Pere Orga
57b4909db9
wget: fix SEGV with multiple urls and redirection
...
Signed-off-by: Pere Orga <gotrunks@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-14 23:56:07 +01:00
Denys Vlasenko
7c6f2468cc
hush: do not print killer signal's name for SIGPIPE
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-14 17:17:10 +01:00
Denys Vlasenko
b9348440b0
echo: fix ENOSPC detection and some iffy code in \NNN handling
...
function old new delta
echo_main 330 302 -28
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-14 15:42:18 +01:00
Vladislav Grishenko
713e6d78e1
udhcpc: use more correct, and more importantly, more understandable BPF code
...
Signed-off-by: Vladislav Grishenko <themiron@mail.ru >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-14 04:50:30 +01:00
Denys Vlasenko
48a5219f39
reverted LINHIB0001 swap signature addition
...
see:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/683605
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-14 03:52:16 +01:00
Dan Fandrich
dc50676cce
Move stpcpy replacement function into libbb
...
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-13 18:37:12 +01:00
Denys Vlasenko
4ed3c52ce9
mktemp: make it more compatible with GNU coreutils 8.4
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-13 17:38:34 +01:00
Denys Vlasenko
07cda2268a
fix bug 3223 (parameter loading problem for 2.4 kernels)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-13 04:17:35 +01:00
Denys Vlasenko
9a5b7f636d
wget: support multiple URLs on command line even without -O :)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-13 02:49:43 +01:00
Denys Vlasenko
a3661096f2
wget: support multiple URLs on command line
...
function old new delta
wget_main 2190 2310 +120
progress_meter 124 140 +16
parse_url 288 304 +16
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 152/0) Total: 152 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-13 02:33:11 +01:00
Denys Vlasenko
a84eadf9bf
typo fix in comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-12 23:40:31 +01:00
Denys Vlasenko
e1a4209a5e
find: trim help text a bit
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-12 20:37:41 +01:00
Denys Vlasenko
053c12e0de
find: remove the hack we use to parse options first, replace with simpler code
...
text data bss dec hex filename
867764 438 7552 875754 d5cea busybox_old
867629 438 7552 875619 d5c63 busybox_unstripped
function old new delta
parse_params 1377 1440 +63
static.params 151 192 +41
static.options 42 57 +15
fileAction 151 153 +2
find_main 466 267 -199
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/1 up/down: 121/-199) Total: -78 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-12 20:27:13 +01:00
Denys Vlasenko
805f2453d0
find: print/print0/prune _can_ be inverted, fix it
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-12 20:26:14 +01:00
Denys Vlasenko
27076b8233
find: document ! (not) operator
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-12 18:49:48 +01:00
Denys Vlasenko
4604dd86c5
find: help text: PATH must be first
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-12 18:24:15 +01:00
Denys Vlasenko
56cdb2fc37
find: yet another tweak to help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-12 17:13:03 +01:00
Denys Vlasenko
4dea9eb07f
find: fix help text about -prune: it also does assume -print
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-12 17:08:16 +01:00
Denys Vlasenko
cef85c2442
find: significantly improve hext text. +116 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-12 16:35:24 +01:00
Denys Vlasenko
0b8a7723c7
typo fix
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-12 01:56:25 +01:00
Denys Vlasenko
88ad9da65e
wget: display 100% at the _end_ of chunked download
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-11 23:06:21 +01:00
Denys Vlasenko
c60f4460bb
wget: chunked mode fix. Closes bug 3229
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-11 22:23:23 +01:00
Denys Vlasenko
f9af375668
wget: explain clearerr more clearly
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-11 22:01:33 +01:00
Denys Vlasenko
8766a791e8
wget: correctly handle rare case when we get EAGAIN _on first_ read
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-11 21:42:00 +01:00
Denys Vlasenko
ab8d00d64f
progress meter: fix bugs found in stall detection and unknown size logic
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-11 19:09:30 +01:00
Denys Vlasenko
d55e139649
progress meter: move file name to bb_progress_t. +20 bytes
...
We were doing expensive unicode conversion on every update
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-11 18:56:13 +01:00
Denys Vlasenko
e52e67cb51
libbb/progress.c: make sure we never get negative ETA
...
function old new delta
bb_progress_update 738 733 -5
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-11 12:59:11 +01:00
Denys Vlasenko
838d4bb0cd
progress meter: display >999 hours ETA correctly
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-10 23:35:52 +01:00
Denys Vlasenko
f836f01cc3
wget: shrink progress meter code; strink wget and add debug logging
...
function old new delta
fgets_and_trim - 73 +73
retrieve_file_data 367 349 -18
bb_progress_update 723 699 -24
wget_main 2220 2190 -30
ftpcmd 133 87 -46
gethdr 200 153 -47
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/5 up/down: 73/-165) Total: -92 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-10 23:02:28 +01:00
Denys Vlasenko
805aa9fec9
progress bar: better overflow protection; more precise bar
...
function old new delta
bb_progress_update 639 749 +110
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-10 14:25:51 +01:00
Denys Vlasenko
9213a55bf0
wget: use closed HTTP/1.1 connection, stop when we dl'ed $content_len bytes
...
function old new delta
retrieve_file_data 353 367 +14
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-10 13:23:45 +01:00
Denys Vlasenko
aaf091f97d
remve erroneous dependensies on INSTALLER
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-10 11:18:31 +01:00
Denys Vlasenko
95897f9fd2
getty config help: fix example script
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-10 10:38:13 +01:00
Denys Vlasenko
b44e9760e1
getty: extend its config help
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-10 10:24:51 +01:00
Denys Vlasenko
b2f00ac22a
reset: "ESC(K" selects German, why do we use THAT? Change to "ESC(B" (US)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-10 10:18:22 +01:00
Denys Vlasenko
dee0fc9da1
save 10 bytes on strings
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-10 10:01:49 +01:00
Denys Vlasenko
0fac2f7b5b
wget: remove functions which retry on EINTR
...
function old new delta
retrieve_file_data 392 353 -39
safe_fgets 58 - -58
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 0/1 up/down: 0/-97) Total: -97 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-10 09:55:05 +01:00
Denys Vlasenko
e3ece7878b
fix trivial build failure
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-10 09:50:07 +01:00
Denys Vlasenko
df4e16c9af
wget: use FEATURE_COPYBUF_KB-sized buffer. Much faster for local transfers
...
function old new delta
base64enc - 53 +53
gethdr 190 200 +10
ftpcmd 129 133 +4
progress_meter 160 122 -38
retrieve_file_data 431 392 -39
base64enc_512 46 - -46
wget_main 2456 2220 -236
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 2/3 up/down: 67/-359) Total: -292 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-10 06:29:06 +01:00
Denys Vlasenko
77350aa933
tc: less ugly check for bad sizeof(G)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-10 06:28:09 +01:00
Denys Vlasenko
f133471302
iproute: fix handling of "dev IFACE" selector
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-09 04:39:09 +01:00
Denys Vlasenko
e7212a4ce5
scripts/mkconfigs: don't use invalid basic regexp
...
\? are GNU extension and thus are non-standard
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-09 01:33:41 +01:00
Denys Vlasenko
698e8095fa
use unistd.h before _POSIX_VERSION
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-08 05:35:04 +01:00
Denys Vlasenko
66c5b12dbf
ash: fix TMOUT not restoring tty attributes
...
function old new delta
pgetc 420 500 +80
readtoken1 3202 3239 +37
read_line_input 3316 3337 +21
udhcpc_main 2610 2630 +20
file_get 266 272 +6
expandarg 958 963 +5
localcmd 257 259 +2
addLines 85 87 +2
read_line 94 95 +1
ed_main 2540 2541 +1
timed_out 1 - -1
lineedit_read_key 256 255 -1
alrm_sighandler 44 - -44
cmdloop 539 434 -105
------------------------------------------------------------------------------
(add/remove: 0/2 grow/shrink: 10/2 up/down: 175/-151) Total: 24 bytes
text data bss dec hex filename
887379 936 17200 905515 dd12b busybox_old
887411 936 17192 905539 dd143 busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-08 05:07:02 +01:00
Denys Vlasenko
dd807c16f9
incorporate header fixes proposed in bug 3097
...
Not sure these are *really* needed, but I suppose they don't hurt
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-07 14:58:57 +01:00
Denys Vlasenko
5a746dcec5
scripts/kconfig/mconf.c: stop-gap fix for buffer overflow
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-07 02:19:02 +01:00
Denys Vlasenko
8ee2adab21
echo: do not retry on write errors
...
function old new delta
echo_main 297 336 +39
stpcpy - 22 +22
run_pipe 1561 1566 +5
pseudo_exec_argv 187 192 +5
hush_exit 75 80 +5
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 4/0 up/down: 98/0) Total: 76 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-07 02:03:51 +01:00
Denys Vlasenko
b8ab4b0388
typo fix
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-06 20:02:15 +01:00
Denys Vlasenko
aef441cb4d
tar: fix a bug where autodetection messes up -z on extract
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-06 20:01:11 +01:00
Mike Frysinger
ca18e25525
runlevel/wall: depend on utmp feature
...
These utils use funcs from utmp.h (like setutent), but utmp.h is only
included when FEATURE_UTMP is enabled. Otherwise we get build failures
due to missing defines/prototypes. So depend on this option.
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2011-02-06 12:29:25 -05:00
Denys Vlasenko
fbea220560
udhcpc: fix a problem with binary-encoded options
...
function old new delta
attach_option 395 413 +18
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-06 18:00:58 +01:00
Denys Vlasenko
281e7b8848
ping: trivial simplification. -2 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-06 17:51:45 +01:00
Denys Vlasenko
1bb52a9b73
ping: fix IPv6 pinging. Closes bug 3187
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-05 03:58:43 +01:00
Dan Fandrich
07078c2966
Let fbsplash display images even when a second buffer is active
...
If a previous application uses double buffering and makes the
second buffer visible, fbsplash's images (written to the first
buffer) otherwise won't be visible.
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-05 03:34:52 +01:00
Reuben Dowle
3e2834fe72
ubimkvol,ubirmvol,ubirsvol: new applets
...
function old new delta
ubi_tools_main - 658 +658
packed_usage 28269 28376 +107
bbconfig_config_bz2 4968 5007 +39
applet_names 2407 2434 +27
applet_main 1396 1408 +12
applet_nameofs 698 704 +6
applet_install_loc 175 176 +1
ubi_attach_detach_main 175 - -175
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 6/0 up/down: 850/-175) Total: 675 bytes
Signed-off-by: Reuben Dowle <reuben.dowle at navico.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-05 03:18:08 +01:00
Denys Vlasenko
046341e8bd
ash: optional support for $TMOUT variable
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-04 17:53:59 +01:00
Denys Vlasenko
8c52f80397
ash: cosmetic cleanups
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-04 17:36:21 +01:00
Denys Vlasenko
c5d0f15dbd
libbb: spawn should remove child which failed to exec
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-03 14:14:09 +01:00
Denys Vlasenko
3237f5c307
tar: support -T - and -X -
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-03 04:00:23 +01:00
Denys Vlasenko
b7c9fb27cb
whitespace fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-03 00:05:48 +01:00
Denys Vlasenko
6307357eff
move nofork_save_area from libbb.h to vfork_daemon_rexec.c
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-02 19:05:25 +01:00
Denys Vlasenko
b72baeb003
hush: use FEATURE_SH_NOFORK to enable NOFORK trick
...
Also expands docs
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-02 18:38:57 +01:00
Denys Vlasenko
c71b469f5d
libbb: make BB_EXECVP/LP try to exec real binary if there's no /proc/self/exe
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-02 03:28:56 +01:00
Denys Vlasenko
099e528919
ps: implement -o stat
...
function old new delta
func_stat - 24 +24
out_spec 300 320 +20
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-02 00:59:35 +01:00
Denys Vlasenko
c5830bdf65
modprobe/insmod: fix parameter quoting
...
function old new delta
parse_cmdline_module_options 102 157 +55
modprobe_main 657 662 +5
insmod_main 68 70 +2
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 62/0) Total: 62 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-02 00:01:07 +01:00
Denys Vlasenko
8ae386bf19
revert commit 1396221d5a
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-01 23:24:25 +01:00
Lauri Kasanen
55ae0e9238
df,find_mount_point: optionally don't ignore rootfs
...
Signed-off-by: Lauri Kasanen <curaga@operamail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-31 06:27:35 +01:00
Denys Vlasenko
625cfd87d9
fdisk_osf: simplify ifdef (incidentally, adds support for Microblaze)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-31 05:55:52 +01:00
Denys Vlasenko
b5233f8556
tar: add -h and -T to help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-31 05:35:23 +01:00
Denys Vlasenko
aa4f9a2fd8
libbb/copy_file.c: use smallints instead of signed chars
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-28 19:14:17 +01:00
Denys Vlasenko
4907f6ec58
getty: fix "ifdef CMSPAR"
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-26 16:20:54 +01:00
Denys Vlasenko
f36368ed37
getty: restore CRTSCTS comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-26 16:14:47 +01:00
Denys Vlasenko
df7b6577c6
id: fix inverted if (!ENABLE_DESKTOP)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-26 16:11:19 +01:00
Denys Vlasenko
ffd81f2003
getty: do clear CLOCAL and CRTSCTS unless told otherwise
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-26 16:06:16 +01:00
Denys Vlasenko
cf9d33a894
getty: do not clear all c_cflag's (we were clearing baud bits!)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-26 15:56:51 +01:00
Peter Korsgaard
ddd1ec1c27
getty: wait up to 5 seconds for the output buffer to drain
...
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-26 15:15:19 +01:00
Denys Vlasenko
e3d4c03852
stty: cosmetic fix to settings table; no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-26 11:58:37 +01:00
Denys Vlasenko
3ff9be31be
getty: document bits we don't set - maybe we should set some of them?
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-26 11:28:43 +01:00
Denys Vlasenko
d7c25e98bf
getty: add ECHOE explanation
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-26 03:31:23 +01:00
Denys Vlasenko
d8494934a7
getty: explain every bit in termios; remove redundant stuff in termios_final
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-26 03:26:38 +01:00
Denys Vlasenko
ea023eacad
disable length applet. ${#var} and echo -n "$var" | wc -c are portable equivalents
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-26 01:21:20 +01:00
Alexander Shishkin
f18a82d9b3
diff: return 1 when skipping directories with -r, but without -N
...
Diff in diffutils will return 1 in case -r option is specified without
-N something exists only in one of the directories.
Signed-off-by: Alexander Shishkin <virtuoso@slind.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-26 01:09:12 +01:00
Denys Vlasenko
8d0e0cdadf
move utmp.h include to libbb.h
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-25 23:21:46 +01:00
Denys Vlasenko
9aa599dc9d
top: replace %MEM with %VSZ in header text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-25 12:48:47 +01:00
Davide Cavalca
9b3b9790b3
add ENABLE_FEATURE_SYSTEMD and use it in syslogd
...
Signed-off-by: Davide Cavalca <davide@geexbox.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-25 02:26:03 +01:00
Denys Vlasenko
444ff284c4
top: document a debugging script
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-25 01:57:31 +01:00
Denys Vlasenko
975c714183
nicer looking ifdef in libbb/makedev.c
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-24 23:53:12 +01:00
Denys Vlasenko
136091886e
getty: flush _only_ input after switching to the next baud rate
...
It was originally like this, but at some point TCIFLUSH was
inadvertently changed to TCIOFLUSH.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-24 23:45:22 +01:00
Denys Vlasenko
e54cfc5477
stty: enable line discipline display and change code if __linix__
...
function old new delta
stty_main 1242 1276 +34
do_display 419 431 +12
display_speed 90 81 -9
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 46/-9) Total: 37 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-24 18:30:35 +01:00
Denys Vlasenko
7073964b5f
getty: simplify macros; improve VSWTC[H] compat
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-24 18:17:19 +01:00
Chris Rees
6b1ce45598
FreeBSD compat for match_fstype
...
Signed-off-by: Chris Rees <utisoft@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-24 17:10:02 +01:00
Chris Rees
e22af94afb
FreeBSD compat for makedev
...
Signed-off-by: Chris Rees <utisoft@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-24 17:07:40 +01:00
Chris Rees
330718ef55
FreeBSD compat
...
Signed-off-by: Chris Rees <utisoft@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-24 17:07:06 +01:00
Chris Rees
e3c127d846
FreeBSD compat
...
Signed-off-by: Chris Rees <utisoft@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-24 17:04:59 +01:00
Denys Vlasenko
271c0ce379
stty: make swtch and iutf8 visible/settable
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-24 16:36:15 +01:00
Denys Vlasenko
faaf8cb3fa
getty: more simplifications; explain how we treat parity now
...
function old new delta
getty_main 1471 1434 -37
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-24 14:35:09 +01:00
Denys Vlasenko
6596380f52
getty: simplify code by going to more straignforward G trick
...
function old new delta
getty_main 1615 1475 -140
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-24 04:43:04 +01:00
Denys Vlasenko
e9a40e3b91
libbb: make ndelay_no/off a bit more clever. +14 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-24 00:29:55 +01:00
Denys Vlasenko
dc6cd12569
getty: add sleep before initial tcdrain; reduce another sleep from 1 to 0.1s
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-24 00:28:43 +01:00
Denys Vlasenko
1f0840450e
getty: use cfsetspeed to save some bytes; cosmetic fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-24 00:16:50 +01:00
Davide Cavalca
658a437d4b
hwclock: implement --systz
...
function old new delta
hwclock_main 324 434 +110
packed_usage 28220 28259 +39
static.hwclock_longopts 53 60 +7
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 156/0) Total: 156 bytes
Signed-off-by: Davide Cavalca <davide@geexbox.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-22 18:55:32 +01:00
Denys Vlasenko
1336f89d59
wc: fix swapped -c and -m
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-22 17:57:01 +01:00
Denys Vlasenko
1f4a987d47
pltaform.h: move include of stdint.h before uint16_t is used
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-22 17:31:35 +01:00
Denys Vlasenko
006416e8fe
getty: more correct check for O_RDWR
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-22 17:29:53 +01:00
Denys Vlasenko
2b57b6cd43
getty: comment out parity detection code; improve usage text
...
function old new delta
packed_usage 28155 28191 +36
static.erase 12 - -12
getty_main 1847 1621 -226
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 1/1 up/down: 36/-238) Total: -202 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-22 03:06:40 +01:00
Denys Vlasenko
3a0f690dcd
svlogd: extend usage text. +70 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-22 00:38:24 +01:00
Denys Vlasenko
e8f565c1ee
Merge branch 'master' of git+ssh://vda@busybox.net/var/lib/git/busybox
2011-01-21 21:59:26 +01:00
Denys Vlasenko
b40da22357
fix compile error on non-x86 architectures
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-21 01:16:09 +01:00
Denys Vlasenko
dd169e8468
eliminate aliasing warnings in traceroute.c and udhcp/socket.c
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-20 12:13:23 +01:00
Denys Vlasenko
b3b6c8bdf2
eliminate aliasing warning in networking/route.c
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-20 11:29:00 +01:00
Denys Vlasenko
53f30b41ec
ifplugd: eliminate aliasing warnings
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-20 01:20:36 +01:00
Chris Rees
9ad97d5041
sighandler_t definition for BSD
...
Signed-off-by: Chris Rees <utisoft@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-20 00:51:52 +01:00
Denys Vlasenko
a146319173
hush: improve prompt in nested {}s, remove unused in_str->promptme member
...
function old new delta
setup_string_in_str 29 38 +9
parse_and_run_stream 79 88 +9
setup_file_in_str 32 39 +7
parse_stream 2430 2422 -8
file_get 262 235 -27
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/2 up/down: 25/-35) Total: -10 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-18 17:55:04 +01:00
Denys Vlasenko
98c46d10ee
hush: fix "cmd & <newline>" problem
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-18 17:30:07 +01:00
Denys Vlasenko
b9f2d9f7d9
mass removal of underscores from _BB_DIR_foo and _BB_SUID_foo
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-18 13:58:01 +01:00
Denys Vlasenko
3b5acaa432
disable automatic selection of FEATURE_SUID; improve its help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-18 13:52:48 +01:00
Denys Vlasenko
094cc51e50
insmod: check for module read errors
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-17 14:58:27 +01:00
Denys Vlasenko
10ee20b58b
libbb: better comment in parse_date
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-17 14:23:42 +01:00
Tito Ragusa
ad3d72f082
move passwd, shadow, group and gshadow path definitions to libbb.h
...
...and define them only if the used libc doesn't.
Signed-off-by: Tito Ragusa <farmatito@tiscali.it >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-16 23:39:45 +01:00
Denys Vlasenko
e8d0a1450a
remove a few aliasing warnings
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-16 11:21:15 +01:00
Denys Vlasenko
df1689138e
remove a few aliasing warnings
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-16 01:25:34 +01:00
Denys Vlasenko
068444629f
top: add keyboard commands to --help
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2011-01-13 16:07:51 +01:00
Denys Vlasenko
8030a14849
httpd: send correct mtime for .gz files
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2011-01-11 17:59:45 +01:00
Denys Vlasenko
dc7e5c46b0
libbb unicode: comment out usused function and unused parameter
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2011-01-11 13:08:28 +01:00
Denys Vlasenko
5a163b2645
lsmod: fox unsafe usage of strlen() - 1
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2011-01-11 13:07:22 +01:00
Denys Vlasenko
0f44c08560
libbb: progress indicator: use unicode support funcs instead of open-coding it
...
function old new delta
bb_progress_update 729 641 -88
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2011-01-10 16:10:29 +01:00
Denys Vlasenko
84dba9c5bb
tftp: fix bad interaction betweel poll() and alarm(). Closes bug 3061
...
This was breaking timeout handling.
function old new delta
tftp_progress_update - 45 +45
tftp_progress_done - 32 +32
tftp_protocol 1839 1858 +19
tftp_progress_init 9 15 +6
tftp_main 298 286 -12
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 2/1 up/down: 102/-12) Total: 90 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2011-01-10 12:51:44 +01:00
Denys Vlasenko
7b305646e1
stop giving root rights to dnsd, ipcrm, ipcs
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-09 21:54:50 +01:00
Denys Vlasenko
bcdb9b8762
getty: fix -i (was ignored)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-09 21:44:51 +01:00
Denys Vlasenko
e9d12b57bf
modprobe-small: support compressed modules in insmod
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-09 20:57:52 +01:00
Denys Vlasenko
642e71a789
hush: fix wrong prompt problem on empty interactive commants
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2011-01-07 15:16:05 +01:00
Denys Vlasenko
f42c7b8fc1
suppress "'fast_strtol_10' defined but not used" warning
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2011-01-07 13:51:16 +01:00
Denys Vlasenko
e66a212081
mkswap: selinux build fix
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2011-01-05 11:45:44 +01:00
Denys Vlasenko
a116552869
tar: add a note about -C and symlink-in-tarball attack
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-04 08:46:26 +01:00
Denys Vlasenko
6100b51ca8
explain every non-SUID_DROP applet. No code changes
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2011-01-03 13:57:49 +01:00
Denys Vlasenko
327d2885ec
kill[all[5]],pkill: make signal list show signal numbers, and show RTMIN/MAX
...
function old new delta
print_signames 31 64 +33
signals 224 231 +7
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2011-01-03 13:08:58 +01:00
Denys Vlasenko
7b276fc175
kill[all[5]],pkill: more correct, and smaller, SIGRTMIN/MAX code
...
function old new delta
__libc_current_sigrtmin 6 - -6
__libc_current_sigrtmax 6 - -6
get_signum 339 295 -44
------------------------------------------------------------------------------
(add/remove: 0/3 grow/shrink: 0/1 up/down: 0/-56) Total: -56 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2011-01-03 12:51:13 +01:00
Denys Vlasenko
92ffe0571a
date,touch: treat 2-digit years better (fit them into +-50 yrs around today)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-02 20:02:09 +01:00
Alexey Soloviev
a5d3d3436b
date: preserve isdst value if date is in time_t (unix time) format
...
Signed-off-by: Alexey Soloviev <EXT-Alexey.Soloviev@nokia.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-31 05:21:51 +01:00
Denys Vlasenko
a9e25ffa67
su: document -l in --help text. Closes bug 2761
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-31 02:52:35 +01:00
Denys Vlasenko
0cd4f3039b
add missed underscore
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-31 00:01:59 +01:00
Denys Vlasenko
d1e46651a3
date: add a comment about _SVID_SOURCE
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-30 23:56:47 +01:00
Denys Vlasenko
ed9b08d1c1
bzip2: plug memory leak on every processed file
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-30 04:43:35 +01:00
Denys Vlasenko
2753aae0e8
libbb: optionally support RTMIN[+n] and RTMAX[-n] signal names
...
function old new delta
get_signum 140 336 +196
__libc_allocate_rtsig - 56 +56
__libc_current_sigrtmin - 6 +6
__libc_current_sigrtmax - 6 +6
current_rtmin - 4 +4
current_rtmax - 4 +4
bbconfig_config_bz2 4961 4962 +1
------------------------------------------------------------------------------
(add/remove: 6/0 grow/shrink: 2/0 up/down: 273/0) Total: 273 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-30 01:17:03 +01:00
Denys Vlasenko
90615a0c5c
blkid: optional support for TYPE="fstype"
...
Adapted from patch created by T4ndeta <t4ndeta@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-30 00:40:11 +01:00
Denys Vlasenko
2272129a93
plug a DIR* leak on error path
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-28 10:25:03 +01:00
Serj Kalichev
8578196b76
modprobe: add -D option (synonym of --show-depends)
...
The modern module-init-tools 3.12 has "-D" option and it works.
The --show-depends and -a options can be used together due to upstream modprobe
behaviour.
function old new delta
do_modprobe 536 579 +43
packed_usage 28035 28042 +7
modprobe_main 653 657 +4
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 54/0) Total: 54 bytes
Signed-off-by: Serj Kalichev <serj.kalichev@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-28 04:18:18 +01:00
Ian Wienand
260fb551ff
login: apply PAM environment
...
login should apply the PAM environment modified by plugins
such as pam_env. Other 'login's do a similar thing.
I tested this by setting some env variables with pam_env which were
correctly applied.
Signed-off-by: Ian Wienand <ianw@vmware.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-27 02:13:06 +01:00
Denys Vlasenko
1f937d6468
cpio: allow cpio -i to take params - names of files to extract
...
Also, improve help text
function old new delta
packed_usage 28028 28035 +7
cpio_main 542 532 -10
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 7/-10) Total: -3 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-26 02:22:51 +01:00
Serj Kalichev
e4e911e712
modprobe: add support for --show-depends
...
function old new delta
modprobe_longopts - 16 +16
packed_usage 28018 28028 +10
modprobe_main 648 653 +5
do_modprobe 580 536 -44
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 2/1 up/down: 31/-44) Total: -13 bytes
Signed-off-by: Serj Kalichev <serj.kalichev@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-26 01:56:19 +01:00
Denys Vlasenko
6088e138e1
init: simpler handling of leading dash in commands
...
function old new delta
init_exec 233 219 -14
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-25 23:58:42 +01:00
Denys Vlasenko
8993c3f260
udhcpc: document SIGUSRn effect in help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-25 06:21:54 +01:00
Denys Vlasenko
75eb9d20e9
hush: fix FEATURE_CLEAN_UP code (was freeing unallocated memory)
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-12-21 21:18:12 +01:00
Denys Vlasenko
51d714ce7e
sendmail: remove forgotten commenting-out on a "if (verbose)"
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-12-20 12:19:46 +01:00
Denys Vlasenko
5707b52fd4
mailutils/*: add verbose option to sendmail; remove -m and -j from makemime
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-20 05:12:39 +01:00
Denys Vlasenko
27c6c00a7c
test: add examples when "%s: unknown operand" happens
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-20 03:43:20 +01:00
James Youngman
a4bc10cec7
ls: remove redundant constants LIST_FILENAME and LIST_SHORT
...
LIST_FILENAME is always true and LIST_SHORT affects nothing.
Signed-off-by: James Youngman <jay@gnu.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-20 01:36:16 +01:00
Denys Vlasenko
982aa263a0
ls: add support for -H
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-19 21:54:39 +01:00
James Hunt
86ffe5c15a
volume_id: recognize compressed hibernate swap signature
...
util-linux/volume_id/linux_swap.c: Added the new magic LINHIB0001
signature.
See:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/683605
Signed-off-by: James Hunt <james.hunt@ubuntu.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-19 17:18:45 +01:00
Denys Vlasenko
407ab2a434
ls: tweak -e handling; better comments
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-19 16:29:08 +01:00
Denys Vlasenko
2f7d9e8903
ls: print a space after each column. Closes bug 2941
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-19 07:06:44 +01:00
Denys Vlasenko
163d864357
ls: make -F not follow symlinks of the command line
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-19 06:16:28 +01:00
Denys Vlasenko
d87815d5e0
ls: make -x force columnar output; remove unused parts of TRIGGER code
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-19 05:43:44 +01:00
Denys Vlasenko
f313746a6d
ls: for some options, only last takes effect. Closes bug 2959
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-19 05:05:34 +01:00
Denys Vlasenko
1393fc1161
chrt: -m can be used without any arguments. Closes bug 2989
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-19 04:07:50 +01:00
Denys Vlasenko
96c8a6b5ea
chrt: correct opt_complementary. Closes bug 2977
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-18 02:59:09 +01:00
Macpaul Lin
b2fa0b6219
scripts: fix fixdep.c to let it workable in cygwin
...
Update retrun character detection in the fixdep.c
to let it work in cygwin.
Signed-off-by: Macpaul Lin <macpaul@andestech.com >
Signed-off-by: Greentime <green.hu@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-18 01:46:38 +01:00
Denys Vlasenko
e06884208a
Revert "scripts: fix fixdep.c to let it workable in cygwin"
...
This reverts commit 10c36b8657 .
2010-12-18 01:46:04 +01:00
Greentime
10c36b8657
scripts: fix fixdep.c to let it workable in cygwin
...
Update return character detection in the fixdep.c
to let it workable in cygwin.
Signed-off-by: Macpaul Lin <macpaul@andestech.com >
Signed-off-by: Greentime <green.hu@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-18 01:45:14 +01:00
Denys Vlasenko
a3aea32811
chat: fix build breakage (variable declared in for())
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-18 01:42:50 +01:00
Denys Vlasenko
0d6a4ecb30
hush: fix build breakage (variable declared in for())
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-18 01:34:49 +01:00
Denys Vlasenko
a6041860f8
nmeter: deprecate %NNNd specified, use -d MSEC instead
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-12-13 15:17:22 +01:00
Lauri Kasanen
da6fb7e331
procps/Config.src: Add pstree to FEATURE_THREADS deps. Slight text edit
...
Signed-off-by: Lauri Kasanen <curaga@operamail.com >
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-12-13 14:45:08 +01:00
Denys Vlasenko
0d1d0f6e54
more: smaller version of previous fix
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-12-13 14:31:59 +01:00
Denys Vlasenko
0b90de1537
more: exit if write to stdout errors out
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-12-13 14:28:38 +01:00
Denys Vlasenko
1f3709ec74
fix typo in README
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-08 06:08:47 +01:00
Denys Vlasenko
309974412a
typo fix
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-12-06 15:44:13 +01:00
Denys Vlasenko
bc3cdf8ed1
update examples/var_service/README
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-12-06 15:42:44 +01:00
Denys Vlasenko
75bb332dbd
add examples/var_service/README
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-12-06 15:13:58 +01:00
Denys Vlasenko
86aa803047
pstree: use stdin for screen size detection
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-12-06 12:54:24 +01:00
Eric Lammerts
31905f9477
runsvdir: do not miss closely spaced service dir changes
...
Signed-off-by: Eric Lammerts <busybox@lists.lammerts.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-06 01:26:26 +01:00
Denys Vlasenko
c60e88a5b9
tweak INSTALL_NO_USR help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-05 23:11:15 +01:00
Joachim Nilsson
dc160039ad
build system: fix "make install" to skip /usr when configured so
...
Fix regression in BusyBox 1.18.0 where the NO_USR config option no longer
bites for "make install". The busybox.mkll script stumbles without these
lines and as a result *always* creates /usr/ symlinks.
Signed-off-by: Joachim Nilsson <troglobit@vmlinux.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-05 23:05:38 +01:00
Denys Vlasenko
2161bd701a
pstree: another tiny shrink
...
function old new delta
pstree_main 327 324 -3
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-05 19:36:58 +01:00
Denys Vlasenko
c32e626988
pstree: tiny shrink
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-05 16:05:03 +01:00
Lauri Kasanen
e48e6f85bf
pstree: fix width logic. +30 bytes
...
Signed-off-by: Lauri Kasanen <curaga@operamail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-05 15:55:06 +01:00
Lauri Kasanen
6578f2cf5b
pstree: new applet. +1664 bytes
...
text data bss dec hex filename
883379 936 17192 901507 dc183 busybox_old
885043 936 17192 903171 dc803 busybox_unstripped
Signed-off-by: Lauri Kasanen <curaga@operamail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-05 05:22:29 +01:00
Denys Vlasenko
a04440ccad
typo fix
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-05 05:02:49 +01:00
Denys Vlasenko
8da415ef25
add if guards around include <malloc.h>
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-05 01:30:14 +01:00
Denys Vlasenko
5dcc6606cb
libbb/pw_encrypt_sha: forgot to move &ctx to 1st param here in sha hash rework
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-12-01 13:57:25 +01:00
Denys Vlasenko
3f2477e8a8
touch: fix help text to not show options disabled in .config
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-12-01 13:06:03 +01:00
Denys Vlasenko
631fd5ccd7
su: suppress "warning: unused variable 'user_buf'"
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-30 09:47:56 +01:00
Chris Rees
12caabfa2d
build system: do not use GNU-isms in find
...
Signed-off-by: Chris Rees <utisoft@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-30 09:41:39 +01:00
Denys Vlasenko
58c3d21c2e
telnetd: write utmp record with correct pid
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-30 09:17:30 +01:00
Denys Vlasenko
3c8799b8a4
ping: set not only IP_TTL, but also IP_MULTICAST_TTL
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-11-29 12:07:12 +01:00
Rob Landley
8027a202a8
patch: fix "patch at the beginning" testcase failure
...
Signed-off-by: Rob Landley <rob@landley.net >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-29 03:24:51 +01:00
Denys Vlasenko
0ab45da929
exclude the case of just "busybox" from previous commit
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-29 03:21:55 +01:00
Denys Vlasenko
8f0af3b001
if only one applet is enabled, make "busybox applet [params]" work as expected
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-29 02:55:35 +01:00
Joachim Nilsson
714e2b7e6a
ping: add -t TTL option
...
function old new delta
common_ping_main 1755 1796 +41
packed_usage 27954 27971 +17
bbconfig_config_bz2 4965 4966 +1
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 59/0) Total: 59 bytes
Signed-off-by: Joachim Nilsson <joachim.nilsson@vmlinux.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-28 23:01:18 +01:00
Denys Vlasenko
713d241852
dhcpd: reply with NAK to clients in INIT-REBOOT state w/o existing lease
...
We were not responding to them at all.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-28 21:51:44 +01:00
Denys Vlasenko
1c31e9e82b
use BB_EXECVP_or_die where appropriate
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-28 04:34:09 +01:00
Denys Vlasenko
57542ebe4f
hush: move G_x_mode define to the more appropriate place
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-28 03:59:30 +01:00
Dan Fandrich
85c62470b7
Support set -o xtrace/noexec alternates for set -x/-n
...
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-28 03:56:39 +01:00
Dan Fandrich
89ca2f99a2
hush: display useful help text
...
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-28 01:54:39 +01:00
Denys Vlasenko
fe9403ad17
add a test for patch which we currently fail
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-28 01:41:40 +01:00
Denys Vlasenko
fa5e295600
dhcpd: smaller code: do not look for REQUESTED_IP twice
...
text data bss dec hex filename
883235 936 17192 901363 dc0f3 busybox_old
883219 936 17192 901347 dc0e3 busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-28 01:10:51 +01:00
Denys Vlasenko
b271ad46dc
blkid: add TODO
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-25 07:59:17 +01:00
Denys Vlasenko
7a3f8e2fe1
gen_build_files.sh: better comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-25 06:55:18 +01:00
Denys Vlasenko
749e305d36
build system: fix for dash
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-11-24 15:06:49 +01:00
Denys Vlasenko
7386dd1e8a
Start 1.19.0 development cycle
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-11-23 12:50:40 +01:00
Denys Vlasenko
5ab20641d6
Bump version to 1.18.0
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-23 09:21:44 +01:00
Denys Vlasenko
9e0f15010e
date :add a comment about older toolchains
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-23 00:15:19 +01:00
Denys Vlasenko
26777aa1c6
fixes for bugs discovered by randomconfig builds and tests
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-22 23:49:10 +01:00
Denys Vlasenko
29ca159133
fix misspelling in comment
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-11-22 18:13:15 +01:00
Denys Vlasenko
7b4c0fd5f4
hush: fix improper handling of newline and hash chars in few corner cases
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-11-22 17:58:14 +01:00
Denys Vlasenko
1e23f32453
nc: fix SEGV on -v when NC_EXTRA is off
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-22 05:30:54 +01:00
Mike Frysinger
a945f6190b
inetd: if argv[0] is not specified, set it to program name
...
With inetd.conf files that skip argv[], inetd execs programs with argc==0.
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-22 04:57:37 +01:00
Mike Shal
f3763033e4
lineedit: fix tab-completion of filenames with spaces
...
Using ash in busybox git version dea28e1e , tab completion doesn't seem
to work properly for filenames that have special characters (such as
spaces) in them. For example, with filenames "foo bar" and "foo zap",
typing "ls fo<TAB>" correctly expands to "ls foo\ ", but then
continuing to type "b<TAB>" will produce "ls foo\ bbar", which is not
correct (the 'b' is duplicated).
Signed-off-by: Mike Shal <marfey@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-22 03:49:18 +01:00
Denys Vlasenko
7c6ed78aaa
patch: remove out-of-file build machinery
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-22 03:15:21 +01:00
Denys Vlasenko
f9d091316d
gen_build_files.sh: restore deleted comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-21 22:10:07 +01:00
Denys Vlasenko
ac10b30070
cmp: with -s, do not report open errors
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-21 18:11:40 +01:00
Denys Vlasenko
400ff226c2
patch: simplify double list helpers
...
function old new delta
dlist_free - 29 +29
fail_hunk 130 132 +2
patch_main 1987 1982 -5
dlist_add 59 54 -5
TOY_llist_pop 9 - -9
TOY_llist_free 54 - -54
------------------------------------------------------------------------------
(add/remove: 1/2 grow/shrink: 1/2 up/down: 31/-73) Total: -42 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-21 05:54:28 +01:00
Denys Vlasenko
b82ae98ea4
patch: busyboxify by migrating from toybox to busybox helpers
...
function old new delta
get_line 90 128 +38
bbconfig_config_bz2 4959 4965 +6
makedevs_main 1038 1035 -3
fail_hunk 133 130 -3
finish_oldfile 174 124 -50
patch_main 2066 1987 -79
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/4 up/down: 44/-135) Total: -91 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-21 05:53:34 +01:00
Mike Frysinger
f718e3a0db
gen_build_files.sh: rewrite with sed
...
The shell parsing of files is incredibly slow on many systems. With
one report, the process was taking a minute or two which made people
thing the build was hung. So rewrite the craziness with sed and proper
shell functions. On an idle system, this cut the runtime by half.
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2010-11-16 09:01:54 -05:00
Mike Frysinger
b78d561ec7
allow SKIP_STRIP to be set in the env
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2010-11-16 09:01:30 -05:00
Mike Frysinger
8ce1ad3097
depmod.pl: add recursive sanity check
...
If modules contain circular dependencies, the depmod script will follow
the circle forever. So add a simple sanity check to abort rather than
chew up the CPU.
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2010-11-16 07:15:00 -05:00
Wolfram Sang
2e9aeae4db
lineedit: create history files with mode 0600
...
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-15 02:58:28 +01:00
Denys Vlasenko
6696eac274
hush: add support for "set -o pipefail"
...
function old new delta
checkjobs 467 517 +50
builtin_set 259 286 +27
o_opt_strings - 10 +10
hush_main 1011 1013 +2
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 3/0 up/down: 89/0) Total: 89 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-14 02:01:50 +01:00
Denys Vlasenko
c08c3f5d26
hush: preparatory patch for set -o pipefail support
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-14 01:59:55 +01:00
Lauri Kasanen
2b662c5dec
libbb: remove unused variable
...
Signed-off-by: Lauri Kasanen <curaga@operamail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-13 23:16:05 +01:00
Tito Ragusa
a8dc97cb82
deluser: do not warn spuriously when deleting group by deluser
...
Signed-off-by: Tito Ragusa <farmatito@tiscali.it >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-08 05:47:04 +01:00
Denys Vlasenko
e057b0f94f
delgroup: correct the check for users who still use the group
...
Signed-off-by: Tito <farmatito@tiscali.it >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-07 17:51:58 +01:00
Denys Vlasenko
f595d8ed46
typo fix
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-11-06 22:17:30 +01:00
Tito Ragusa
1586c7a92c
deluser: 2nd attempt at deluser/delgroup size reduction and improvements
...
Signed-off-by: Tito Ragusa <farmatito@tiscali.it >
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-11-06 22:14:55 +01:00
Maksym Kryzhanovskyy
0ebafcc5b1
powertop: code shrink
...
function old new delta
process_timer_stats 490 449 -41
Signed-off-by: Maksym Kryzhanovskyy <xmaks@email.cz >
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-11-06 01:56:19 +01:00
Denys Vlasenko
9135fd26c4
Merge branch 'master' of git+ssh://busybox.net/var/lib/git/busybox
2010-11-06 01:51:07 +01:00
Denys Vlasenko
4909fec73e
ls: fix -lg to show group (was showing user)
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-11-06 00:46:57 +01:00
Denys Vlasenko
dea28e1e55
powertop: fix last line detection in process_timer_stats()
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-04 23:30:11 +01:00
Denys Vlasenko
dcb163aa8e
powertop: replace erroneous \n with \0; make numberic conversion more robust
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-04 23:22:40 +01:00
Christian Hornung
3bbfb58bec
ip: Fix command line option parsing of "ip route get ..."
...
I found and fixed a bug in the command line options parsing of "ip route get":
It was impossible to get any option other than the IP address
recognized correctly, and e.g. the command "ip route get connected"
just hung up infinitely in the options parsing loop instead of
printing an error message.
Signed-off-by: Christian Hornung <chhornung@googlemail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-04 08:59:42 +01:00
Maksym Kryzhanovskyy
6052c2b0be
powertop: code shrink
...
function old new delta
read_cstate_counts 355 360 +5
print_intel_cstates 494 499 +5
process_timer_stats 554 480 -74
process_irq_counts 765 530 -235
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/2 up/down: 10/-309) Total: -299 bytes
Signed-off-by: Maksym Kryzhanovskyy <xmaks@email.cz >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-04 08:41:57 +01:00
Denys Vlasenko
854738d39d
type fix in comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-03 02:48:43 +01:00
Denys Vlasenko
833d4e7f84
rename archival/libunarchive -> archival/libarchive; move bz/ into it
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-03 02:38:31 +01:00
Denys Vlasenko
5e9934028a
*: move lzo compressor code to archival/libunarchive/. No code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-03 02:27:49 +01:00
Denys Vlasenko
db5fe62b6d
init: if PID!=1, show clearer error message. move usage text closer to main()
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-02 20:13:03 +01:00
Denys Vlasenko
4d4d1a015f
whitespace fix
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-01 02:19:47 +01:00
Denys Vlasenko
8531c43b50
decompress_bunzip2: reinstate erroneously deleted RETVAL_SHORT_WRITE
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-01 01:38:54 +01:00
Rob Landley
2658888c78
umount: cleanup and code shrink
...
Signed-off-by: Rob Landley <rob@landley.net >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-01 00:43:34 +01:00
Eric Lammerts
66be9197a5
stat: fix mtime/ctime/atime
...
If you set CONFIG_FEATURE_STAT_FORMAT=n, two of the three printed
times are wrong, because a global buffer is reused. Fix below.
Signed-off-by: Eric Lammerts <busybox@lists.lammerts.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-30 02:48:20 +02:00
Denys Vlasenko
d7559c2741
fdisk: fix trivial build failure
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-30 02:40:08 +02:00
Denys Vlasenko
11872cab32
networking/*: remove superfluous comments
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-30 02:24:48 +02:00
Denys Vlasenko
f16727ebbb
decompress_bunzip2: code shrink ~5 bytes
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-30 00:55:02 +02:00
Denys Vlasenko
0c576975c8
decompress_bunzip2: code shrink ~10 bytes
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-30 00:54:10 +02:00
Denys Vlasenko
5d49b72f1a
decompress_bunzip2: add profiling data to comment. no code changes
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-29 19:26:38 +02:00
Denys Vlasenko
1642d02710
scripts/mkdiff_obj: show "size OBJFILE" too
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-29 19:06:20 +02:00
Denys Vlasenko
1014a9adbf
decompress_bunzip2: relieve register pressure in hot function read_bunzip
...
function old new delta
unpack_bz2_stream 318 329 +11
read_bunzip 268 262 -6
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-29 19:01:58 +02:00
Denys Vlasenko
bf3bec51fc
decompress_bunzip2: keep bd->writeCRC in CPU reg in the hot loop
...
-5 bytes on 64-bit, +7 bytes on 32-bit.
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-29 18:16:29 +02:00
Denys Vlasenko
f29a1c5656
powertop: build fix for !386 compiles
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-29 16:25:18 +02:00
Denys Vlasenko
36ef0a677e
decompress_bunzip2: code shrink
...
function old new delta
get_next_block 1828 1827 -1
get_bits 164 156 -8
read_bunzip 304 261 -43
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-52) Total: -52 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-29 16:05:05 +02:00
Denys Vlasenko
fb132e4737
whitespace cleanup
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-29 11:46:52 +02:00
Denys Vlasenko
66cb7bed33
ifupdown: add manual method for IPv6. Closes bug 2497.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-29 02:42:20 +02:00
Denys Vlasenko
ec07420eb9
telnet: do not check for 0 return from poll (it's impossible)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-29 02:33:38 +02:00
Denys Vlasenko
036dbb9d9a
telnet: convert CR NUL -> CR on input. Closes bug 2569
...
function old new delta
telnet_main 1558 1594 +36
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-29 02:12:22 +02:00
Denys Vlasenko
6b3f0b0dab
unicode: update unicode_width on !unicode branch too. Closes bug 2593
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-29 00:50:09 +02:00
Denys Vlasenko
dc8ef353fd
dnsd: fix 64-bit bug 2539.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-29 00:37:56 +02:00
Denys Vlasenko
caddfc8339
decompress_bunzip2: handle concatenated .bz2 files
...
function old new delta
unpack_bz2_stream 207 307 +100
start_bunzip 199 209 +10
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/0 up/down: 110/0) Total: 110 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-28 23:08:53 +02:00
Marek Polacek
8410ac1a07
bloat-o-meter: make it python3 compliant
...
Python 3 doesn't support the iterkeys() method anymore. Use
iter(foo.keys()) instead of foo.iterkeys().
Signed-off-by: Marek Polacek <mmpolacek@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-28 21:39:40 +02:00
Marek Polacek
7b18107384
*: use _exit() in sighandlers; showkey: do not use exit-thru-sighandler
...
While at it, make ESC sequences more readable; and removed check for
isatty(stdin) in reset. Code shrink:
text data bss dec hex filename
884771 936 17216 902923 dc70b busybox_old
884723 936 17216 902875 dc6db busybox_unstripped
Signed-off-by: Marek Polacek <mmpolacek@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-28 21:34:56 +02:00
Denys Vlasenko
02788ac7e2
scripts: remove bitrotted scripts/individual
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-28 20:45:37 +02:00
Holger Blasum
b27d62af8b
update docs/new-applet-HOWTO.txt
...
Signed-off-by: Holger Blasum <hbl@sysgo.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-28 20:37:05 +02:00
Denys Vlasenko
756e95e782
ipcrm: small code shrink
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-28 19:10:46 +02:00
Denys Vlasenko
e4dcba1c10
*: whitespace fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-28 18:57:19 +02:00
Alexander Shishkin
7765095441
mount: pass NULL, not "", as "data" to mount syscall if we have no opts
...
When mounting a filesystem without any additional options (data parameter
to the mount(2) syscall), pass NULL instead of an empty string like GNU
mount does. This fixes, for example mounting cgroup fs with bbox mount.
Signed-off-by: Alexander Shishkin <virtuoso@slind.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-28 06:10:03 +02:00
Alexander Shishkin
78b286fea5
login: free fromhost upon cleaning up
...
Signed-off-by: Alexander Shishkin <virtuoso@slind.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-28 05:49:55 +02:00
Denys Vlasenko
16cc80e989
crc32: cleanups, no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-28 05:38:11 +02:00
Denys Vlasenko
db9ccc5772
netstat: was using buffers one byte short for scanf (no place for NUL). fixing
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-28 02:36:17 +02:00
Denys Vlasenko
9ce642f974
libbb: introduce and use common crc32 routine
...
function old new delta
crc32_block_endian1 - 37 +37
crc32_block_endian0 - 34 +34
global_crc32_table - 8 +8
file_read 82 87 +5
gzip_main 211 214 +3
xz_crc32 40 35 -5
crc32_table 8 - -8
calculate_gunzip_crc 54 34 -20
lzo_crc32 54 25 -29
cksum_main 298 211 -87
------------------------------------------------------------------------------
(add/remove: 3/1 grow/shrink: 2/4 up/down: 87/-149) Total: -62 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-27 15:26:45 +02:00
Denys Vlasenko
dd88ba88f5
netstat: fix IPv6 problem (garbage in scope_id); code shrink
...
function old new delta
add_to_prg_cache_if_socket - 253 +253
print_inet_line 226 241 +15
udp_do_one 119 131 +12
tcp_do_one 65 77 +12
unix_do_one 530 529 -1
dir_act 215 207 -8
netstat_main 585 553 -32
.rodata 145592 145525 -67
file_act 255 - -255
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 3/4 up/down: 292/-363) Total: -71 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-27 13:10:29 +02:00
Denys Vlasenko
c386aa5dcd
Merge branch 'master' of git+ssh://busybox.net/var/lib/git/busybox
2010-10-27 11:24:40 +02:00
Marek Polacek
3c99d59b5d
top: Use _exit() instead of exit() in sighandler
...
Signed-off-by: Marek Polacek <mmpolacek@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-27 02:25:16 +02:00
Bob Dunlop
55a046b4db
netstat: fix -r display in usage text
...
Signed-off-by: Bob Dunlop <bob.dunlop@xyzzy.org.uk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-27 02:12:29 +02:00
Denys Vlasenko
4fa07bd8fa
whitespace fix
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-27 00:04:50 +02:00
Denys Vlasenko
4c46d85469
mv: implement -n option
...
function old new delta
mv_longopts 23 36 +13
mv_main 510 520 +10
packed_usage 27218 27225 +7
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-26 15:58:47 +02:00
Denys Vlasenko
a43e969574
powertop: simplified C-state display code
...
function old new delta
.rodata 145530 145514 -16
powertop_main 1510 1403 -107
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-26 13:03:31 +02:00
Denys Vlasenko
d8b687f992
powertop: IPIs and hw irqs were swapped, fixing
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-26 12:42:53 +02:00
Denys Vlasenko
c3f1fa10d6
powertop: fixes to output format and code shrink
...
function old new delta
process_timer_stats - 631 +631
clear_lines 72 74 +2
process_irq_counts 729 726 -3
.rodata 145699 145530 -169
powertop_main 2341 1510 -831
------------------------------------------------------------------------------
(add/remove: 2/1 grow/shrink: 1/2 up/down: 1359/-1729) Total: -370 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-26 12:39:36 +02:00
Denys Vlasenko
373789e567
powertop: code shrink
...
function old new delta
process_irq_count_deltas - 729 +729
read_cstate_counts - 358 +358
save_line - 150 +150
clear_lines 80 72 -8
line_compare 18 7 -11
.rodata 145736 145699 -37
powertop_main 2527 2341 -186
push_line 193 - -193
read_data 348 - -348
do_proc_irq 890 - -890
------------------------------------------------------------------------------
(add/remove: 3/3 grow/shrink: 0/4 up/down: 1237/-1673) Total: -436 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-26 02:54:13 +02:00
Denys Vlasenko
a2d27a1919
libbb/process_escape_sequence.c: fix recently broken handling of \\
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-25 12:14:21 +02:00
Marek Polacek
b507cc3ace
powertop: new applet
...
Signed-off-by: Marek Polacek <mmpolacek@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-25 03:44:34 +02:00
Kevin Cernekee
ccb070450e
fdisk: initial stab at GPT partition support
...
Signed-off-by: Kevin Cernekee <cernekee@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-25 02:00:24 +02:00
Denys Vlasenko
3b060528a2
init: do not sleep forever on usage errors
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-25 00:40:32 +02:00
Denys Vlasenko
03a5fe378e
sha1: small tweak for clearer code, no logic changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-24 20:51:28 +02:00
Denys Vlasenko
f4c93ab304
sha1: use Rob's code, it's smaller and faster
...
function old new delta
static.rconsts - 16 +16
sha1_process_block64 460 298 -162
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/1 up/down: 16/-162) Total: -146 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-24 19:27:30 +02:00
Denys Vlasenko
4b63e16d20
md5/sha1sum: code shrink
...
function old new delta
hash_file 357 279 -78
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-24 14:54:53 +02:00
Denys Vlasenko
ba04337e1f
umount: I forgot to change another PATH_MAX to 4096
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-24 13:28:45 +02:00
Denys Vlasenko
17fc33dfbd
finish busybox.1 renaming
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-24 03:46:16 +02:00
Rob Landley
d8205b39ab
awk: reduce ifdef forest
...
Signed-off-by: Rob Landley <rob@landley.net >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-24 03:27:22 +02:00
Denys Vlasenko
738e4de013
English fixes to docs/smallint.txt
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-24 03:23:59 +02:00
Denys Vlasenko
8f8ee534a7
adding docs/smallint.txt
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-24 03:07:18 +02:00
Denys Vlasenko
58647e8f85
Remove check for supported libc.
...
If it is not supported, it won't work. No need to break working ones
which happen to this over this check.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-24 03:02:57 +02:00
Denys Vlasenko
07b1c6ecc0
umount: do not (ab)use PATH_MAX as mntent buffer size
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-24 03:00:57 +02:00
Denys Vlasenko
1c26e05f30
remove unused SC_x (serial port names) defines
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-24 02:35:17 +02:00
Denys Vlasenko
57b68331e4
correct manpage name
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-24 02:09:32 +02:00
Denys Vlasenko
f2657a9968
init: do not clear CRTSCTS (fix from Debian bug 528560)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-24 02:04:10 +02:00
Denys Vlasenko
2b299fed6a
awk: fix breakage in last commit
...
While at it, made bb_process_escape_sequence faster (same size)
function old new delta
nextchar 49 53 +4
bb_process_escape_sequence 138 140 +2
next_token 838 839 +1
static.charmap 20 18 -2
is_assignment 143 135 -8
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/2 up/down: 7/-10) Total: -3 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-24 01:58:04 +02:00
Denys Vlasenko
5360059131
libbb: introduce and use strcpy_and_process_escape_sequences
...
function old new delta
strcpy_and_process_escape_sequences - 50 +50
bb_process_escape_sequence 148 138 -10
printf_main 789 776 -13
getty_main 1897 1831 -66
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/3 up/down: 50/-89) Total: -39 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-23 21:06:06 +02:00
Denys Vlasenko
6a0d7490ea
awk: fix segfault on closing non-opened file
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-23 21:02:15 +02:00
Alexander Shishkin
54779a47e9
mount: code shrink (-81 bytes)
...
Signed-off-by: Alexander Shishkin <virtuoso@slind.org >
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-22 13:35:47 +02:00
Alexander Shishkin
6722737ece
*: introduce and use xmkstemp. -65 bytes.
...
Signed-off-by: Alexander Shishkin <virtuoso@slind.org >
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-22 13:27:16 +02:00
Alexander Shishkin
cbfeaac7af
smemcap: close /proc handle upon cleaning up
...
Signed-off-by: Alexander Shishkin <virtuoso@slind.org >
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-22 13:18:23 +02:00
Alexander Shishkin
46b6cd7630
nbd-client: kill unused variable (total 0 bytes)
...
Signed-off-by: Alexander Shishkin <virtuoso@slind.org >
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-22 13:16:53 +02:00
Denys Vlasenko
d3036ef608
pmap: get rid of a warning
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-22 13:15:15 +02:00
Denys Vlasenko
0bb35e19a7
udhcpd: reduce stack usage by ~700 bytes. +28 bytes code size
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-21 12:33:10 +02:00
Lukas Huba
08187356d7
patch: implement -E option
...
Signed-off-by: Lukas Huba <Huba.Lukas@centrum.cz >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-21 00:43:00 +02:00
Denys Vlasenko
e7599d1cc7
revert last change (wrong author)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-21 00:42:15 +02:00
Gilles Espinasse
f0c7e0c8d5
patch: implement -E option
...
Signed-off-by: Gilles Espinasse <g.esp@free.fr >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-21 00:39:46 +02:00
Alexander Shishkin
2348e09557
tail: free tailbuf upon cleaning up
...
Signed-off-by: Alexander Shishkin <virtuoso@slind.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-21 00:25:45 +02:00
Alexander Shishkin
a7027bf89e
stat: remove superfluous setXXent() calls, plug memory leak
...
function old new delta
print_stat 875 865 -10
Signed-off-by: Alexander Shishkin <virtuoso@slind.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-21 00:24:05 +02:00
Leonid Lisovskiy
894ef60032
ntpd: fix usage text and a typo in constant name
...
Signed-off-by: Leonid Lisovskiy <lly.dev@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-20 22:36:51 +02:00
Denys Vlasenko
5d374e9b14
udhcpc: exit if iface disappeared; use correct MAC if it changes
...
function old new delta
udhcpc_main 2560 2618 +58
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-20 22:26:38 +02:00
Denys Vlasenko
c72c1d7b31
udhcpc: reduce stack usage by de-inlining routines with on-stack pkt buf
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-20 22:08:16 +02:00
Denys Vlasenko
a5048fa386
udhcpc: periodically reread our ifindex and mac
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-20 21:38:29 +02:00
Denys Vlasenko
b3af65b95d
udhcpc: emit maxsize option in all non-NAK type packets
...
Before, we were sending them only in DISCOVER packets.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-20 21:37:23 +02:00
Denys Vlasenko
2c3b71a0d2
dhcp: typo fix: UPD_DHCP_SIZE -> UDP_DHCP_SIZE
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-20 18:04:36 +02:00
Denys Vlasenko
c59e06e471
udhcpc: better help text
...
function old new delta
packed_usage 27452 27486 +34
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-20 16:10:59 +02:00
Denys Vlasenko
ff19d525a9
add/remove-shell: use O_TRUNC instead of O_EXCL
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-20 15:14:32 +02:00
Alexander Shishkin
5be79ff27a
add-shell, remove-shell: new applets
...
function old new delta
add_remove_shell_main - 259 +259
packed_usage 27408 27438 +30
applet_names 2326 2349 +23
applet_main 1364 1372 +8
applet_nameofs 682 686 +4
run_applet_and_exit 700 703 +3
dont_add - 2 +2
applet_install_loc 171 172 +1
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 6/0 up/down: 330/0) Total: 330 bytes
Signed-off-by: Alexander Shishkin <virtuoso@slind.org >
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-20 13:22:58 +02:00
Denys Vlasenko
bec588878b
*: s/open3_or_warn/open_or_warn/ where makes sense
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-20 13:21:22 +02:00
Denys Vlasenko
d3c5ab703b
udhcpc: remove now-unneeded definitions of vendor and client-id opts
...
function old new delta
dhcp_optflags 68 64 -4
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-20 02:03:30 +02:00
Denys Vlasenko
1cbdc03411
udhcpc: remove -c CLIENTID, it is hard to use, -x 61:hexstring does the same better
...
function old new delta
packed_usage 27802 27808 +6
static.udhcpc_longopts 261 250 -11
udhcpc_main 2799 2780 -19
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/2 up/down: 6/-30) Total: -24 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-20 01:42:37 +02:00
Denys Vlasenko
9e244c7600
udhcpc: move usage text to .c file. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-20 01:38:56 +02:00
Denys Vlasenko
f04ca74ab5
dmesg: more correct skipping of <N>; use faster putchar for most output
...
function old new delta
dmesg_main 246 291 +45
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-19 23:08:33 +02:00
Denys Vlasenko
0016bcee37
klogd: do not log partial lines
...
function old new delta
overlapping_strcpy 15 18 +3
klogd_main 438 436 -2
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-19 23:07:49 +02:00
Thomas Chou
ef6c6d8cfe
mkmakefile: make 3.82 fix
...
Signed-off-by: Thomas Chou <thomas@wytron.com.tw >
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-19 12:49:51 +02:00
Denys Vlasenko
7ab94ca351
md5: remove outdated comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-19 02:33:39 +02:00
Denys Vlasenko
302ad1450e
libbb/hash_md5_sha: use common ctx and code for md5 and sha1/256
...
function old new delta
sha256_process_block64 421 433 +12
md5_crypt 578 587 +9
md5_begin 43 50 +7
md5_hash 99 97 -2
sha1_end 85 82 -3
md5_end 36 31 -5
common64_end 93 86 -7
sha1_hash 97 - -97
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-19 02:16:12 +02:00
Baruch Siach
d982da79de
nanddump: make oobbuf allocation dynamic
...
In accordance with upstream mtd-utils commit 96a5eeaf (mtd-utils: nanddump:
Dynamic buffer, increase pagesize/oobsize).
Signed-off-by: Baruch Siach <baruch@tkos.co.il >
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-18 15:34:58 +02:00
Denys Vlasenko
c48a5c607d
hash_md5_sha: use common finalization routine for MD5 and sha1/256. -15 bytes
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-18 14:48:30 +02:00
Denys Vlasenko
b5aa1d95a1
libbb/hash_sha.c -> libbb/hash_md5_sha.c
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-18 13:47:47 +02:00
Denys Vlasenko
eb7fe6dbf5
libbb: move md5 and shaN into a common source file. no code changes
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-18 13:46:07 +02:00
Denys Vlasenko
e08ef581af
md5: length should be stored in *little-endian* order! fixing...
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-18 11:50:17 +02:00
Denys Vlasenko
9ff50b8697
*: deinline SWAP_xE64 on 32-bit CPUs. Wins !90 bytes both on 32 and 64 bits
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-18 11:40:26 +02:00
Denys Vlasenko
b102e12253
*: use SWAP_BE64 instead of open-coding it
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-18 11:39:47 +02:00
Denys Vlasenko
06f719fd79
libbb: rename hash source files. no code changes
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-18 10:38:18 +02:00
Denys Vlasenko
5fe2f863b9
sort: -o FILE should create/truncate FILE
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-18 02:43:57 +02:00
Denys Vlasenko
c05387d5de
*: replace xopen3 with xopen where makes sense
...
function old new delta
uniq_main 421 416 -5
sort_main 803 798 -5
patch_main 2051 2046 -5
cpio_main 547 542 -5
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-18 02:38:27 +02:00
Baruch Siach
36af2f7977
nanddump: new applet
...
function old new delta
nandwrite_main 418 936 +518
dump_bad - 119 +119
packed_usage 27752 27810 +58
next_good_eraseblock 84 106 +22
applet_names 2366 2375 +9
applet_main 1380 1384 +4
applet_nameofs 690 692 +2
bbconfig_config_bz2 4932 4922 -10
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 6/1 up/down: 732/-10) Total: 722 bytes
Signed-off-by: Baruch Siach <baruch@tkos.co.il >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-18 02:36:34 +02:00
Pascal Bellard
873bb31d17
cpio: avoid 'not created: newer or same age file exists' message for dirs
...
Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-18 00:54:51 +02:00
Pascal Bellard
cadf90184c
depmod: accept and ignore -u, -q, -C FILE
...
Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-18 00:51:16 +02:00
Pascal Bellard
122a4b30f4
touch: update help text
...
Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-18 00:43:07 +02:00
Denys Vlasenko
b8d02597e3
md5: fix biuld failure on big-endian machines
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-17 23:01:32 +02:00
Kevin Cernekee
2b0116803b
docs: Sync up AUTHORS and busybox_footer.pod
...
Signed-off-by: Kevin Cernekee <cernekee@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-17 14:12:34 +02:00
Kevin Cernekee
20e2c35b7c
docs: Change CVS references to Git
...
Signed-off-by: Kevin Cernekee <cernekee@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-17 14:12:33 +02:00
Denys Vlasenko
ea694163af
typo fix
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-17 12:45:24 +02:00
Denys Vlasenko
786635e62e
seq: exit on write errors
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-17 12:44:39 +02:00
Vladislav Grishenko
ad8def2d8a
udhcpc: fix OPTION_IP_PAIR parsing
...
http://git.busybox.net/busybox/commit/?id=7d3a48a003cd645edfae2b404493688022
revealed incorrect OPTION_IP_PAIR implementation, which doesn't respect
option length and causes erroneous classful routes, composed from garbage
or first bytes from the next DHCP packet option.
Signed-off-by: Vladislav Grishenko <themiron@mail.ru >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-17 12:27:50 +02:00
Denys Vlasenko
cfe114c4f3
md5: code shrink -5 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-17 11:38:44 +02:00
Denys Vlasenko
f6dacc23ff
bring md5 and sha1 names closer. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-17 03:21:51 +02:00
Denys Vlasenko
36ab585f68
md5: code shrink
...
function old new delta
md5_end 125 104 -21
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-17 03:00:36 +02:00
Denys Vlasenko
a971a192e8
shaN: code shrink
...
function old new delta
init512_lo 32 40 +8
init256 32 40 +8
sha256_begin 42 28 -14
sha512_begin 81 53 -28
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/2 up/down: 16/-42) Total: -26 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-17 01:35:16 +02:00
Denys Vlasenko
446c2349b6
whitespace fix
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-16 23:39:43 +02:00
Denys Vlasenko
4bc3b85894
sha512: inline rotr64
...
function old new delta
sha1_process_block64 461 446 -15
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-16 23:31:15 +02:00
Denys Vlasenko
273abcbf66
shaN: small code shrink
...
function old new delta
sha512_hash 134 128 -6
sha1_hash 114 106 -8
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-16 22:43:34 +02:00
Denys Vlasenko
1ac476bb85
md5: fix "fast" md5 broken by prev commit
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-16 21:34:36 +02:00
Denys Vlasenko
e8ee86250d
testsuite: add tests for {ms5,shaN}sum
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-16 21:26:47 +02:00
Denys Vlasenko
bcccad3531
md5: code shrink; and use 64-byte temp buf, not 128-byte.
...
function old new delta
md5_hash 111 108 -3
md5_end 129 125 -4
md5_hash_block 459 454 -5
filter_rename_config 250 244 -6
md5_crypt 587 578 -9
popmaildir_main 828 816 -12
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/6 up/down: 0/-39) Total: -39 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-16 20:46:35 +02:00
Denys Vlasenko
c0683acce8
*: pass md5/shaN context pointer as 1st arg, not last
...
function old new delta
md5_hash_block 458 459 +1
filter_rename_config 252 250 -2
md5_crypt 591 587 -4
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-16 20:45:27 +02:00
Denys Vlasenko
1a5e11c874
modutils/*: move help bits into corresponding .c files
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-16 01:56:41 +02:00
Denys Vlasenko
70186711f4
libbb/md5: code shrink
...
function old new delta
md5_end 123 117 -6
md5_begin 49 42 -7
md5_hash 119 104 -15
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-16 01:08:32 +02:00
Denys Vlasenko
3d16098494
libbb/md5: small code shrink
...
function old new delta
md5_end 151 123 -28
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-15 18:05:51 +02:00
Denys Vlasenko
c15613c975
modutils/*: move applet bits into corresponding *.c files
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-15 11:29:02 +02:00
Denys Vlasenko
f2710d0221
date: move applet and usage bits to date.c
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-15 10:42:17 +02:00
Denys Vlasenko
05e8605ab8
remove runit/runit_lib.c
...
function old new delta
runsv_main 1770 1786 +16
svstatus_get 176 188 +12
sv_main 1180 1186 +6
runsvdir_main 683 689 +6
processorstart 385 391 +6
control 126 132 +6
logdir_open 1184 1187 +3
lock_exnb 14 - -14
lock_ex 14 - -14
open_write 17 - -17
open_read 17 - -17
------------------------------------------------------------------------------
(add/remove: 0/5 grow/shrink: 7/0 up/down: 55/-62) Total: -7 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-13 12:53:27 +02:00
Denys Vlasenko
b1db09be5a
init/*: move applet/kbuild/config/help bits into applet source files
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-12 13:47:15 +02:00
Denys Vlasenko
d4d289acf5
tweaks to build system, mainly making menuconfig text and order clearer
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-12 04:18:05 +02:00
Denys Vlasenko
b1993380ba
remove findutils/.gitignore, top-level one covers it
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-11 12:53:19 +02:00
Denys Vlasenko
3b2acb759c
tweak help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-09 21:10:32 +02:00
Denys Vlasenko
c1e3027f11
fix help text punctuation
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-08 15:04:23 +02:00
Denys Vlasenko
6b0ac8487a
tweak usage texts
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-07 13:25:09 +02:00
Denys Vlasenko
c0f39b0fb2
dhcprelay: code shrink, and explain its workings a bit more
...
function old new delta
sendto_ip4 - 55 +55
dhcprelay_main 1059 942 -117
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/1 up/down: 55/-117) Total: -62 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-06 01:45:24 +02:00
Denys Vlasenko
28458c64db
awk: code shrink
...
function old new delta
fsrealloc 112 107 -5
next_token 862 844 -18
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-05 16:49:03 +02:00
Denys Vlasenko
d527e0c81d
awk: 00.123 is not a octal constant; neither is 009.123. fixing this
...
function old new delta
my_strtod 80 113 +33
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-05 13:22:11 +02:00
Vladimir Dronnikov
5b34300178
sendmail: fix assumption that headers should have a space after the colon
...
Signed-off-by: Vladimir Dronnikov <dronnikov@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-05 01:21:32 +02:00
Richard Braun
5aa4d53273
tune2fs: implement -c and -i options
...
function old new delta
tune2fs_main 165 256 +91
Signed-off-by: Richard Braun <rbraun@sceen.net >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-05 00:39:46 +02:00
Denys Vlasenko
cacb2cd281
*: whitespace fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-05 00:13:02 +02:00
Denys Vlasenko
afc7b4c0d8
wc: add support for -m
...
function old new delta
wc_main 601 637 +36
packed_usage 27357 27358 +1
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-04 17:08:14 +02:00
Denys Vlasenko
09e7dafbfe
wc: preparatory patch, no logic changes
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-04 17:04:20 +02:00
Denys Vlasenko
9a1b260547
man: add compatibility with man-db
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-04 14:19:59 +02:00
Denys Vlasenko
d678257c26
ntpd: allow peer-less (standalone stratum 1 server) operation
...
Based on patch by Jean-Christophe Dubois (jcd@tribudubois.net )
function old new delta
ntp_init 384 399 +15
recv_and_process_client_pkt 469 480 +11
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-04 01:20:44 +02:00
Rob Landley
9d113cac42
patch: tweaks
...
1) Eliminate spurious warnings about possibly reduced hunks. Instead only
note a possible location if we don't find a non-reversed place to apply it.
(Otherwise, hunks that move code forward around within a file look reversed at
the removal site.)
2) Open the source file read-only, so we can apply patches to read-only files.
Signed-off-by: Rob Landley <rob@landley.net >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-04 00:49:48 +02:00
Denys Vlasenko
e2069fb325
hush: remove "doesn't support brace expansion" from config help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-04 00:01:47 +02:00
Denys Vlasenko
bbecd74d5a
hush: remove brace expansion from TODO list in comments. No code changes.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-03 17:22:52 +02:00
Denys Vlasenko
957f79f471
hush: small code shrink
...
function old new delta
expand_on_ifs 231 222 -9
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-03 17:15:50 +02:00
Denys Vlasenko
2bcba5cc53
hush: add brace expansion testcase
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-03 17:07:57 +02:00
Denys Vlasenko
9e800223f1
hush: implement brace expansion
...
When enabled:
function old new delta
glob_brace - 402 +402
next_brace_sub - 70 +70
expand_on_ifs 185 231 +46
bbconfig_config_bz2 4923 4929 +6
o_save_ptr 282 140 -142
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 2/1 up/down: 524/-142) Total: 382 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-03 14:28:04 +02:00
Denys Vlasenko
238081f750
hush: preparatory patch, no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-03 14:26:26 +02:00
Denys Vlasenko
0296fd3af1
grep: cap insane -B NUM values to MAX_INT / 8. Fixes bug 2653.
...
function old new delta
grep_main 766 779 +13
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-02 12:42:28 +02:00
Dan Fandrich
2d1a78b88f
Marked some more applets NOEXEC/NOFORK
...
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-01 23:35:09 +02:00
Denys Vlasenko
5657d374db
free: document newly added options
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-01 22:42:44 +02:00
Denys Vlasenko
5542934d65
free: add -b/k/m/g options; remove 4 TB limitation. +100 bytes
...
Based on patch by Stefan Tomanek (stefan@pico.ruhr.de )
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-01 21:57:59 +02:00
Denys Vlasenko
ee5ab8f321
halt/poweroff/reboot: unify help text
...
function old new delta
packed_usage 27755 27733 -22
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-09-30 23:44:08 +02:00
Denys Vlasenko
6e852408a9
deluser: use the same licensing template in the header as other files do
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-09-30 18:51:25 +02:00
Souf Oued
ccb7a43900
acpid: add config file and map file
...
function old new delta
acpid_main 434 1137 +703
find_action - 204 +204
f_evt_tab - 48 +48
packed_usage 27724 27755 +31
f_act_tab - 16 +16
process_event 126 - -126
------------------------------------------------------------------------------
(add/remove: 3/1 grow/shrink: 2/0 up/down: 1002/-126) Total: 876 bytes
Signed-off-by: Souf Oued <souf_oued@yahoo.fr >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-09-26 12:40:05 +02:00
Vladislav Grishenko
7d3a48a003
udhcp: add support for 0x21 ROUTES and 0xf9 MS_STATIC_ROUTES options
...
Signed-off-by: Vladislav Grishenko <themiron@mail.ru >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-09-26 00:15:12 +02:00
Denys Vlasenko
04bcd998ca
style fix. no code chages
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-09-25 17:19:04 +02:00
Denys Vlasenko
b563f62bbb
ash: fix signal and "set -e" interaction
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-09-25 17:15:13 +02:00
Denys Vlasenko
5b3151c201
modprobe-simple; do not error out on "rmmod module" if module is unloaded ok
...
...even if it wasn't found in /lib/modules/VER/
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-25 14:37:06 +02:00
Denys Vlasenko
0f2e278a8a
sleep: fix fractional arguments in non-POSIX locale
...
function old new delta
sleep_main 390 379 -11
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-24 12:39:45 +02:00
Nguyễn Thái Ngọc Duy
ebec11dff1
wget: flush output to network before receving reply
...
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com >
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-23 15:18:41 +02:00
Rob Landley
1fc20c446f
nbd-client: new applet
...
function old new delta
nbdclient_main - 537 +537
daemon - 162 +162
packed_usage 27682 27724 +42
applet_names 2355 2366 +11
bbconfig_config_bz2 4918 4922 +4
applet_main 1376 1380 +4
applet_nameofs 688 690 +2
applet_install_loc 172 173 +1
------------------------------------------------------------------------------
(add/remove: 4/0 grow/shrink: 6/0 up/down: 763/0) Total: 763 bytes
Signed-off-by: Rob Landley <rob@landley.net >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-09-23 02:03:47 +02:00
Harald Becker
361b1a6884
deluser: make it simpler, fix inability to delete user from group
...
Also makes menuconfig order more sensible
Signed-off-by: Harald Becker <ralda@gmx.de >
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-22 18:03:29 +02:00
Denys Vlasenko
0e13b4019c
hush: use smaller EXP_FLAG_foo constants
...
function old new delta
expand_string_to_string 126 124 -2
parse_stream 2376 2370 -6
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-8) Total: -8 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-21 12:35:39 +02:00
Dan Fandrich
63adf83814
fix build failure for pmap
...
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-19 17:13:21 +02:00
Denys Vlasenko
395b97aeac
shell/math: better comment. no code changes
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-17 18:02:17 +02:00
Denys Vlasenko
c8f9a8d3c0
move read_base64 to libbb/uuencode.c
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-16 18:10:04 +02:00
Denys Vlasenko
9fe98f701d
libbb: merge mail and uudecode's base64 decoders
...
function old new delta
read_base64 - 378 +378
uudecode_main 306 315 +9
parse 953 958 +5
read_stduu 250 254 +4
base64_main 217 219 +2
read_base64 358 - -358
decode_base64 371 - -371
------------------------------------------------------------------------------
(add/remove: 2/2 grow/shrink: 4/0 up/down: 398/-729) Total: -331 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-16 17:51:13 +02:00
Denys Vlasenko
52e460b744
hush: move shell_ver from globals to main's stack.
...
function old new delta
hush_main 995 1011 +16
pseudo_exec_argv 253 251 -2
execvp_or_die 50 48 -2
maybe_set_to_sigexit 50 47 -3
hush_exit 78 75 -3
builtin_wait 274 271 -3
check_and_run_traps 205 200 -5
init_sigmasks 214 190 -24
builtin_trap 465 441 -24
reset_traps_to_defaults 238 211 -27
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/9 up/down: 16/-93) Total: -77 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-16 16:12:00 +02:00
Denys Vlasenko
0fdf2e1026
simpler check for od
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-16 15:46:20 +02:00
Denys Vlasenko
06a80bdbea
build system: test that od is present in the host system
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-16 13:23:15 +02:00
Denys Vlasenko
bed7c81ea2
shell/math: deconvolute and explain ?: handling. Give better error message
...
function old new delta
arith_apply 1271 1283 +12
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-16 11:50:46 +02:00
Denys Vlasenko
063847d6bd
shell/math: return string error indicator, not integer
...
function old new delta
expand_and_evaluate_arith 87 106 +19
expand_one_var 1563 1570 +7
arith 12 18 +6
evaluate_string 678 680 +2
arith_apply 1269 1271 +2
builtin_umask 133 132 -1
ash_arith 118 75 -43
expand_vars_to_list 1094 1038 -56
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 5/3 up/down: 36/-100) Total: -64 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-15 13:33:02 +02:00
Denys Vlasenko
197a6b3c14
sleep: make it non-NOFORK. Fixes ^C in standalone shell
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-14 12:57:05 +02:00
Denys Vlasenko
0eac8ff164
shell/math.c: stop using bss variable
...
function old new delta
evaluate_string - 678 +678
expand_one_var 1543 1563 +20
builtin_type 114 116 +2
expand_and_evaluate_arith 89 87 -2
prev_chk_var_recursive 4 - -4
ash_arith 122 118 -4
arith_lookup_val 142 132 -10
arith 674 12 -662
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 2/4 up/down: 700/-682) Total: 18 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-13 12:49:52 +02:00
Denys Vlasenko
06d44d7dfb
shell/math.c: rename arith_eval_hooks to arith_state, put error code into it
...
function old new delta
expand_and_evaluate_arith 79 89 +10
arith 675 674 -1
arith_lookup_val 151 142 -9
ash_arith 135 122 -13
arith_apply 1304 1269 -35
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/4 up/down: 10/-58) Total: -48 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-13 12:49:03 +02:00
Denys Vlasenko
bd14770b0c
shell/math.c: small code shrink; fixed incomprehensible comments
...
function old new delta
arith_apply 1334 1304 -30
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-13 11:11:40 +02:00
Denys Vlasenko
51850c818c
shell: small code shrink
...
function old new delta
arith 680 675 -5
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-13 01:09:11 +02:00
Denys Vlasenko
b771c654ca
shell: shrink arith code; and prepare for returning text error codes
...
function old new delta
arith 701 680 -21
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-13 00:34:26 +02:00
Denys Vlasenko
99862cbfad
hush: optional support for history saving
...
function old new delta
hush_main 945 995 +50
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-12 17:34:13 +02:00
Denys Vlasenko
5a0d899ee4
smemcap: use correct tar magic
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-12 17:13:29 +02:00
Marek Polacek
7dd61e3772
*: s/perror/bb_simple_perror_msg/g
...
function old new delta
readLines 448 446 -2
doCommands 2449 2438 -11
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-13) Total: -13 bytes
Signed-off-by: Marek Polacek <mmpolacek@gmail.com >
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-12 17:06:43 +02:00
Dan Fandrich
80d80ba6dd
Fixed a couple of failing tar tests
...
The tar symlinks mode test is fixed similarly to the hardlinks
test in 0d7cb4cc , and the read-only test is skipped by
SKIP_KNOWN_BUGS.
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-12 16:19:33 +02:00
Denys Vlasenko
819cacfd45
busybox: add "busybox --list[-full]" to help text
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-12 16:17:37 +02:00
Denys Vlasenko
de8c3f667a
hush: move the EXIT trap comment. no code changes
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-12 16:13:44 +02:00
Denys Vlasenko
a110c90de2
hush: fix EXIT trap display inside exit trap handler
...
function old new delta
hush_exit 84 78 -6
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-12 15:38:04 +02:00
Denys Vlasenko
2d8187c139
shell/match.c: shrink by dropping double bool inversion
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-12 15:06:42 +02:00
Denys Vlasenko
acd5bc8f64
hush: fix handling of \" in quoted/unquoted cmd
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-12 15:05:39 +02:00
Denys Vlasenko
958581a8d9
ash: shrink by folding an if check into setprompt; unindent big block
...
function old new delta
setprompt_if - 66 +66
parseheredoc 126 124 -2
parsecmd 68 66 -2
redirect 1254 1249 -5
xxreadtoken 351 343 -8
readtoken1 3219 3204 -15
setprompt 62 - -62
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 0/5 up/down: 66/-94) Total: -28 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-12 15:04:27 +02:00
Denys Vlasenko
6040fe88f4
ash: add missing casts to match CTLfoo; add TODO comments
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-12 15:03:16 +02:00
Denys Vlasenko
5277a9db70
hush: remove forgotten commented-out block. no code changes
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-10 15:34:53 +02:00
Denys Vlasenko
4f870496e7
hush: do fewer strdups in % and hash expansions
...
function old new delta
builtin_umask 133 132 -1
expand_one_var 1552 1543 -9
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-10 11:06:01 +02:00
Denys Vlasenko
d98e5c65c3
hush: better function and parameter names
...
Also, trim code which isn't needed for non-bash compat.
No logic changes.
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-10 10:44:23 +02:00
Denys Vlasenko
cc461736d6
hush: fixes to testsuite
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-10 10:19:22 +02:00
Denys Vlasenko
ebee410fe2
hush: fix var_bash5.tests failure
...
function old new delta
expand_one_var 1513 1552 +39
expand_pseudo_dquoted 118 135 +17
expand_string_to_string 110 126 +16
setup_heredoc 298 308 +10
expand_and_evaluate_arith 69 79 +10
parse_stream_dquoted 233 241 +8
setup_redirects 220 225 +5
run_list 956 961 +5
expand_assignments 76 81 +5
run_pipe 1587 1590 +3
parse_stream 2371 2374 +3
builtin_umask 132 133 +1
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 12/0 up/down: 122/0) Total: 122 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-10 10:17:53 +02:00
Denys Vlasenko
14e289b324
hush: fix var_bash3.tests failure
...
function old new delta
expand_one_var 1513 1538 +25
parse_stream_dquoted 233 241 +8
expand_pseudo_dquoted 118 126 +8
setup_heredoc 298 303 +5
expand_and_evaluate_arith 69 74 +5
parse_stream 2371 2374 +3
builtin_umask 132 133 +1
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 7/0 up/down: 55/0) Total: 55 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-10 10:15:18 +02:00
Denys Vlasenko
a769e0225d
hush: remove useless ESC_GLOB_CHARS clears/resotres
...
function old new delta
o_addQstr 43 165 +122
expand_on_ifs 210 189 -21
expand_vars_to_list 1122 1094 -28
o_addqblock 139 - -139
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 1/2 up/down: 122/-188) Total: -66 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-10 10:12:34 +02:00
Denys Vlasenko
bfc02a76c5
hush: fix a bug where expand_one_var wasn't restoring 1st char of the encoded $var
...
function old new delta
expand_one_var 1515 1513 -2
expand_vars_to_list 1133 1122 -11
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-09 14:38:46 +02:00
Denys Vlasenko
101a4e3e21
hush: make parse_dollar flag quited status regardless of glob escaping status
...
function old new delta
parse_stream_dquoted 228 233 +5
parse_stream 2369 2371 +2
parse_dollar 730 717 -13
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 7/-13) Total: -6 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-09 14:04:57 +02:00
Denys Vlasenko
5b6210cf49
hush: simplification in parse_stream, parse_stream_dquoted
...
function old new delta
parse_stream 2354 2369 +15
parse_stream_dquoted 250 228 -22
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-09 13:32:21 +02:00
Denys Vlasenko
850b15bfaf
hush: simplify parse_stream_dquoted
...
function old new delta
parse_stream_dquoted 303 250 -53
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-09 12:58:19 +02:00
Denys Vlasenko
77a7b5519c
hush: straighten out the logic in parse_stream
...
function old new delta
parse_stream 2399 2354 -45
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-09 12:40:03 +02:00
Dan Fandrich
77d4872691
Avoid side effects in putc(), which may be implemented as a macro
...
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-09 11:48:02 +02:00
Denys Vlasenko
95d48f2598
hush: eliminate redundant parameter of expand_vars_to_list()
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-08 13:58:55 +02:00
Denys Vlasenko
5b686cb8e6
hush: replace flag bytes in struct o_string with bit flags
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-08 13:44:34 +02:00
Denys Vlasenko
9b78255dca
hush: remove unused enum typedef
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-08 13:33:26 +02:00
Denys Vlasenko
1fd3d94a6c
hush: fix set -- q w e; (IFS='' echo "$*"; IFS=''; echo "$*"); echo "$*"
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-08 13:31:53 +02:00
Denys Vlasenko
b103fb10cf
nc: show help text on bad parameters
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-07 18:41:56 +02:00
Denys Vlasenko
d55f599440
lineedit: do not hang on error, but return error indicator.
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-07 18:40:53 +02:00
Denys Vlasenko
8b2f13d84d
shell: unify endofname() in hush and ash
...
function old new delta
builtin_umask 132 133 +1
changepath 195 194 -1
expand_and_evaluate_arith 77 69 -8
ash_arith 143 135 -8
expand_one_var 1551 1515 -36
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/4 up/down: 1/-53) Total: -52 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-07 12:19:33 +02:00
Denys Vlasenko
27c56f1267
hush: a few relatively trivial simplifications
...
function old new delta
helper_export_local 130 135 +5
set_vars_and_save_old 89 85 -4
expand_variables 147 141 -6
get_ptr_to_local_var 77 70 -7
get_local_var_value 171 164 -7
delete_finished_bg_job 31 16 -15
hush_exit 101 84 -17
free_pipe_list 31 12 -19
check_and_run_traps 232 205 -27
free_pipe 205 130 -75
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/9 up/down: 5/-177) Total: -172 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-07 09:56:34 +02:00
Denys Vlasenko
da463fb007
hush: style cleanups. no code changes
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-07 09:53:50 +02:00
Denys Vlasenko
f38b912fcf
Again fix license line format
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-06 17:41:46 +02:00
Denys Vlasenko
571c5ab768
blockdev: code shrink
...
function old new delta
blockdev_main 292 255 -37
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-06 17:37:52 +02:00
Denys Vlasenko
a35dfe6200
blockdev: make "blockdev --rereadpt /dev/sda EXTRA_ARG" complain. +6 bytes.
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-06 16:31:18 +02:00
Denys Vlasenko
3d4a8f8646
made 3 license strings to follow the usual form ("or later" bit is not changed!)
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-06 16:22:25 +02:00
Denys Vlasenko
264bdadb2c
blockdev: -2 bytes
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-06 15:34:15 +02:00
Denys Vlasenko
b4e6b41934
tweak blockdev's help text
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-06 14:15:46 +02:00
Denys Vlasenko
b1560000c7
tweak udhcpd help text
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-06 13:39:59 +02:00
Sergey Naumov
289aff8623
blockdev: new applet
...
function old new delta
blockdev_main - 287 +287
bdcommands - 160 +160
packed_usage 27203 27298 +95
applet_names 2297 2306 +9
applet_main 1352 1356 +4
applet_nameofs 676 678 +2
applet_install_loc 169 170 +1
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 5/0 up/down: 558/0) Total: 558 bytes
Signed-off-by: Sergey Naumov <sknaumov@gmail.com >
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-06 13:35:58 +02:00
Denys Vlasenko
605067b426
hush: revert a recent buggy change which resulted in two HUSH_VERSIONs
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-06 12:10:51 +02:00
Denys Vlasenko
83b900fb82
fix typo in comment
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-06 11:47:55 +02:00
Denys Vlasenko
c3adfacd22
hush: fix another corner case with backslashes in heredocs
...
function old new delta
parse_stream 2395 2432 +37
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-06 11:46:03 +02:00
Denys Vlasenko
77b32ccbf2
hush: fix backslash and terminator handling in <<[-]["]heredoc["]
...
function old new delta
parse_stream 2339 2395 +56
expand_pseudo_dquoted 104 118 +14
parse_stream_dquoted 296 300 +4
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 74/0) Total: 74 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-06 11:27:32 +02:00
Denys Vlasenko
c49d2d9793
hush: fix globbing+backslashes in unquoted $var expansion
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-06 10:26:37 +02:00
Denys Vlasenko
d383b49aef
hush: remove disabled CMD_SINGLEWORD_NOGLOB_COND, rename o_glob->perform_glob
...
+ other small tweaks to comments and such
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-06 10:22:13 +02:00
Denys Vlasenko
96f064d416
shell: remove lash and bbsh
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-06 10:18:21 +02:00
Denys Vlasenko
e09bff3341
runit_lib: remove/inline a few more things
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-05 19:28:29 +02:00
Dan Fandrich
8d789e4197
tar: add a test for extraction of read-only directory
...
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-05 16:16:46 +02:00
Cristian Ionescu-Idbohrn
6957d79bd6
remove redundant ENABLE_DESKTOP in procps/ps.c
...
Signed-off-by: Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com >
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-05 15:49:37 +02:00
Denys Vlasenko
b36abf2dfc
hush: big reordering: move parser functions to the beginning. no code changes
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-05 14:50:59 +02:00
Denys Vlasenko
38292b68c9
hush: rename o_quoted to has_quoted_part; small code shrink
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-05 14:49:40 +02:00
Denys Vlasenko
f2dc20c2d5
hush: move variable expansion into a separate function. No logic changes
...
function old new delta
expand_one_var - 1551 +1551
expand_vars_to_list 2833 1175 -1658
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/1 up/down: 1551/-1658) Total: -107 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-05 14:48:11 +02:00
Denys Vlasenko
36f774a0cd
hush: add support for ${var/pattern/repl}, conditional on bash compat
...
function old new delta
expand_vars_to_list 2386 2833 +447
expand_string_to_string 69 110 +41
parse_dollar 681 721 +40
hush_main 963 945 -18
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/1 up/down: 528/-18) Total: 510 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-05 14:47:58 +02:00
Denys Vlasenko
701e127f7d
hush: optimize #[#] and %[%] for speed. size -2 bytes.
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-04 21:21:07 +02:00
Denys Vlasenko
e298ce69ba
hush: fix handling of backslashes in variable assignment
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-04 19:52:44 +02:00
Denys Vlasenko
8ae6e9be5c
lzop: fix misordered "v=NULL; free(v)", small code shrink
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-04 19:46:52 +02:00
Denys Vlasenko
0d7cb4cc9e
fix false positive in testsuite/tar.tests
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-03 17:22:56 +02:00
Dan Fandrich
eb2bf5b6bf
Fix some test cases
...
The tar tests still don't pass, but at least now it's because of
a problem with Busybox and not the tests themselves.
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-03 17:09:51 +02:00
Denys Vlasenko
2ab3acb274
ifupdown: %client%, not %clientid%
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-03 16:58:37 +02:00
Denys Vlasenko
3926363214
lineedit: on tab completion, show filenames obly in all cases (bash compat)
...
function old new delta
complete_cmd_dir_file 731 730 -1
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-03 14:11:08 +02:00
Denys Vlasenko
76939e7b72
lineedit: allocate matchBuf only temporarily: saves MAX_LINELEN bytes
...
function old new delta
input_tab 1027 1041 +14
build_match_prefix 590 562 -28
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 14/-28) Total: -14 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-03 14:09:24 +02:00
Denys Vlasenko
ba0e103a66
lineedit: de-indent large block in input_tab. No logic changes.
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-03 14:08:24 +02:00
Denys Vlasenko
a46e16ef52
lineedit: rename tmp -> chosen_match; small code shrink
...
function old new delta
input_tab 1016 1012 -4
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-03 13:05:51 +02:00
Denys Vlasenko
9b56bf5416
lineedit: stop using permanent int_buf[] (16k!): allocate it
...
Now it is allocated temporarily only for the duretion of prefix generation,
and also we only allocate the needed size, not maximally possible.
function old new delta
build_match_prefix 579 590 +11
remove_chunk 43 28 -15
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 11/-15) Total: -4 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-03 13:02:47 +02:00
Denys Vlasenko
81254ed387
lineedit: remove pos_buf[] array (up to 16k!); fix compat bugs
...
pos_buf is a strange hack, easy to do without it.
This also allows lines >32k long to be handled.
Also simplified match prefix generations and made behavior more like bash.
function old new delta
remove_chunk - 43 +43
collapse_pos 79 - -79
build_match_prefix 804 579 -225
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 0/1 up/down: 43/-304) Total: -261 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-03 12:59:15 +02:00
Denys Vlasenko
3c460b005c
lineedit: return prefix len from tab completion helpers
...
This kills horrific logic which deletes and re-adds prefix (!)
function old new delta
complete_cmd_dir_file 705 731 +26
complete_username 121 124 +3
input_tab 1041 1016 -25
build_match_prefix 838 804 -34
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/2 up/down: 29/-59) Total: -30 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-03 12:56:36 +02:00
Denys Vlasenko
2679e3c8cc
lineedit: clean up tab completion code (variable reuse, comments)
...
Noted bugs in behavior.
Added debugging machinery.
Decoupled variables reused for unrelated purposes: apparently,
when not forced to use liveness analysis, gcc fares better.
function old new delta
complete_cmd_dir_file 699 705 +6
collapse_pos 75 79 +4
build_match_prefix 892 838 -54
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 10/-54) Total: -44 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-03 12:53:15 +02:00
Denys Vlasenko
57ea9b488b
preparatory cleanup patch for tab completion fixes
...
renames and deinlines a few functions
function old new delta
input_tab - 1041 +1041
complete_cmd_dir_file - 699 +699
complete_username - 121 +121
username_completion 121 - -121
read_line_input 5002 3313 -1689
------------------------------------------------------------------------------
(add/remove: 3/1 grow/shrink: 0/1 up/down: 1861/-1810) Total: 51 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-03 12:51:36 +02:00
Denys Vlasenko
7063e86d0d
lineedit: small readability improvement (same code)
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-02 12:44:39 +02:00
Denys Vlasenko
61a36af45d
lineedit: fix completion with Unicode chars
...
function old new delta
read_line_input 4966 5002 +36
bb_wcstombs 170 159 -11
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 36/-11) Total: 25 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-02 12:03:11 +02:00
Denys Vlasenko
b068bd7a41
lineedit: preparatory cleanup patch for Unicode completion fix
...
Some logic changes and function renames. The fix will follow this patch,
to mkae it distinct from cleanup.
function old new delta
build_match_prefix - 892 +892
username_completion - 121 +121
read_line_input 4902 4966 +64
username_tab_completion 235 - -235
find_match 892 - -892
------------------------------------------------------------------------------
(add/remove: 2/2 grow/shrink: 1/0 up/down: 1077/-1127) Total: -50 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-02 12:01:11 +02:00
Denys Vlasenko
7aa63042d0
libbb: xfunc_error_retval can be a byte
...
function old new delta
xfunc_die 55 60 +5
log_and_exit 43 45 +2
hush_main 961 963 +2
xfunc_error_retval 4 1 -3
tty_main 87 84 -3
sv_main 1183 1180 -3
sort_main 804 801 -3
run_applet_no_and_exit 440 437 -3
puts_maybe_newline 198 195 -3
nohup_main 228 225 -3
httpd_main 753 750 -3
get_header_tar 1496 1493 -3
fsck_minix_main 2972 2969 -3
expr_main 110 107 -3
cmp_main 641 638 -3
chat_main 1359 1356 -3
builtin_exit 48 45 -3
arping_main 1587 1584 -3
BB_EXECVP_or_die 47 44 -3
send_cgi_and_exit 901 895 -6
diff_main 1197 1191 -6
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/18 up/down: 9/-60) Total: -51 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-01 16:04:24 +02:00
Denys Vlasenko
6f80fe71f0
uudecode,base64: code shrink
...
function old new delta
read_base64 373 358 -15
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-01 13:24:05 +02:00
Denys Vlasenko
0004e99493
better shared strings trick
...
text data bss dec hex filename
861980 441 7540 869961 d4649 busybox_old
861914 441 7540 869895 d4607 busybox_unstripped
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-01 12:01:17 +02:00
Denys Vlasenko
9dc04124d5
getty: small code shrink
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-01 11:31:43 +02:00
Denys Vlasenko
a61ff51b49
find: add rudimentary support for -exec {} +
...
function old new delta
parse_params 1421 1414 -7
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-08-31 19:17:42 +02:00
Denys Vlasenko
ee06264a29
base64: new applet
...
function old new delta
base64_main - 217 +217
packed_usage 27181 27229 +48
read_base64 348 373 +25
applet_names 2299 2306 +7
bbconfig_config_bz2 4942 4948 +6
applet_main 1352 1356 +4
applet_nameofs 676 678 +2
applet_install_loc 169 170 +1
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 7/0 up/down: 310/0) Total: 310 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-08-31 14:09:22 +02:00
Denys Vlasenko
8d3e225a2d
libbb: add xfstat function
...
function old new delta
xfstat - 25 +25
mkfs_ext2_main 2421 2423 +2
mkfs_reiser_main 1197 1194 -3
next 312 307 -5
ar_main 533 522 -11
mkfs_minix_main 2938 2924 -14
mkfs_vfat_main 1511 1495 -16
writeTarFile 272 255 -17
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/6 up/down: 27/-66) Total: -39 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-08-31 12:42:06 +02:00
Denys Vlasenko
4e7dd3c363
mkswap: clear 1st kilobyte. Closes bug 1831
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-31 01:50:03 +02:00
Denys Vlasenko
c71ec70616
iplink: another compat #ifndef/#define tweak
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-08-30 19:20:09 +02:00
Denys Vlasenko
0ff78a0166
ash: small code shrink (-21 bytes)
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-08-30 15:20:07 +02:00
Denys Vlasenko
f7a8433535
ash: add another ${v/a/b} test we currently fail
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-08-30 13:54:12 +02:00
Denys Vlasenko
25b4755302
typo fix in comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-30 01:19:47 +02:00
Denys Vlasenko
d493e9361f
remove stray debugging stuff
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-29 14:39:45 +02:00
Denys Vlasenko
9ce07e778f
bbconfig: add COMPRESS_BBCONFIG option
...
function old new delta
bbconfig_config_bz2 - 4905 +4905
bbconfig_main 13 70 +57
bbconfig_config 21811 - -21811
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 1/0 up/down: 4962/-21811) Total: -16849 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-29 14:36:11 +02:00
Baruch Siach
7715b48c36
nandwrite: always check the first erase block
...
Current code does not check the first erase block when mtdoffset is not erase
block aligned. Fix this.
Signed-off-by: Baruch Siach <baruch@tkos.co.il >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-29 13:30:22 +02:00
Denys Vlasenko
b32a543663
nandwrite: complain on malformed -s NUM
...
Elsewhere: use common error message. -30 bytes net size change
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-29 13:29:02 +02:00
Baruch Siach
a78227dc73
nandwrite: allow hex values in the -s parameter
...
Signed-off-by: Baruch Siach <baruch@tkos.co.il >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-29 13:15:57 +02:00
Denys Vlasenko
cc131534e2
showkey: code shrink
...
function old new delta
signal_handler 52 45 -7
showkey_main 461 454 -7
xset1 40 29 -11
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-29 05:00:40 +02:00
Dan Fandrich
140ac91fe1
testsuite: show the number of failures after a test run
...
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-29 04:47:03 +02:00
Denys Vlasenko
91234b9be0
typo fixes in config help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-29 02:06:50 +02:00
Alexander Shishkin
0834a6d3b9
pmap: new applet. +1k.
...
pmap is a tool used to look at processes' memory maps, normally found
in procps package. It provides more readable and easily sortable output
(one line per mapping) from maps/smaps files in /proc/PID/. This would
help in debugging memory usage issues, especially on devices where lots
of typing is not a viable option.
This patch does'n implement -d and -A command line options of GNU pmap,
since those are not that must have features and I was afraid of going
blind from looking at its code.
The implementation takes smaps scanning part out of procps_scan() function
and moves it into procps_read_smaps(), which does more detailed processing
of a single PID's smaps data.
Signed-off-by: Alexander Shishkin <virtuoso@slind.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-28 23:20:34 +02:00
Denys Vlasenko
74c992af5c
ntpd: with -q, exit after 60 seconds even if time is not synced.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-27 02:15:01 +02:00
Denys Vlasenko
1cd0d86005
modutils: explain why we no longer quote params
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-08-25 18:26:46 +02:00
Carmelo AMOROSO
1396221d5a
insmod: Do not add a pair of "" around the arguments of the module.
...
If there are some spaces in the insmod command line, then
this will be splitted in single words as separate elements of
argv. It just needs to chain them together in the options string
passed to the sys_init_module syscall.
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com >
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-08-25 18:19:22 +02:00
Baruch Siach
6f32ea4039
nandwrite: new applet
...
function old new delta
nandwrite_main - 382 +382
packed_usage 27119 27135 +16
applet_names 2275 2285 +10
applet_main 1340 1344 +4
applet_nameofs 670 672 +2
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 4/0 up/down: 414/0) Total: 414 bytes
Signed-off-by: Baruch Siach <baruch@tkos.co.il >
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-08-25 16:36:17 +02:00
Dan Fandrich
159677c884
Rename a struct member from "interrupt"
...
This is nonstandard, but common, keyword in embedded compilers.
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-24 07:38:34 +02:00
Denys Vlasenko
7ff6836db3
split: use xopen_stdin()
...
function old new delta
split_main 558 543 -15
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-23 03:06:46 +02:00
Denys Vlasenko
3d8b96d58d
grep: fix -o match with empty string (suggested by Colin Watson <cjwatson@ubuntu.com>)
...
function old new delta
grep_file 1216 1251 +35
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-23 02:39:47 +02:00
Denys Vlasenko
b276e41835
ip: add a #define for older kernels
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-22 10:02:55 +02:00
Denys Vlasenko
adbe3b5b98
build system: make 3.82 fix. Closes bug 2323
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-22 09:28:46 +02:00
Denys Vlasenko
e7b0a9e5bc
patch: support "patch [FILE [PATCH]]" format
...
function old new delta
xopen_stdin - 15 +15
patch_main 2075 2041 -34
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-22 05:39:15 +02:00
Denys Vlasenko
fd27fa8309
libbb: fix fallout from last patch to obscure() (my mistake). +143 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-17 17:21:36 +02:00
Bob Dunlop
d71c770f05
libbb: shrink obscure()
...
function old new delta
string_checker_helper 59 45 -14
string_checker 116 98 -18
obscure 367 204 -163
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-195) Total: -195 bytes
Signed-off-by: Bob Dunlop <bob.dunlop@xyzzy.org.uk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-17 16:01:16 +02:00
Denys Vlasenko
cda815996b
patch: fix -N regression
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-17 01:31:40 +02:00
Denys Vlasenko
bdaea46318
nmeter: fix misplaced closing comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-16 20:42:14 +02:00
Denys Vlasenko
0ef64bdb40
*: make GNU licensing statement forms more regular
...
This change retains "or later" state! No licensing _changes_ here,
only form is adjusted (article, space between "GPL" and "v2" and so on).
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-16 20:14:46 +02:00
Denys Vlasenko
0d555fc951
sed: make N command behave as in GNU sed
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-16 16:26:33 +02:00
Denys Vlasenko
f2860bf6d3
mdev: fix non-working device deletion, add a test for that
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-16 14:26:15 +02:00
Denys Vlasenko
867ffb9616
platform.h: regularize endian detection
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-16 03:24:40 +02:00
Denys Vlasenko
9768a82eb0
*: fix "see file License ..." - the file is named LICENSE (in uppercase)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-16 03:04:14 +02:00
Denys Vlasenko
3f75d7bfd2
patch: uncomment the test which we actually do pass now
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-16 02:56:32 +02:00
Denys Vlasenko
c9b9750a0e
libbb: factor out common code from mpstat/iostat
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-16 02:49:21 +02:00
Denys Vlasenko
a4160e15ec
patch: add -N and a test for it (fails for now)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-16 01:33:57 +02:00
Denys Vlasenko
6373bb7740
patch: move closer to toybox code
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-13 16:41:15 +02:00
Rob Landley
760d0ebbe5
patch: deal with ommitted ",len" in hunk headers (default len to 1)
...
Signed-off-by: Rob Landley <rob@landley.net >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-13 16:40:21 +02:00
Rob Landley
1bbc0cd7f2
patch: replace it with toybox's implementation
...
Signed-off-by: Rob Landley <rob@landley.net >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-13 15:50:26 +02:00
Denys Vlasenko
dcaed97e0f
iostat: add forgotted fclose(); fix default count.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-12 15:36:34 +02:00
Denys Vlasenko
7783248eaa
*: s/xatoi_u/xatoi_positive/g - I got bored of mistyping xatoi_u as xatou_i
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-12 14:14:45 +02:00
Denys Vlasenko
7bfbbd434a
free: more compatible output. +16 bytes. Closes bug 2383.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-12 01:56:44 +02:00
Marek Polacek
733f26f407
iostat: new applet. 2800 bytes
...
Signed-off-by: Marek Polacek <mmpolacek@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-11 17:00:59 +02:00
Macpaul Lin
58662f2c93
modutils: Add support for NDS32 architecture.
...
Add support of NDS32 architecture to modutils.
Signed-off-by: Macpaul Lin <macpaul@andestech.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-11 14:12:07 +02:00
Macpaul Lin
1fbaf3a2d1
fdisk: Add support for NDS32 architecture.
...
NDS32 is a new architecture invented by Andestech.com.
This patch add the support to fdisk utility.
Signed-off-by: Macpaul Lin <macpaul@andestech.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-11 14:12:00 +02:00
Dan Fandrich
9669363740
Remove some more mentions of Subversion
...
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-11 14:09:37 +02:00
Dan Fandrich
775965de85
Improved portability of tests
...
Removed assumptions about umask and locale. Fixed hostname
tests to work even when the host has no DNS domain set.
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-11 14:09:28 +02:00
Denys Vlasenko
f03fc7d77a
ntpd: mention -N in help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-11 05:15:52 +02:00
Denys Vlasenko
81d9e60a88
Set HWCLOCK_ADJTIME_FHS to off by default
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-10 15:14:36 +02:00
Denys Vlasenko
d07b20ff14
rtc: remove useless code in "RTC is in UTC" detection
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-10 13:06:06 +02:00
Denys Vlasenko
da0df47f24
wget: fix ndelay_on call; progress bar: small shrink
...
function old new delta
bb_progress_update 682 670 -12
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-08 04:21:50 +02:00
Denys Vlasenko
64f2ba276c
wget: make -T support enabled by default
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-08 02:59:06 +02:00
Bradley M. Kuhn
c97131c2af
wget: implement -T SEC; rework progress meter to not use signals (it was unsafe)
...
function old new delta
retrieve_file_data 364 450 +86
bb_progress_update 615 682 +67
packed_usage 27406 27422 +16
wget_main 2440 2453 +13
static.wget_longopts 145 155 +10
progress_meter 199 159 -40
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 5/1 up/down: 192/-40) Total: 152 bytes
Signed-off-by: Bradley M. Kuhn <bkuhn@ebb.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-08 02:51:20 +02:00
Denys Vlasenko
33bbb27e45
ash: fix another bit of var_bash4 bug
...
But it _still_ doesn't pass! quoted case is a tough nut to crack
function old new delta
redirect 1281 1286 +5
subevalvar 1141 1142 +1
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-07 22:24:36 +02:00
Denys Vlasenko
58a15cd9d2
Fix a typo in config text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-07 14:02:26 +02:00
Denys Vlasenko
0d98b4409b
udhcpc: add -v to help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-07 02:56:43 +02:00
Denys Vlasenko
09dd6ec732
ash: cosmetic fixes, no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-07 02:44:33 +02:00
Denys Vlasenko
1614900522
ash: fix another bug detected by var_bash4.tests
...
... but var_bash4.tests still does not pass!
function old new delta
expandarg 959 962 +3
localcmd 259 257 -2
readtoken1 3275 3260 -15
subevalvar 1178 1141 -37
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/3 up/down: 3/-54) Total: -51 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-06 22:06:21 +02:00
Denys Vlasenko
c8d305d89f
var_bash4.tests: better wording in comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-06 19:28:04 +02:00
Denys Vlasenko
f02c82f38c
ash: fix dequoting error detected by var_bash4 test
...
But the test still fails (one more bug to fix)
function old new delta
changepath 195 192 -3
readtoken1 3247 3240 -7
subevalvar 1204 1184 -20
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-30) Total: -30 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-06 19:14:47 +02:00
Denys Vlasenko
f56fe82542
update var_bash4 test. one more bug revealed by it now...
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-06 17:21:52 +02:00
Waldemar Brodkorb
95b83ba4f8
OpenBSD compatibility
...
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-06 09:17:26 +02:00
Denys Vlasenko
6814cbc928
ash: extend var_bash4.tests; nocode changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-05 18:29:13 +02:00
Denys Vlasenko
b0fbe4b540
ash: add a testcase for bug 2281 (currently fails). Small code cleanups.
...
function old new delta
changepath 195 192 -3
subevalvar 1204 1200 -4
readtoken1 3247 3240 -7
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-14) Total: -14 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-05 17:19:27 +02:00
Daniel Dickinson
e74d79866c
syslogd: close/re-resolve/reopen remote sockets on some sendto() errors
...
function old new delta
syslogd_main 1201 1262 +61
Signed-off-by: Daniel Dickinson <cshore@csolve.net >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-03 04:26:20 +02:00
Denys Vlasenko
6e06da5efd
update _shipped file with hurd fix
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-02 02:17:25 +02:00
Denys Vlasenko
b883bc9884
sed.tests: make last test less confusing
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-01 04:19:59 +02:00
Denys Vlasenko
2e284a40bc
sed: fix sed -i: unlike without -i, it does not forget ranges
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-01 04:14:46 +02:00
Jeremie Koenig
138ce54c9c
stty: sort out preprocessor conditionals
...
* Move the definitions of missing constants to the top of the file.
* Fix undefined IDX_xxx on missing termios constants.
* FreeBSD has TABDLY, TAB0 and TAB3, but no TAB1 or TAB2
* Omit the definition of set_window_size() if TIOCGWINSZ is not available.
Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-01 03:31:35 +02:00
Jeremie Koenig
63c2e7ecc0
klogd: make it work on non-linux systems
...
The klogctl() interface allows changing the console loglevel, but is
Linux-specific. The more portable method of reading from _PATH_KLOG is
added as an alternative.
Adapted from the Debian kFreeBSD patch at:
http://svn.debian.org/viewsvn/d-i/people/slackydeb/kfreebsd/busybox/1.14/debian/klogd.diff
Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-01 03:01:44 +02:00
Denys Vlasenko
17662801ec
cttyhack: make it survive WERROR build
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-30 17:41:35 +02:00
Jeremie Koenig
430ba79c39
cttyhack: serial console detection is Linux-specific
...
Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-30 17:40:37 +02:00
Marek Polacek
85a359afab
mpstat: do not use /sys to get number of CPUs. /proc should be ok.
...
function old new delta
get_cpu_nr - 137 +137
mpstat_main 1140 1131 -9
get_proc_cpu_nr 137 - -137
get_sys_cpu_nr 178 - -178
------------------------------------------------------------------------------
(add/remove: 1/2 grow/shrink: 0/1 up/down: 137/-324) Total: -187 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-30 16:43:11 +02:00
Denys Vlasenko
3fb4a5e6d8
mpstat: better fix for IRQ counts
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-30 13:55:35 +02:00
Denys Vlasenko
9bb0510b9b
mpstat: fix total par-cpu IRQ counts
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-30 13:38:46 +02:00
Denys Vlasenko
64c67891a2
mpstat: fix/improve handling of interrupt names
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-30 12:45:14 +02:00
Maksym Kryzhanovskyy
5e87c2ef15
mpstat: small code shrink
...
Signed-off-by: Maksym Kryzhanovskyy <xmaks@email.cz >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-30 03:56:02 +02:00
Jeremie Koenig
68fca4cd55
vlock: disable linux console calls on other systems
...
Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-30 03:03:29 +02:00
Jeremie Koenig
e7a0632b7b
bootchartd: mounting tmpfs is Linux-specific
...
Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-30 01:16:00 +02:00
Jeremie Koenig
5a71fb8202
less: remove misguided dependency on PLATFORM_LINUX
...
Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-30 01:15:46 +02:00
Leonid Lisovskiy
1538c975ec
testsuite: typo in tr.tests
...
Hi
tr.tests script from bb 1.17 testsuite has wrong "optional"
conditional clauses. As result, some tr tests was skipped even if
CONFIG_FEATURE_TR_CLASSES=y. Patch attached fixes problem for me.
- Leonid
Signed-off-by: Leonid Lisovskiy <lly.dev@gmail.com >
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2010-07-29 10:11:09 +02:00
Bernhard Reutner-Fischer
64b6f7cfba
doc: remove trailing empty line
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2010-07-29 09:34:04 +02:00
Denys Vlasenko
506d3a9bca
dc: tweak help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-29 04:06:07 +02:00
Denys Vlasenko
7a07b0ee6a
dc: make it use long longs for integer ops
...
function old new delta
print_base 176 238 +62
or 91 103 +12
eor 91 103 +12
and 91 103 +12
not 60 64 +4
mod 103 105 +2
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 6/0 up/down: 104/0) Total: 104 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-29 04:00:27 +02:00
Denys Vlasenko
416f0405cb
less: fix duplicate "depends on PLATFORM_LINUX". no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-29 02:26:22 +02:00
Bernhard Reutner-Fischer
3d615b8a41
find_stray_empty_lines: make it work
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2010-07-28 21:29:19 +02:00
Javier Viguera
a3f71001c3
find_stray_empty_lines: fix tail "invalid context" error
...
"tail -1" works only with one input file. Using it with multiple input
files throws following error on Ubuntu systems:
tail: option used in invalid context
Adding "-n" makes it work on all cases.
Signed-off-by: Javier Viguera <javier.viguera@digi.com >
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2010-07-28 21:01:55 +02:00
Alexander Shishkin
17e0e43c35
ulimit: set both hard and soft limits by default
...
function old new delta
shell_builtin_ulimit 494 498 +4
Signed-off-by: Alexander Shishkin <virtuoso@slind.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-27 08:40:55 +02:00
Denys Vlasenko
06702365d7
mktemp: fix for dir/file.XXXXXX param (by Rob). +9 bytes.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-27 08:26:32 +02:00
Denys Vlasenko
b4d035165f
*: s/spaces/tabs/
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-26 12:47:36 +02:00
Denys Vlasenko
f0b82142b2
*: fix unterminated last lines. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-26 12:26:04 +02:00
Peter Korsgaard
e5dbd56d77
httpd: simplified "gzip" test
...
function old new delta
handle_incoming_and_exit 2830 2807 -23
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-26 02:08:35 +02:00
Denys Vlasenko
ba2dcccd79
*: trailing empty lines removed
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-26 01:49:12 +02:00
Denys Vlasenko
0f8960542f
*: more empty lines removed. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-26 01:35:44 +02:00
Denys Vlasenko
f3ea792bad
*: mass cosmetic removal of extra empty lines. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-26 01:06:14 +02:00
Alexander Shishkin
ccb9771861
ash: fix $! value when traps are set
...
Signed-off-by: Alexander Shishkin <virtuoso@slind.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-25 13:07:39 +02:00
Peter Korsgaard
7a2ba329b9
httpd: optional support for gzip-compressed pages
...
function old new delta
send_file_and_exit 662 761 +99
handle_incoming_and_exit 2756 2830 +74
send_headers 603 654 +51
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 224/0) Total: 224 bytes
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-25 03:20:53 +02:00
Denys Vlasenko
535ce1df5c
httpd: cosmetic fixes, no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-25 03:20:25 +02:00
Denys Vlasenko
451add4f23
lineedit: mostly revert recent wrong logic in "ask terminal" code
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-25 00:06:41 +02:00
Denys Vlasenko
2e9b5510d6
libiproute: code shrink by adding FAST_FUNC
...
function old new delta
ipaddr_list_or_flush 1282 1293 +11
ip_parse_common_args 153 151 -2
ip_main 53 50 -3
ip_do 19 15 -4
do_iptunnel 985 980 -5
do_iprule 982 977 -5
do_iplink 1637 1631 -6
do_iproute 2105 2098 -7
do_ipaddr 1406 1398 -8
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/8 up/down: 11/-40) Total: -29 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-24 23:27:38 +02:00
Denys Vlasenko
e0a622093c
ip: fix "ip r" breakage
...
function old new delta
static.ip_func_ptrs - 32 +32
ip_main 110 53 -57
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/1 up/down: 32/-57) Total: -25 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-24 23:26:58 +02:00
Natanael Copa
b78ac5a20e
libnetlink: code shrink
...
function old new delta
xrtnl_open 95 93 -2
parse_rtattr 87 85 -2
rtnl_close 9 - -9
xrtnl_wilddump_request 101 64 -37
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 0/3 up/down: 0/-50) Total: -50 bytes
Signed-off-by: Natanael Copa <natanael.copa@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-23 01:31:24 +02:00
Maksym Kryzhanovskyy
4f0279bd93
ifplugd: code shrink
...
function old new delta
ifplugd_main 1089 1161 +72
method_table - 40 +40
detect_link 221 207 -14
static.method 40 - -40
netlink_open 79 - -79
------------------------------------------------------------------------------
(add/remove: 1/2 grow/shrink: 1/1 up/down: 112/-133) Total: -21 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-22 02:18:05 +02:00
Denys Vlasenko
c5fb0ada9b
vi: fix "ask terminal" code
...
function old new delta
edit_file 761 793 +32
refresh 773 780 +7
query_screen_dimensions 63 54 -9
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-21 12:39:42 +02:00
Denys Vlasenko
217df6ea9f
mpstat: small code shrink
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-21 11:54:33 +02:00
Marek Polacek
23e8c08fa2
mpstat: new applet. ~5.5k
...
Signed-off-by: Marek Polacek <mmpolacek@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-21 10:29:07 +02:00
Denys Vlasenko
ba085c6351
make DESKTOP=y the default
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-21 08:58:11 +02:00
Jeremie Koenig
2ea12d8b6d
tcpsvd,udpsvd: conditionalize usage of SO_ORIGINAL_DST
...
On systems without this call, $TCPORIGDSTADDR is not set.
Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-19 00:46:57 +02:00
Jeremie Koenig
29885114a5
libbb: conditionalize AF_* usage in error reporting
...
Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-19 00:46:47 +02:00
Jeremie Koenig
84b01d5afc
mkdir: fix -p on FreeBSD
...
This patch is libbb.make_directory.diff from Debian kFreeBSD at:
http://svn.debian.org/viewsvn/d-i/people/slackydeb/kfreebsd/busybox/1.14/debian
Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-19 00:46:28 +02:00
Jeremie Koenig
816ed971e4
libbb.h: add device names for Hurd and FreeBSD
...
Adapted from include.libbb.diff from the Debian kFreeBSD people:
http://svn.debian.org/viewsvn/d-i/people/slackydeb/kfreebsd/busybox/1.14/debian
Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-19 00:46:23 +02:00
Jeremie Koenig
1c05303fdc
init: make the initial $TERM value configurable
...
Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-19 00:46:00 +02:00
Jeremie Koenig
714674e4da
init,halt: portability improvements
...
* make init and halt use the same RB_* constants for reboot()
* conditionalize the Linux-specific code
Inspired by init.init.diff from the Debian kFreeBSD patches at:
http://svn.debian.org/viewsvn/d-i/people/slackydeb/kfreebsd/busybox/1.14/debian
Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-19 00:45:51 +02:00
Jeremie Koenig
f812eace18
init,loginutils: termios portability fixes
...
Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-19 00:45:42 +02:00
Jeremie Koenig
1d7266d3b5
mark Linux-specific configuration options
...
PLATFORM_LINUX is used as a dependency for applets or features
which require Linux-specific interfaces.
Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-19 00:44:56 +02:00
Jeremie Koenig
b175462422
readlink: use xmalloc_realpath()
...
Using realpath() directly with a non-NULL output buffer is unsafe because its
behavior is unspecified on systems which don't have PATH_MAX (ie. Hurd)
I beleive this also fixes a small bug whereby 'buf' would not be freed
on 'readlink -v' with ENABLE_FEATURE_CLEANUP.
Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-19 00:43:05 +02:00
Alexander Shishkin
daf286cda5
Fix out-of-tree build's recursion
...
While doing O=build build I've noticed that it was getting gradually
slower with each invocation. The reason turned out to be that the build
directory was inside the source tree and got recreated inside itself
with all its subdirectories.
This patch changes the behavior so that only the directories with
Kbuild.src or Config.src in them are created in the out-of-tree build
directory. A quick rebuild from scratch revealed no problems with this.
Signed-off-by: Alexander Shishkin <virtuoso@slind.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-18 23:57:49 +02:00
Denys Vlasenko
fb4cb1c416
tweak defconfig
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-18 23:02:36 +02:00
Denys Vlasenko
55241fa2e0
lineedit: limit ASK_TERMINAL to the case when we can't find out the width
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-18 22:53:06 +02:00
Denys Vlasenko
b9e35dc15d
lineedit: cosmetics, no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-18 22:21:24 +02:00
Denys Vlasenko
4cab7f3e63
depmod: generate "new-style" modules.dep with relative paths.
...
function old new delta
parse_module 384 379 -5
depmod_main 590 559 -31
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-36) Total: -36 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-18 17:41:17 +02:00
Denys Vlasenko
d1516c4d62
dos2unix: fix the case w/o parameters
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-17 22:43:42 +02:00
Denys Vlasenko
6adf2aad38
hush: move msh/lash config into hush.c, no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-16 19:26:38 +02:00
Denys Vlasenko
51ca7761a3
cttyhack: move build system bits into cttyhack.c, no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-16 17:16:40 +02:00
Denys Vlasenko
5d26df6497
tweak defconfig
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-16 15:31:38 +02:00
Denys Vlasenko
771f1995a9
ash: move config stuff into ash.c, no code chages
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-16 14:31:34 +02:00
Denys Vlasenko
29082231d0
hush: fix multimple dependent variable expansion cases
...
function old new delta
get_local_var_value 100 171 +71
expand_assignments 46 76 +30
reset_traps_to_defaults 229 238 +9
maybe_set_to_sigexit 47 50 +3
init_sigmasks 211 214 +3
builtin_trap 462 465 +3
expand_vars_to_list 2412 2408 -4
run_pipe 1568 1533 -35
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 6/2 up/down: 119/-39) Total: 80 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-16 13:52:32 +02:00
Denys Vlasenko
202a2d1219
hush: make set -x support optional
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-16 12:36:14 +02:00
Denys Vlasenko
3f5fae0772
hush: add support for set -x
...
function old new delta
run_pipe 1442 1568 +126
dump_cmd_in_x_mode - 126 +126
builtin_trap 441 462 +21
pseudo_exec_argv 171 187 +16
reset_traps_to_defaults 214 229 +15
check_and_run_traps 227 232 +5
hush_exit 98 101 +3
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 6/0 up/down: 312/0) Total: 312 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-16 12:35:35 +02:00
Denys Vlasenko
b3389de04b
hush: fix typo in comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-15 12:33:37 +02:00
Denys Vlasenko
8fa1f5d543
hush: fix faloout from previous commit
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-15 08:18:46 +02:00
Denys Vlasenko
889550b36b
hush: make pun_pipe loop clearer; fix "cmd | var=cmd | cmd" handling
...
function old new delta
free_strings - 38 +38
pseudo_exec_argv 161 171 +10
free_pipe 227 205 -22
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/1 up/down: 48/-22) Total: 26 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-14 19:01:25 +02:00
Denys Vlasenko
6ac37da425
build system: disable some applets by default
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-14 08:33:20 +02:00
Denys Vlasenko
0e450669d4
util-linux: move VOLUMEID to a submenu
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-14 07:10:47 +02:00
Denys Vlasenko
a95ce93e57
top: add tie breaking for topmem mode
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-13 12:13:04 +02:00
Denys Vlasenko
6af732b9ae
acpid: old kernel headers compat
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-12 06:20:11 +02:00
Denys Vlasenko
04a5d5ad15
mktemp: fix "mktemp /path/to/tempfile.XXXXXX"
...
function old new delta
mktemp_main 152 167 +15
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-12 03:43:39 +02:00
Denys Vlasenko
c5bbd5d085
wget: fix progress display
...
function old new delta
progress_meter 187 199 +12
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-12 03:27:09 +02:00
Denys Vlasenko
d8b989f22d
more: style fix. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-12 03:14:17 +02:00
Denys Vlasenko
69d69e2cb8
crond: mention other cronds' behavior in comment. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-11 23:20:15 +02:00
Denys Vlasenko
729f39dd17
remove unzip doc: we don't have 100% proof it's ok to distribute
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-10 19:52:13 +02:00
Denys Vlasenko
75703eb8d5
diff: make diff -r much less eager to recurse into directories
...
function old new delta
skip_dir 44 120 +76
diff_main 1175 1185 +10
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-10 16:25:47 +02:00
Lauri Kasanen
a48a29f921
Modprobe: Make -l open the right file
...
Before: modprobe -l
modules.dep not found
No size change, just moved the chdir.
Signed-off-by: Lauri Kasanen <curaga@operamail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-10 01:27:03 +02:00
Denys Vlasenko
32a6baeefa
diff: cosmetic change on top of last commit
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-09 19:44:38 +02:00
Matheus Izvekov
61f5f7823c
diff: fix "diff dir1 dir2/". Closes bug 2203
...
Signed-off-by: Matheus Izvekov <mizvekov@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-09 19:40:00 +02:00
Denys Vlasenko
1883cb1746
fix make O=dir build
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-09 01:25:36 +02:00
Denys Vlasenko
1f0ab1dc64
crond: code shrink
...
function old new delta
crond_main 1431 1472 +41
fork_job 457 389 -68
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-08 16:12:10 +02:00
Denys Vlasenko
45963c873c
crond: rename HumpBack names. Note two TODOs/FIXMEs
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-08 15:37:10 +02:00
Denys Vlasenko
dfc870fab7
crond: check mtime on crontab dir every minute, and reread if changed
...
function old new delta
crond_main 1417 1460 +43
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-08 04:07:54 +02:00
Denys Vlasenko
4a09aefae2
crond: reorder functions to follow usual order: "main last"
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-08 04:07:15 +02:00
Maksym Kryzhanovskyy
9388b4e720
ifplugd: code shrink
...
function old new delta
detect_link 122 221 +99
api_modes - 7 +7
maybe_up_new_iface 27 33 +6
ifplugd_main 1143 1089 -54
detect_link_auto 117 - -117
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 2/1 up/down: 112/-171) Total: -59 bytes
Signed-off-by: Maksym Kryzhanovskyy <xmaks@email.cz >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-08 02:47:25 +02:00
Denys Vlasenko
1d36f24bcb
make usage_compressed.h generation _always_ update mtime
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-08 02:29:47 +02:00
Denys Vlasenko
d3c2b71ffa
crond: code shrink
...
function old new delta
ForkJob 513 457 -56
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-06 18:47:00 +02:00
Denys Vlasenko
8f65b0cf31
whitespace fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-06 18:46:02 +02:00
Denys Vlasenko
7a2aa87c75
bootchartd: fix labels in config system. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-06 15:49:01 +02:00
Denys Vlasenko
89a1cace3b
Start 1.18.0 development cycle
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-06 15:47:35 +02:00
Denys Vlasenko
b2d95147c9
bump version to 1.17.0
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-06 04:16:50 +02:00
Denys Vlasenko
3e5fa43b2f
scripts/randomtest: update to pass testsuite with Rob's toolchain
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-06 02:26:35 +02:00
Denys Vlasenko
ee1f19b942
[un]expand: fix testsuite
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-06 02:20:00 +02:00
Denys Vlasenko
9297dbc9d2
randomconfig fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-05 21:37:12 +02:00
Denys Vlasenko
08f0b784fd
Yet another attempt to stamp out "make -j" problems
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-04 23:34:02 +02:00
Denys Vlasenko
7e1bb4bc5c
libbb: reduce number of *error_msg[_and_die].c files by four
...
No code changes.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-04 17:16:44 +02:00
Pascal Bellard
926031b764
*: introduce and use xfork() and xvfork()
...
function old new delta
launch_helper 170 169 -1
setup_heredoc 312 302 -10
handle_dir_common 367 354 -13
expand_vars_to_list 2456 2443 -13
open_transformer 89 74 -15
data_extract_to_command 439 423 -16
do_ipaddr 1406 1389 -17
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/7 up/down: 0/-85) Total: -85 bytes
Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-04 15:32:38 +02:00
Denys Vlasenko
243d1757d7
remove some dead assignments, add a TODO comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-04 04:26:55 +02:00
Denys Vlasenko
fd744519d1
ip a: fix SEGV if "dev IFACE" is not specified
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-04 03:55:43 +02:00
Pascal Bellard
21e8e8da64
libbb: introduce and use BB_EXECVP_or_die()
...
function old new delta
BB_EXECVP_or_die - 47 +47
time_main 1042 1043 +1
chrt_main 371 364 -7
ionice_main 292 282 -10
setsid_main 69 56 -13
nohup_main 236 223 -13
cttyhack_main 266 253 -13
chroot_main 94 81 -13
chpst_main 746 733 -13
timeout_main 297 279 -18
taskset_main 541 522 -19
vfork_child 67 45 -22
parse 975 953 -22
lpd_main 770 748 -22
launch_helper 192 170 -22
tcpudpsvd_main 1810 1782 -28
nice_main 190 156 -34
env_main 242 206 -36
run_command 221 174 -47
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/17 up/down: 48/-352) Total: -304 bytes
Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-04 00:57:03 +02:00
Lauri Kasanen
7c1b2b5420
losetup: use LOOP_foo defines
...
Signed-off-by: Lauri Kasanen <curaga@operamail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-04 00:04:03 +02:00
Denys Vlasenko
5c296de390
fix compile breakage with "make -j"
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-03 14:28:35 +02:00
Denys Vlasenko
922f6f51db
chrt: code shrink
...
function old new delta
show_min_max 80 60 -20
packed_usage 26929 26896 -33
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-53) Total: -53 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-01 16:42:27 +02:00
Denys Vlasenko
cd0f6b0c93
consolidate xz format comment. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-01 10:38:10 +02:00
Pascal Bellard
81199672be
conspy: stop losing some keyboard keys.
...
11 bytes shrink.
Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-01 07:18:41 +02:00
Denys Vlasenko
45f66167fe
xz compression detection: avoid the need to seek
...
function old new delta
unpack_unxz 12 67 +55
unpack_xz_stream 2357 2373 +16
xmalloc_read 197 199 +2
setup_unzip_on_fd 118 99 -19
rpm2cpio_main 222 203 -19
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/2 up/down: 73/-38) Total: 35 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-01 05:12:28 +02:00
Denys Vlasenko
620e863ba2
bzip2 decompression: simple code shrink
...
function old new delta
unpack_bz2_stream_prime 60 55 -5
get_header_tar 1508 1496 -12
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-30 19:43:44 +02:00
Pascal Bellard
fa5ea17b5f
conspy: code shrink
...
function old new delta
screen_read_close 114 187 +73
set_cursor - 53 +53
cleanup 93 91 -2
screen_dump 202 197 -5
curon 34 - -34
screen_char 351 308 -43
conspy_main 1444 1264 -180
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 1/4 up/down: 126/-264) Total: -138 bytes
Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-30 07:05:31 +02:00
Keisuke Yasui
c03fb3cd7d
bootchartd: fix sample period calculations
...
Signed-off-by: Keisuke Yasui <keisuke.yasui@toshiba.co.jp >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-28 16:05:54 +02:00
Pascal Bellard
ff37799dfe
conspy: code shrink
...
function old new delta
conspy_main 1446 1444 -2
screen_read_close 114 108 -6
screen_char 299 293 -6
Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-28 15:51:01 +02:00
Denys Vlasenko
7d1201c5d7
nc: better comments. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-28 04:17:06 +02:00
Denys Vlasenko
1a3b0710f5
conspy: significant output minimization; blink attribute support
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-27 20:42:17 +02:00
Denys Vlasenko
31c3dad851
remove recently added erroneous _and_die()
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-27 16:57:55 +02:00
Denys Vlasenko
fa1b3705a3
mount: fix a case when sometimes error message is not printed
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-27 16:47:40 +02:00
Denys Vlasenko
77cc2c5738
nc: introduce CONFIG_NC_110_COMPAT option.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-27 04:22:02 +02:00
Ladislav Michl
a73b87e934
*: s/"/bin/sh"/DEFAULT_SHELL, run_shell() API fix, remove unneeded strdup
...
function old new delta
run_shell 157 166 +9
su_main 477 470 -7
sulogin_main 515 503 -12
Signed-off-by: Ladislav Michl <Ladislav.Michl@seznam.cz >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-27 03:23:31 +02:00
Lauri Kasanen
1b14cdb27c
modinfo: support relative paths in modules.dep
...
function old new delta
modinfo 272 329 +57
modinfo_main 325 344 +19
Signed-off-by: Lauri Kasanen <curaga@operamail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-27 00:35:49 +02:00
Lauri Kasanen
f6464000ca
modinfo: needs DEFAULT_MODULES_DIR and DEFAULT_DEPMOD_FILE
...
Signed-off-by: Lauri Kasanen <curaga@operamail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-27 00:20:15 +02:00
Denys Vlasenko
1eaf7e76bf
libbb/copyfd.c: fix the case of copy buffer <= 4kb
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-26 23:08:59 +02:00
Denys Vlasenko
fd33e17a2b
ash: fix obscure case of replacing + globbing + backslashes
...
function old new delta
subevalvar 1152 1178 +26
readtoken1 3267 3275 +8
redirect 1284 1286 +2
expandarg 957 958 +1
expdir 4 - -4
evalcommand 1219 1209 -10
expmeta 481 469 -12
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 4/2 up/down: 37/-26) Total: 11 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-26 22:55:44 +02:00
Denys Vlasenko
b768aeb164
tar: make typical extraction less memory-hungry
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-26 18:22:41 +02:00
Denys Vlasenko
52827e3ebc
*: tar-related cleanups: move struct to unarchive.h; move help to tar.c
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-26 18:21:36 +02:00
Denys Vlasenko
d0a8a0d312
tar: fix --to-command wrt short writes
...
function old new delta
bb_copyfd_exact_size 51 98 +47
bb_full_fd_action 362 394 +32
get_header_tar 1546 1558 +12
data_extract_to_command 430 439 +9
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/0 up/down: 100/0) Total: 100 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-26 18:11:44 +02:00
Denys Vlasenko
894fa0ad62
fix breakage in compressed file detection
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-26 05:01:16 +02:00
Denys Vlasenko
63144be7ea
universal parser: do not leak parser->data
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-26 04:00:52 +02:00
Denys Vlasenko
1fcbff2fac
build system: do not rebuild ash and hush on any change to any .c file
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-26 02:40:08 +02:00
Denys Vlasenko
918f444f90
conspy: make "conspy 0" use vcsa0 but "conspy" (no param) use vcsa
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-25 14:40:25 +02:00
Denys Vlasenko
8d444494ef
another fix to gen_build_files / autoconf.h dependency
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-25 13:56:28 +02:00
Denys Vlasenko
1d72d43940
gen_build_files.sh is an order prerequisite only for autoconf.h
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-25 13:30:59 +02:00
Denys Vlasenko
e69c5e2429
build system: make gen_build_files.sh run before autoconf.h generation
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-25 12:58:17 +02:00
Denys Vlasenko
41ddd9f606
*: make exec failure message more consistent
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-25 01:46:53 +02:00
Ladislav Michl
2b46fd49b1
tar: optional support for --to-command
...
function old new delta
data_extract_to_command - 430 +430
dec2env - 44 +44
tar_main 778 819 +41
str2env - 37 +37
tar_var - 32 +32
xputenv - 22 +22
tar_longopts 257 270 +13
------------------------------------------------------------------------------
(add/remove: 6/0 grow/shrink: 2/0 up/down: 619/0) Total: 619 bytes
Signed-off-by: Ladislav Michl <Ladislav.Michl@seznam.cz >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-25 01:33:00 +02:00
Denys Vlasenko
51fa147c9b
conspy: code shrink
...
function old new delta
conspy_main 1385 1380 -5
screen_dump 215 202 -13
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-25 00:57:57 +02:00
Denys Vlasenko
eff6d59343
ntpd: step correction to variables had wrong sign, fixing
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-24 20:23:40 +02:00
Denys Vlasenko
a54985b279
conspy: document attribute byte format
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-24 17:50:00 +02:00
Denys Vlasenko
a091d45c3b
smemcap: new applet
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-24 05:05:12 +02:00
Denys Vlasenko
dd8adde386
*: introduce and use bb_unsetenv_and_free
...
function old new delta
bb_unsetenv_and_free - 17 +17
tcpudpsvd_main 1819 1810 -9
safe_setenv 58 47 -11
udhcp_run_script 630 616 -14
make_device 1683 1663 -20
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/4 up/down: 17/-54) Total: -37 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-24 05:00:50 +02:00
Andreas Bühmann
da75f44844
ash: <> redir should not truncate
...
Signed-off-by: Andreas Bühmann <buehmann@users.berlios.de >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-24 04:32:37 +02:00
Pascal Bellard
1b8e2b0e76
conspy: code shrink ~200 bytes
...
Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-23 20:25:00 +02:00
Denys Vlasenko
64606c6d01
typo fix
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-22 18:33:15 +02:00
Marek Polacek
fc6f6e933c
rev: new applet
...
text data bss dec hexfilename
377 0 0 377 179rev.o
Signed-off-by: Marek Polacek <mmpolacek@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-22 12:53:35 +02:00
Denys Vlasenko
6d9c88ad98
fix config help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-21 07:25:36 +02:00
Denys Vlasenko
adbbee46ad
bootchartd: added optional compat features
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-21 07:17:23 +02:00
Denys Vlasenko
05a550b48a
fix errors in detecting non-modified areas
...
function old new delta
screen_char 100 102 +2
cleanup 84 86 +2
screen_dump 215 210 -5
conspy_main 1503 1491 -12
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-21 04:00:16 +02:00
Pascal Bellard
a8b594fda7
conspy: new applet
...
Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-21 02:17:29 +02:00
Denys Vlasenko
d2b738a6d2
decompress_unxz: use common string
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-21 02:16:51 +02:00
Denys Vlasenko
ba73cfd284
unxz: update from XZ embedded git
...
function old new delta
rc_reset - 21 +21
unpack_xz_stream 2342 2357 +15
lzma_reset 102 64 -38
lzma_len 506 443 -63
xz_dec_lzma2_run 1438 1374 -64
xz_dec_reset 73 - -73
lzma_main 2517 2183 -334
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 1/4 up/down: 36/-572) Total: -536 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-20 02:40:56 +02:00
Denys Vlasenko
91d7ee31f7
tweak TODO file
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-19 22:15:20 +02:00
Denys Vlasenko
4a96617095
xargs: bump default -sNUM up to 32k. Use sysconf() to trim it down if necessary
...
function old new delta
xargs_main 819 830 +11
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-19 21:44:01 +02:00
Denys Vlasenko
e15a6c82df
added Config.in to .gitignore
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-19 20:42:02 +02:00
Denys Vlasenko
134d0eb114
cosmetics on top of Dan's patches
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-19 20:07:23 +02:00
Dan Fandrich
ebeac1685a
Define GNU-specific link options in one place
...
This makes them easier to change to support a non-GNU toolchain.
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-19 20:03:21 +02:00
Dan Fandrich
0635ddd8f7
Added code for nonstandard function strsep()
...
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-19 20:03:18 +02:00
Dan Fandrich
fdd7b566ec
A few minor portability improvements
...
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-19 20:03:15 +02:00
Denys Vlasenko
eb08b6ed5c
sed: trivial code shrink -18 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-19 17:51:06 +02:00
Denys Vlasenko
020465218c
Merge branch 'master' of git+ssh://vda@busybox.net/var/lib/git/busybox
2010-06-19 17:50:44 +02:00
Denys Vlasenko
e329089c62
Revert "sed: trivial code shrink"
...
This reverts commit c2c7aa4b0d .
2010-06-19 17:50:23 +02:00
Denys Vlasenko
c2c7aa4b0d
sed: trivial code shrink
...
function old new delta
sed_main 685 667 -18
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-19 17:47:46 +02:00
Denys Vlasenko
8cd9f343e7
ash: times builtin: use unsigned type; take free-of-charge modulo
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-18 15:36:48 +02:00
Denys Vlasenko
b87c17cd16
*: stop defining _GNU_SOURCE in source files, it's in CFLAGS anyway
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-18 15:15:24 +02:00
Denys Vlasenko
7df28bbb8f
ash: fix unset in standalone mode
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-18 14:23:47 +02:00
Denys Vlasenko
1ed2fb40c9
ash: cosmetics, no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-18 14:09:48 +02:00
Dan Fandrich
b76f18d331
Improve unzip's handling of stream ZIP files
...
Search harder for the ZIP magic numbers at the end of a file by checking
16 KiB from the end instead of just 1 KiB. ZIP files with long comments
(such as certain cryptographically signed files) or those sitting in a
wrapper could have more than 1 KiB of data after the magic numbers, so
they couldn't be read.
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-18 13:32:39 +02:00
Dan Fandrich
eafc6956f6
Allow CONFIG_VOLUMEID to be turned off
...
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-18 13:28:46 +02:00
Dan Fandrich
f934a51c9b
ignore changes to Kbuild files, they are generated
...
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-18 13:27:57 +02:00
Denys Vlasenko
8f599f9a31
mkfs_ext2: improve comments a bit
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-18 12:40:57 +02:00
Denys Vlasenko
0f022c0565
cpio.tests: mention suid bits too, not only sgid
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-18 12:28:05 +02:00
Bernhard Reutner-Fischer
5070124763
mkfs_ext2: reuse string
...
function old new delta
mkfs_ext2_main 2376 2378 +2
.rodata 135872 135848 -24
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 2/-24) Total: -22 bytes
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2010-06-18 11:49:44 +02:00
Bernhard Reutner-Fischer
cd5aa5c5da
mkfs_ext2: fix handling of -I argument
...
-I <unsigned int> but was treated as a character
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2010-06-18 11:47:45 +02:00
Denys Vlasenko
9b814ca633
mktemp: be more compatible: bare "mktemp" creates tempfile in /tmp, not cwd
...
function old new delta
mktemp_main 171 152 -19
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-18 03:16:27 +02:00
Denys Vlasenko
4ebdae3777
date: make %N work without -lrt on glibc
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-18 02:55:48 +02:00
Denys Vlasenko
5b1dfe609c
tftp: increase initial retry timeout from 50 to 100 ms
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-18 02:47:27 +02:00
Denys Vlasenko
3b727ccb70
add a comment about sed and suid bits
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-18 02:12:56 +02:00
Denys Vlasenko
d86b4c3907
data_extract_all: do not chmod symlink. Closes 2053
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-18 02:00:55 +02:00
Denys Vlasenko
0cc25945d8
networking/Config.src: make tftp/tftpd-related options less confusing. Closes 2017
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-17 23:48:59 +02:00
Denys Vlasenko
2f41e7ea57
fix extra bogus files generation in include/config/*
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-17 20:20:24 +02:00
Baruch Siach
3324c96335
ubiattach,ubidetach: new applets
...
function old new delta
ubi_attach_detach_main - 175 +175
packed_usage 27056 27136 +80
applet_names 2262 2282 +20
applet_main 1328 1336 +8
applet_nameofs 664 668 +4
applet_install_loc 166 167 +1
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 5/0 up/down: 288/0) Total: 288 bytes
Signed-off-by: Baruch Siach <baruch@tkos.co.il >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-16 12:22:58 +02:00
Denys Vlasenko
4f731ce30e
findutils/*: move usage and applet bits to *.c files
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-15 15:40:16 +02:00
Denys Vlasenko
c37fecb86c
file rename: TODO_config_nommu -> TEST_config_nommu
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-15 15:15:57 +02:00
Denys Vlasenko
237aecedab
xargs: another code shrink
...
function old new delta
process0_stdin 117 103 -14
process_stdin 336 314 -22
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-15 10:18:01 +02:00
Denys Vlasenko
f7e929e795
xargs: trivial code shrink
...
function old new delta
xargs_main 807 787 -20
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-15 10:02:04 +02:00
Denys Vlasenko
1cd769a154
rfkill: do not enable by default, it requires new-ish Linux headers
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-14 14:28:31 +02:00
Denys Vlasenko
da3a956dda
scripts/echo.c: remove bb-ism
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-14 14:27:26 +02:00
Denys Vlasenko
c28cafb18d
xargs: trivial code shrink
...
function old new delta
process_stdin 343 336 -7
process0_stdin 124 117 -7
xargs_main 807 787 -20
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-14 12:38:36 +02:00
Denys Vlasenko
7a4021deba
xargs: simplify logic
...
Removed double-buffering in a linked list.
function old new delta
store_param - 56 +56
xargs_main 871 840 -31
process_stdin 458 396 -62
process0_stdin 267 143 -124
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/3 up/down: 56/-217) Total: -161 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-14 00:57:05 +02:00
Denys Vlasenko
aaa24e09f9
xargs: fix accounting of -sNUM
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-13 12:43:54 +02:00
Denys Vlasenko
1613de85d9
xargs: make -s NUM accept practically unlimited range
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-13 03:44:27 +02:00
Denys Vlasenko
d5fa1a0f49
xargs: code shrink -15 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-13 03:43:43 +02:00
Seb
d2d327db6d
stat: make output more similar to GNU stat
...
Signed-off-by: Seb <sbb@tuxfamily.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-12 21:57:50 +02:00
Denys Vlasenko
e2b41cfb4b
date: trivial fix - was reading seconds into nanoseconds field! DOH
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-12 03:32:22 +02:00
Denys Vlasenko
53e2f38b69
tftp: make message about 512 byte block less confusing
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-12 03:29:58 +02:00
Bernhard Reutner-Fischer
aa30efcc07
check-lxdialog.sh: fix helptext
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2010-06-11 15:31:54 +02:00
Denys Vlasenko
ab60cd1382
utoa: shrink
...
function old new delta
itoa_to_buf 20 23 +3
utoa_to_buf 117 101 -16
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-10 10:54:44 +02:00
Denys Vlasenko
7fdf5a88b4
modinfo: needs modutils.o
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-09 10:18:35 +02:00
Denys Vlasenko
d70e0e995e
*: add INSERTs to *.src files where appropriate
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-08 12:15:11 +02:00
Denys Vlasenko
b68bba5649
date: use the same code for FEATURE_DATE_NANO for glibc and uclibc
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-08 04:39:30 +02:00
Denys Vlasenko
729ecb87bf
bbconfig: make it independent from printf functions
...
function old new delta
full_write2_str - 25 +25
full_write1_str - 25 +25
clear_main 21 20 -1
telnet_main 1488 1477 -11
getty_main 1932 1918 -14
full_write22_str 25 - -25
------------------------------------------------------------------------------
(add/remove: 2/1 grow/shrink: 0/3 up/down: 50/-51) Total: -1 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-07 14:14:26 +02:00
Denys Vlasenko
121fb9506b
typo fix
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-07 13:34:34 +02:00
Denys Vlasenko
838e0dbda1
small fix in usage text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-07 03:04:46 +02:00
Pascal Bellard
c62f229d45
dpkg: add support for lzma compression
...
Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-07 01:20:41 +02:00
Pascal Bellard
b82b34e06d
modprobe: add support for -l and -s. Remove some unsupported options
...
Fixed some goofs in help text
function old new delta
modprobe_main 494 653 +159
packed_usage 27129 27145 +16
insmod_main 98 95 -3
Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-07 01:18:53 +02:00
Maksym Kryzhanovskyy
e3657dcdd6
fuser: code shrink
...
function old new delta
fuser_main 918 871 -47
Signed-off-by: Maksym Kryzhanovskyy <xmaks@email.cz >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-06 22:56:12 +02:00
Denys Vlasenko
c8aae0b2a0
fix allnoconfig
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-06 22:14:58 +02:00
Denys Vlasenko
19ced5c425
pipe_progress: make it independent of printf machinery
...
function old new delta
bb_putchar_stderr - 24 +24
ParseField 494 471 -23
progress_meter 212 188 -24
xargs_main 888 842 -46
pipe_progress_main 151 105 -46
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 0/4 up/down: 24/-139) Total: -115 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-06 21:53:09 +02:00
Denys Vlasenko
5f3303712e
pipe_progress: shrink
...
function old new delta
pipe_progress_main 163 151 -12
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-06 18:19:25 +02:00
Denys Vlasenko
8aab0c95be
loadkmap: remove UNUSED_PARAM from argv
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-06 18:10:50 +02:00
Denys Vlasenko
2fd45c2cdb
dumpkmap,loadkmap: abort if there are params on cmdline
...
function old new delta
loadkmap_main 201 219 +18
dumpkmap_main 208 223 +15
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-06 18:09:57 +02:00
Denys Vlasenko
f2da16f451
date: make FEATURE_NANO compile on glibc systems
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-06 17:53:48 +02:00
Denys Vlasenko
d94332f2b6
top: code shrink, -26 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-06 17:40:54 +02:00
Maksym Kryzhanovskyy
87496aa081
top: code shrink
...
text data bss dec hex filename
853034 453 6820 860307 d2093 busybox_old
852726 453 6820 859999 d1f5f busybox_unstripped
Signed-off-by: Maksym Kryzhanovskyy <xmaks@email.cz >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-06 08:24:39 +02:00
Denys Vlasenko
f2177abe1d
yes: this applet doesn't have options, don't lie that it does.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-06 05:23:09 +02:00
Denys Vlasenko
161bb8fa12
fix a few goofs uncovered by "make allnoconfig" testing
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-06 05:07:11 +02:00
Pascal Bellard
22bdf90334
modinfo: new applet
...
function old new delta
modinfo_main - 307 +307
modinfo - 280 +280
packed_usage 27037 27131 +94
display - 74 +74
static.shortcuts - 24 +24
applet_names 2254 2262 +8
applet_main 1324 1328 +4
applet_nameofs 662 664 +2
------------------------------------------------------------------------------
(add/remove: 5/0 grow/shrink: 4/0 up/down: 793/0) Total: 793 bytes
Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-06 04:55:13 +02:00
Denys Vlasenko
2f32bf8be6
remove defconfig. Now "make defconfig" simply uses defaults from Config.in
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-06 04:14:28 +02:00
Denys Vlasenko
f0f9470061
make it possible to keep usage texts in .c files
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-06 01:53:38 +02:00
Denys Vlasenko
6c5bf0d347
make it possible to have include/applets.h-esque entries in .c files
...
As an example, bunzip2 and bzcat is changed to use it.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-06 00:53:45 +02:00
Denys Vlasenko
0e5ba0843b
Remove requirement that include/applets.h must be sorted
...
First, I _again_ violated it - two xz-related applets are in wrong positions.
Second, planned in-applet help text thing will be so much easier without
this requirement...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-05 23:11:07 +02:00
Denys Vlasenko
729ce47360
tr: add forgotten //config: prefixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-05 21:29:41 +02:00
Denys Vlasenko
da929a95aa
mass renaming Kbuild -> Kbuild.src, Config.in -> Config.src
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-04 20:10:51 +02:00
Denys Vlasenko
e4070cb0d7
partially migrate coreutils to Config.src and Kbuild.src
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-04 19:59:49 +02:00
Mike Frysinger
6db1373295
udhcpd: fix daemonize crash on nommu systems
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2010-06-04 13:24:50 -04:00
Denys Vlasenko
6c2406ac86
date: optional support for %N. Closes bug 1861.
...
function old new delta
date_main 862 1090 +228
clock_gettime - 41 +41
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 1/0 up/down: 269/0) Total: 269 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-04 18:19:15 +02:00
Denys Vlasenko
8878c24c7d
mkfs_vfat: fix gcc-4.4 warning
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-04 15:55:17 +02:00
Denys Vlasenko
c46792492f
typo fix
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-04 01:31:48 +02:00
Denys Vlasenko
bf5f99ffb2
sed: fix a case when one-line range matches past lines. Closes bug 1867.
...
function old new delta
process_files 2096 2107 +11
add_cmd 1142 1132 -10
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 11/-10) Total: 1 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-04 01:29:52 +02:00
Denys Vlasenko
79b3d42e13
ash: rename parsefile->fd to ->pf_fd
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-03 04:29:08 +02:00
Denys Vlasenko
08d8b3cee1
ash: fix redirection of fd 0 in scripts are sourced from interactive ash
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-03 04:28:28 +02:00
Denys Vlasenko
3e47cfec90
test: "" is not a valid number. Closes bug 1915
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-03 01:47:04 +02:00
Denys Vlasenko
26b6ccf340
*: simplify checks for gz/bz2/xz magic
...
function old new delta
send_tree 360 355 -5
rpm2cpio_main 249 220 -29
setup_unzip_on_fd 150 118 -32
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-66) Total: -66 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-02 14:14:48 +02:00
Denys Vlasenko
abb154ba02
document how to find non-shared string dups
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-02 13:28:17 +02:00
Denys Vlasenko
ea8b252cb3
*: better string sharing
...
text data bss dec hex filename
849427 441 7556 857424 d1550 busybox_old
849355 441 7556 857352 d1508 busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-02 12:57:26 +02:00
Denys Vlasenko
8837c5dec4
ash: remove one redundant function, improve string sharing, better field names
...
function old new delta
var_end - 15 +15
changepath 194 192 -2
setvareq 222 218 -4
lookupvar 57 51 -6
bltinlookup 57 51 -6
evalfun 452 443 -9
varequal 14 - -14
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 0/5 up/down: 15/-41) Total: -26 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-02 12:56:18 +02:00
Denys Vlasenko
8376bfae58
decompress_unxz: allocate permanent crc32 table _fisrt_
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-01 23:26:54 +02:00
Denys Vlasenko
b9542cb2ce
deinline two big functions
...
function old new delta
xz_dec_lzma2_run - 1483 +1483
decode_one_format - 715 +715
decode_format_string 840 98 -742
unpack_xz_stream 4014 2377 -1637
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 0/2 up/down: 2198/-2379) Total: -181 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-01 23:16:46 +02:00
Denys Vlasenko
716f3f612e
decompress_unxz: newer version, one which can unpack SHA-256 protected files
...
function old new delta
check_sizes - 16 +16
crc32_table - 4 +4
index_update 47 40 -7
crc32_validate 110 93 -17
dec_vli 197 165 -32
unpack_xz_stream 4284 4014 -270
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 0/4 up/down: 20/-326) Total: -306 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-01 14:41:39 +02:00
Tomas Heinrich
11bcf4b224
lineedit: fix column display for wide and combining chars in TAB completion
...
function old new delta
unicode_strwidth - 20 +20
read_line_input 4945 4953 +8
unicode_strlen 31 - -31
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 1/0 up/down: 28/-31) Total: -3 bytes
Signed-off-by: Tomas Heinrich <heinrich.tomas@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-06-01 08:33:18 +02:00
Denys Vlasenko
39a04f71ca
archival/*: shrink by reusing sufficiently similar functions
...
function old new delta
append_ext - 16 +16
unxz_main 77 83 +6
unlzma_main 77 83 +6
uncompress_main 42 48 +6
gzip_main 184 190 +6
bzip2_main 114 120 +6
bunzip2_main 61 67 +6
bbunpack 469 475 +6
send_tree 355 360 +5
lzop_main 89 92 +3
gunzip_main 61 64 +3
make_new_name_lzop 84 82 -2
make_new_name_gunzip 114 112 -2
make_new_name_unxz 14 - -14
make_new_name_unlzma 14 - -14
make_new_name_uncompress 14 - -14
make_new_name_bunzip2 14 - -14
make_new_name_gzip 17 - -17
make_new_name_bzip2 17 - -17
------------------------------------------------------------------------------
(add/remove: 1/6 grow/shrink: 10/2 up/down: 69/-94) Total: -25 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-31 14:18:57 +02:00
Denys Vlasenko
b8b72f02f0
dhcp: truncate packets instead of padding them to 574 bytes. closes bug 1849
...
function old new delta
udhcp_send_raw_packet 411 456 +45
udhcp_send_kernel_packet 259 271 +12
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-31 00:45:09 +02:00
Denys Vlasenko
e58c6e2e13
dhcp: indicate IP network order in prototypes too
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-30 23:43:35 +02:00
Denys Vlasenko
b7d19cc400
dhcp: readability cleanups and small code shrink
...
function old new delta
udhcp_run_script 654 617 -37
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-30 23:41:23 +02:00
Denys Vlasenko
c88c1a0190
rpm2cpio: teach it to understand xz format
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-30 05:10:16 +02:00
Denys Vlasenko
acaaca839a
unxz: remove debugging. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-30 04:50:21 +02:00
Denys Vlasenko
6948f210ed
*: teach tar et. al. to understand .xz by heart
...
function old new delta
unpack_xz_stream - 4126 +4126
setup_unzip_on_fd 80 150 +70
open_zipped 113 131 +18
unpack_unxz 5 12 +7
send_tree 360 353 -7
unpack_xz_stream_stdin 3953 - -3953
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 3/1 up/down: 4221/-3960) Total: 261 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-30 04:18:13 +02:00
Denys Vlasenko
fb6c76cb6e
forgotten "git add"...
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-30 03:47:40 +02:00
Denys Vlasenko
d93f19e443
reorder parts of bbunzip.c, no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-30 03:46:54 +02:00
Denys Vlasenko
602ce69afb
unxz: new applet, complete with xzcat and xz -d aliases
...
function old new delta
unpack_xz_stream_stdin - 3953 +3953
lzma_main - 2601 +2601
lzma_len - 516 +516
dec_vli - 165 +165
dict_repeat - 103 +103
lzma_reset - 98 +98
fill_temp - 98 +98
crc32_validate - 93 +93
xz_dec_reset - 77 +77
unxz_main - 77 +77
index_update - 47 +47
xz_crc32 - 40 +40
packed_usage 27044 27060 +16
make_new_name_unxz - 14 +14
applet_names 2240 2254 +14
applet_main 1312 1324 +12
applet_nameofs 656 662 +6
unpack_unxz - 5 +5
send_tree 355 360 +5
applet_install_loc 164 166 +2
------------------------------------------------------------------------------
(add/remove: 15/0 grow/shrink: 6/0 up/down: 7942/0) Total: 7942 bytes
text data bss dec hex filename
844032 453 6812 851297 cfd61 busybox_old
852063 453 6812 859328 d1cc0 busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-30 03:35:18 +02:00
Denys Vlasenko
e04c867a21
rename FEATURE_LZMA_ALIAS to just LZMA
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-30 03:33:50 +02:00
Denys Vlasenko
8bcaa6a4e9
lzop: fix indentation
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-30 01:57:52 +02:00
Bernhard Reutner-Fischer
7bdfb7cbf0
bbunzip: silence warning about unused variable
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2010-05-27 15:39:01 +02:00
Denys Vlasenko
eb29e91dc6
trivial fixes: use uint8_t, not __u8; fix defconfig for fgconsole
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-27 13:35:04 +02:00
Denys Vlasenko
76c936f522
build system: make gen_build_files.sh messages more inline with the rest
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-27 02:33:31 +02:00
Denys Vlasenko
a3581409c2
trim help text. -29 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-27 02:30:04 +02:00
Denys Vlasenko
ccb88a689e
unlzma: add "lzma -d" alias, add -t support, rename lzmacat->lzcat
...
Also coalesce some common strings
text data bss dec hex filename
844110 453 6812 851375 cfdaf busybox_old
844061 453 6812 851326 cfd7e busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-27 02:22:54 +02:00
Bernhard Reutner-Fischer
c5f30c0df8
ip addr: shrink
...
function old new delta
ipaddr_list_or_flush 1254 1248 -6
ipaddr_modify 1299 1279 -20
.rodata 135249 135193 -56
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-82) Total: -82 bytes
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2010-05-25 18:48:33 +02:00
Bernhard Reutner-Fischer
cc4493a95c
ip addr: unify parsing args
...
function old new delta
do_ipaddr 87 84 -3
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-3) Total: -3 bytes
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2010-05-25 18:48:33 +02:00
Bernhard Reutner-Fischer
1b3549875c
ip rule: unify parsing args
...
function old new delta
do_iprule 83 134 +51
print_rule 736 726 -10
iprule_list 73 - -73
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 1/1 up/down: 51/-83) Total: -32 bytes
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2010-05-25 18:48:33 +02:00
Bernhard Reutner-Fischer
96913f9254
ip tunnel: unify parsing args; no obj-code changes
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2010-05-25 18:48:33 +02:00
Bernhard Reutner-Fischer
ab0e412937
ip link: add qlen
...
qlen had a variable but was not handled..
function old new delta
do_iplink 1113 1261 +148
.rodata 135225 135249 +24
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/0 up/down: 172/0) Total: 172 bytes
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2010-05-25 18:48:33 +02:00
Bernhard Reutner-Fischer
d148e484db
iplink: shrink
...
function old new delta
do_change 490 487 -3
ipaddr_list_link 18 - -18
do_iplink 1169 1113 -56
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 0/2 up/down: 0/-77) Total: -77 bytes
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2010-05-25 18:48:33 +02:00
Bernhard Reutner-Fischer
6faebfa663
iplink: support add/delete
...
function old new delta
do_change - 490 +490
.rodata 135193 135225 +32
do_iplink 1146 1169 +23
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 2/0 up/down: 545/0) Total: 545 bytes
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2010-05-25 13:39:39 +02:00
Bernhard Reutner-Fischer
49ee8393f4
ipaddress: print OPERSTATEs and NO-CARRIER
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2010-05-25 10:25:52 +02:00
Denys Vlasenko
fc2bb8f04f
unzip: another small code shrink
...
function old new delta
find_cdf_offset 173 160 -13
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-24 13:07:55 +02:00
Denys Vlasenko
e98884b9be
unzip: tiny code shrink -2 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-24 04:46:18 +02:00
Denys Vlasenko
4e8ff73e20
unzip: restore unix file mode if possible. closes bug 1045
...
function old new delta
unzip_main 2197 2188 -9
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 0/1 up/down: 173/-182) Total: -9 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-24 04:33:02 +02:00
Grigory Batalov
ad7a5d436c
fgconsole: new applet by Grigory Batalov <bga@altlinux.org>
...
function old new delta
fgconsole_main - 51 +51
applet_names 2227 2237 +10
applet_main 1304 1308 +4
applet_nameofs 652 654 +2
applet_install_loc 163 164 +1
packed_usage 27079 27073 -6
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 4/1 up/down: 68/-6) Total: 62 bytes
Signed-off-by: Grigory Batalov <bga@altlinux.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-23 23:22:10 +02:00
Denys Vlasenko
a85b66e0f9
ifconfig: do not truncate interface names. closes bug 1795
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-23 23:04:15 +02:00
Denys Vlasenko
599ae1eb9f
shell: consolidate builtin_foo.? into shell_common.?; delete obsolete shells
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-23 17:49:50 +02:00
Denys Vlasenko
4f63c7931c
fix unescaped $ in makefile
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-23 16:14:06 +02:00
Denys Vlasenko
9e07219c78
ps: make "ps -o BAD" emit list of good -o params
...
also make ps help more informative
function old new delta
find_out_spec 58 103 +45
packed_usage 27039 27079 +40
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-23 00:34:42 +02:00
Denys Vlasenko
765b0eed3e
getty: do not emit bogus error message on EOF
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-22 21:17:46 +02:00
Maksym Kryzhanovskyy
fef9ee7072
fuser: code shrink, fixing default signal, exitcode and PID display
...
Defult signal is KILL, not TERM.
We used to not display PIDs with -k but without -s, but
upstream (fuser from PSmisc 22.7) still shows PIDs.
Filtering out of our own PID was buggy.
function old new delta
fuser_main 669 918 +249
search_dev_inode 67 74 +7
add_pid 38 39 +1
scan_pid_maps 225 222 -3
add_inode 91 88 -3
packed_usage 27047 27039 -8
scan_dir_links 102 76 -26
scan_link 78 46 -32
file_to_dev_inode 64 - -64
scan_proc_net 307 - -307
------------------------------------------------------------------------------
(add/remove: 0/2 grow/shrink: 3/5 up/down: 257/-443) Total: -186 bytes
Signed-off-by: Maksym Kryzhanovskyy <xmaks@email.cz >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-22 20:41:08 +02:00
Denys Vlasenko
8391c4800c
hush: trivial code shrink
...
function old new delta
static_get 26 22 -4
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-22 17:50:43 +02:00
Denys Vlasenko
2e48d536ce
hush: reduce #ifdef forest a bit, rename handle_dollar -> parse_dollar
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-22 17:30:39 +02:00
Denys Vlasenko
5ae8f1cdbe
hush: fix hush -c 'echo $0' - was showing empty string
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-22 06:32:11 +02:00
Denys Vlasenko
e85248afa2
hush: fix segfault in ${?:N:M}
...
function old new delta
expand_vars_to_list 2374 2409 +35
builtin_umask 132 133 +1
builtin_exit 47 48 +1
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 37/0) Total: 37 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-22 06:20:26 +02:00
Denys Vlasenko
8a33679694
hush: fix "hush -c 'echo $#'" showing -1
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-22 06:05:02 +02:00
Denys Vlasenko
1e811b1231
hush: support ${var:EXPR:EXPR}!
...
function old new delta
handle_dollar 574 681 +107
expand_and_evaluate_arith - 77 +77
expand_vars_to_list 2302 2374 +72
add_till_closing_bracket 359 368 +9
builtin_exit 48 47 -1
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 3/1 up/down: 265/-1) Total: 264 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-22 03:12:29 +02:00
Denys Vlasenko
ddc62f64ba
hush: fix a nommu todo in recent commits
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-22 00:53:32 +02:00
Denys Vlasenko
a6ad397ea9
hush: fix more obscure ${var%...} cases
...
function old new delta
add_till_closing_paren 313 359 +46
builtin_exit 48 47 -1
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-22 00:26:06 +02:00
Denys Vlasenko
7436950a75
hush: fix a=abc; c=c; echo ${a%${c}}
...
function old new delta
expand_vars_to_list 2229 2302 +73
add_till_closing_paren 286 313 +27
handle_dollar 623 574 -49
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 100/-49) Total: 51 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-21 19:52:01 +02:00
Denys Vlasenko
3f78cec347
hush: handle expansions in ${var?expanded_word} constructs
...
function old new delta
expand_vars_to_list 2209 2229 +20
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-21 17:54:46 +02:00
Denys Vlasenko
349ef96bb5
hush: reorganized TODO comment at top
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-21 15:46:24 +02:00
Denys Vlasenko
214b8ca3dc
hush: add a list of unsupported builtins
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-21 15:35:44 +02:00
Denys Vlasenko
73e013fca7
hush: handle ${var:NUM:} too
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-21 15:24:12 +02:00
Bernhard Reutner-Fischer
a88585a931
trylink: gold may not support --sort-common (yet)
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2010-05-21 12:11:34 +02:00
Bernhard Reutner-Fischer
e91bc53d0c
lxdialog: fix ncursesw include detection
...
the lib was checked but the include not, do so.
TODO: check if upstream fixed that already or fix it there, too.
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2010-05-21 11:49:11 +02:00
Denys Vlasenko
4f2c59b267
hush: remove extra comparison from prev commit
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-21 01:25:16 +02:00
Denys Vlasenko
4d8e5fdc1d
hush: optional support for ${var:N:M} bashism
...
function old new delta
expand_vars_to_list 1999 2183 +184
handle_dollar 682 623 -59
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-21 01:15:42 +02:00
Denys Vlasenko
53b513331a
hush: explain various parameter expansion ops in comments
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-20 21:46:45 +02:00
Denys Vlasenko
ee0775dd13
hush: small code shrink
...
function old new delta
expand_vars_to_list 2012 1999 -13
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-20 16:37:53 +02:00
Denys Vlasenko
e3be7842be
hush: shrink variable expansion code
...
function old new delta
expand_vars_to_list 2164 2012 -152
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-20 16:27:42 +02:00
Denys Vlasenko
cddbb610cb
hush: fix var=exit 2 not setting $? to 2
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-20 14:27:09 +02:00
Denys Vlasenko
131ed3bcc9
update shell/README
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-20 12:56:14 +02:00
Denys Vlasenko
a0ec4f500c
ash: eliminate 16 bytes in bss
...
text data bss dec hexfilename
841423 441 7572 849436 cf61cbusybox_old
841430 441 7556 849427 cf613busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-20 12:50:42 +02:00
Denys Vlasenko
44c86ce5d7
hush: code shrink
...
text data bss dec hex filename
843121 453 6828 850402 cf9e2 busybox_old
843108 453 6828 850389 cf9d5 busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-20 04:22:55 +02:00
Denys Vlasenko
b131ccec9c
hush: support "cd -- DIR" and such
...
function old new delta
skip_dash_dash - 33 +33
builtin_exit 43 48 +5
builtin_umask 121 125 +4
builtin_shift 115 119 +4
builtin_cd 71 75 +4
builtin_wait 271 274 +3
builtin_source 171 174 +3
builtin_exec 57 60 +3
builtin_eval 46 45 -1
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 7/1 up/down: 59/-1) Total: 58 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-20 03:39:43 +02:00
Denys Vlasenko
40477e2fdb
shell: make it possible to alias one of shells to "bash"
...
function old new delta
packed_usage 27047 27054 +7
applet_names 2227 2232 +5
applet_main 1304 1308 +4
applet_nameofs 652 654 +2
applet_install_loc 163 164 +1
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 5/0 up/down: 19/0) Total: 19 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-20 02:09:45 +02:00
Denys Vlasenko
2e068e725c
setkeycodes: fix handling of 0exx scancodes
...
function old new delta
setkeycodes_main 143 130 -13
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-19 17:15:54 +02:00
Denys Vlasenko
dc1fd2e52a
mount: handle EDQUOT > 255 properly. closes bug 1579
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-19 17:01:29 +02:00
Denys Vlasenko
9f82d0be61
vi: fix "set ic" command; code shrink while at it. closes bug 1765
...
function old new delta
colon 2970 2848 -122
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-19 01:54:37 +02:00
Denys Vlasenko
92510141e2
losetup: support /dev/loop10 and higher. closes bug 1627
...
function old new delta
query_loop 91 95 +4
losetup_main 288 285 -3
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-19 00:39:17 +02:00
Denys Vlasenko
42c4b2e3b5
ash: fix var_leak.tests so that it actually catches the NOFORK bug
...
+ document the bug better
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-18 16:13:56 +02:00
Denys Vlasenko
c7f95d23f6
typo fix
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-18 15:52:23 +02:00
Denys Vlasenko
238bf187ba
ash: fix bug which causes signal6.tests to fail
...
function old new delta
trapcmd 271 277 +6
localcmd 277 275 -2
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-18 15:49:07 +02:00
Denys Vlasenko
51b4a9e2f1
ash: fix var_leak testcase
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-18 14:35:20 +02:00
Denys Vlasenko
5e2d572381
ash: fix testsuite false positives
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-18 14:11:21 +02:00
Denys Vlasenko
e66cf821cf
ash,hush: make bare "." set exitcode to 2
...
function old new delta
dotcmd 300 305 +5
builtin_source 176 171 -5
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-18 09:12:53 +02:00
Denys Vlasenko
a1db8b8415
make scripts/gen_build_files.sh standard-clean
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-18 00:24:17 +02:00
Denys Vlasenko
0e81e488fd
shell/README: describe special builtins
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-17 23:51:00 +02:00
Denys Vlasenko
adc0e20892
hush: update bash compat todo comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-17 18:56:58 +02:00
Denys Vlasenko
82731b4b7a
ash,hush: make "source" a synonym for . if bash compat is on
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-17 17:49:52 +02:00
Denys Vlasenko
cd10dc40e4
ash: fix ". empty_file" exitcode. +5 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-17 17:10:46 +02:00
Denys Vlasenko
bbf1aa1eaf
typo fix
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-17 12:33:13 +02:00
Denys Vlasenko
1118d9b213
lineedit: fix insertion deep inside line (*several lines* before end)
...
function old new delta
input_backward 212 229 +17
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-17 12:30:44 +02:00
Denys Vlasenko
786cce1871
fix false positive in signal5.tests
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-17 10:14:20 +02:00
Denys Vlasenko
82dd14a510
ash: use CONFIG_FEATURE_EDITING_MAX_LEN
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-17 10:10:01 +02:00
Denys Vlasenko
ef215558fa
typo fix
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-17 09:55:13 +02:00
Denys Vlasenko
3227d3f982
hush: fix hush-bugs/parse_err.tests
...
function old new delta
parse_stream 2325 2339 +14
builtin_umask 121 123 +2
builtin_type 116 114 -2
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-17 09:49:47 +02:00
Denys Vlasenko
0f01b00d74
add two more tests which currently fail
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-17 04:57:55 +02:00
Denys Vlasenko
7c1ed9fbde
ash: fix signal5.tests
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-17 04:42:40 +02:00
Denys Vlasenko
9963fe36c2
lineedit: trivial simplifications. -7 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-17 04:05:53 +02:00
Denys Vlasenko
27ff681cfa
ash: add two testcases for (not yet fixed) ash bugs
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-17 02:56:18 +02:00
Denys Vlasenko
3015a1351a
scripts/gen_build_files.sh: revert to using /bin/sh
...
People want busybox to build w/o bash, with /bin/sh = ash
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-17 01:59:16 +02:00
Denys Vlasenko
248c324f7c
lineedit: fix moving backwards across lines with wide chars
...
function old new delta
input_backward 212 208 -4
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-17 00:45:44 +02:00
Denys Vlasenko
d9a3e89f50
consolidate ESC sequences
...
function old new delta
bell 2 - -2
CMdown 2 - -2
Ceos 4 - -4
Ceol 4 - -4
CMup 4 - -4
SOs 5 - -5
SOn 5 - -5
CMrc 9 - -9
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-16 23:42:13 +02:00
Denys Vlasenko
26e2c1db0d
stop using LAST_SUPPORTED_WCHAR and CONFIG_LAST_SUPPORTED_WCHAR, it's confusing
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-16 21:15:03 +02:00
Tomas Heinrich
b8909c52fe
lineedit: partially fix wide and combining chars editing
...
Signed-off-by: Tomas Heinrich <heinrich.tomas@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-16 20:46:53 +02:00
Peter Tyser
0b7412e66b
findutils: Add Config.in and Kbuild to .gitignore
...
These are auto-generated files and should be ignored by git.
Signed-off-by: Peter Tyser <ptyser@xes-inc.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-16 02:51:00 +02:00
Peter Tyser
748139332a
scripts/Makefile.clean: Make Kbuild and Makefile optional
...
During cleaning, some directories might not have a Makefile or Kbuild
file. Previously scripts/Makefile.clean would spit out the following
error when neither file could be found:
ptyser@petert busybox $ make mrproper
scripts/Makefile.clean:17: /home/user/busybox/findutils/Makefile: No such file or directory
make[1]: *** No rule to make target `/home/user/busybox/findutils/Makefile'. Stop.
make: *** [_clean_findutils] Error 2
This issue can be triggered by running 'make mrproper' in a freshly
cloned busybox repository.
Signed-off-by: Peter Tyser <ptyser@xes-inc.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-16 02:50:07 +02:00
Peter Tyser
0bb2980605
Makefile: Clean up auto-generated Kbuild and Config.in files
...
Previously these auto-generated files were left behind after a 'make
mrproper' was ran.
Signed-off-by: Peter Tyser <ptyser@xes-inc.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-16 02:48:21 +02:00
Denys Vlasenko
8806d64acd
hush: mention PPID, RANDOM support
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-16 02:36:18 +02:00
Denys Vlasenko
a29b055bf1
setsid: check for setsid error directly
...
function old new delta
setsid_main 74 66 -8
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-16 02:12:56 +02:00
Denys Vlasenko
084e2284c7
gen_build_files.sh uses bashism, document it
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-15 21:08:51 +02:00
Denys Vlasenko
b367bb2a62
cttyhack: document the need to setsid
...
function old new delta
packed_usage 26988 27057 +69
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-15 20:43:07 +02:00
Denys Vlasenko
c84c85ae34
gen_build_files: use raw reads (ones which don't eat backslashes)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-14 20:30:44 +02:00
Denys Vlasenko
5055a9f989
cttyhack: don't do anything if ctty is already available
...
function old new delta
cttyhack_main 244 269 +25
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-14 04:08:20 +02:00
Denys Vlasenko
e82cf339e4
randomtest fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-12 15:59:32 +02:00
Denys Vlasenko
a2215b98f7
sed: fix a command with multible trailing backslashes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-12 01:49:04 +02:00
Denys Vlasenko
94043e8ad2
lineedit: change how cmdedit_set_out_char works
...
Rename two badly names functions, use "clear to end of screen"
to eliminate annoying problems with clearing wide/combining chars,
and such. Run tested.
function old new delta
put_cur_glyph_and_inc_cursor - 124 +124
put_till_end_and_adv_cursor - 24 +24
input_delete 125 130 +5
Ceos 5 4 -1
Ceol 5 4 -1
input_end 24 - -24
cmdedit_set_out_char 122 - -122
------------------------------------------------------------------------------
(add/remove: 2/2 grow/shrink: 1/2 up/down: 153/-148) Total: 5 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-11 14:49:13 +02:00
Denys Vlasenko
da1382410b
randomtest fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-11 12:02:48 +02:00
Denys Vlasenko
78d035f796
ifplugd: fix typo in prev commit
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-11 04:37:13 +02:00
Denys Vlasenko
c0211e907b
randomtest fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-11 04:32:04 +02:00
Denys Vlasenko
bfa1b2e8e8
randomtest fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-11 03:53:57 +02:00
Denys Vlasenko
6334390aef
remove duplicate comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-10 12:25:36 +02:00
Denys Vlasenko
8e3aff0ce0
more randomconfig testsuite fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-10 11:00:11 +02:00
Denys Vlasenko
e3d90a90d4
randomconfig testsuite fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-10 05:53:16 +02:00
Denys Vlasenko
1602a5cdb9
gen_build_files.sh should be executable
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-10 04:18:42 +02:00
Denys Vlasenko
ff0e875e02
work on adding testsuite runs to randomconfig test builds
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-10 04:16:43 +02:00
Denys Vlasenko
572b9a3019
tweak scripts/gen_build_files.sh
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-09 16:20:52 +02:00
Denys Vlasenko
65ebbc54d3
trim help text
...
function old new delta
packed_usage 27006 26988 -18
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-09 04:38:22 +02:00
Denys Vlasenko
7fb68f199f
make it possible to keep Config/Kbuild snippets in *.c files
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-09 04:22:48 +02:00
Denys Vlasenko
6774386d95
tune2fs: move to e2fsprogs
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-09 00:13:40 +02:00
Denys Vlasenko
19afe848ec
ifplugd: replace potentially-leaking setenv with malloc/putenv/free
...
text data bss dec hex filename
842657 453 6828 849938 cf812 busybox_old
842722 453 6828 850003 cf853 busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-08 23:26:16 +02:00
Denys Vlasenko
7b48eb4372
tar: support GNU 256-bit encoding in all numeric fields
...
function old new delta
getOctal 63 125 +62
get_header_tar 1572 1496 -76
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 62/-76) Total: -14 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-06 20:08:14 +02:00
Gustavo Zacarias
c7efd6441d
install lspci and lsusb to /usr/bin
...
Both can be run (to some degree) by mere users.
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar >
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2010-05-06 18:30:48 +02:00
Denys Vlasenko
c2345fa2d4
add comment about xz format support
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-06 17:05:22 +02:00
Denys Vlasenko
5dfd9c4dbc
rpm: make rpm -i SRPM.rpm install it to surrent dir; better help text
...
function old new delta
rpm_main 1355 1358 +3
packed_usage 26732 26728 -4
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 3/-4) Total: -1 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-06 16:56:38 +02:00
Denys Vlasenko
27653adc8b
rpm: code shrink. Now uses open_zipped's logic (factored out into setup_unzip_on_fd())
...
function old new delta
setup_unzip_on_fd - 80 +80
open_zipped 176 113 -63
rpm_main 1672 1355 -317
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/2 up/down: 80/-380) Total: -300 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-06 14:19:19 +00:00
Denys Vlasenko
b8ba6b66f5
bootchartd: better wording in comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-05 00:40:15 +02:00
Denys Vlasenko
e7f1e5ca1d
bootchartd: add missing parenthesis
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-04 17:34:37 +02:00
Denys Vlasenko
ff027d6f50
bootchartd: new applet
...
Usage: bootchartd start [PROG ARGS]|init|stop
Create /var/log/bootchart.tgz with boot chart data
Options:
start: start background logging; with PROG, run PROG, then kill
logging with USR1
stop: send USR1 to all bootchartd processes
init: start background logging; stop when getty/gdm is seen (for init scripts)
Under PID 1: as init, then exec $bootchart_init, /init, /sbin/init
function old new delta
bootchartd_main - 907 +907
dump_procs - 353 +353
packed_usage 26566 26735 +169
dump_file - 91 +91
static.dirs - 23 +23
applet_names 2176 2187 +11
applet_main 1284 1288 +4
applet_nameofs 642 644 +2
------------------------------------------------------------------------------
(add/remove: 5/0 grow/shrink: 4/0 up/down: 1560/0) Total: 1560 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-04 15:45:25 +02:00
Denys Vlasenko
fe360480aa
fix typo in commented-out code
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-04 14:59:01 +02:00
Denys Vlasenko
78abf88dcc
ifdown: use /var/run/udhcpc.%iface%.pid only if it exists
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-02 20:30:28 +02:00
Souf Oued
43afd75ea8
rfkill: new applet
...
function old new delta
rfkill_main - 683 +683
packed_usage 26824 26966 +142
static.rfkill_types - 42 +42
applet_names 2216 2223 +7
applet_main 1300 1304 +4
applet_nameofs 650 652 +2
Signed-off-by: Souf Oued <souf_oued@yahoo.fr >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-02 18:45:02 +02:00
Denys Vlasenko
fde3fb3009
udhcpd: fix hostname truncation bug 1663
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-05-02 14:17:07 +02:00
Ian Wienand
0a2c793bd6
grep: fix -Fi
...
function old new delta
grep_file 1151 1169 +18
Signed-off-by: Ian Wienand <ianw@vmware.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-04-30 09:32:10 +02:00
Lauri Kasanen
d2844fcb68
swapon: skip noauto entries
...
Signed-off-by: Lauri Kasanen <curaga@operamail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-04-29 22:20:57 +02:00
Tomas Heinrich
a659b81dfa
libbb/lineedit: add support for preserving "broken" (non-unicode) chars
...
Signed-off-by: Tomas Heinrich <heinrich.tomas@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-04-29 13:43:39 +02:00
Denys Vlasenko
25b10d97e6
telnet: prevent SEGV if we are requested TELOPT_NEW_ENVIRON.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-04-27 08:54:24 +02:00
Denys Vlasenko
6646de0214
dnsd: fix unaligned access problem
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-04-26 14:25:33 +02:00
Colin Watson
3963d943f8
ash: refresh stack pointers after makestrspace in rmescapes
...
Without this, rmescapes sometimes returns random garbage while
performing parameter expansions such as ${foo#bar}, in the event that
the allocation of r happens to need to reallocate the stack and hence
invalidate str and p. I'd love to provide a test case but unfortunately
it's dependent on exact stack layout, so I don't have anything simpler
than the situation described in
https://bugs.launchpad.net/ubuntu/+source/partman-base/+bug/527401/comments/23
which involved a sequence of foo="${foo#*, }" expansions on a long
string inside our RAID configuration tool.
The same fix has been in dash since 2007-09-26, contributed by Roy
Marples <uberlord@gentoo.org >. I actually came up with it independently
almost to the character, but then synced it up with the variable naming
used in dash when I noticed that change afterwards.
Signed-off-by: Colin Watson <cjwatson@ubuntu.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-04-26 14:21:27 +02:00
Denys Vlasenko
920185c69a
cmp: remove history comment. it is more natural to keep it in source control
...
The comment was:
* Mar 16, 2003 Manuel Novoa III (mjn3@codepoet.org )
*
* Original version majorly reworked for SUSv3 compliance, bug fixes, and
* size optimizations. Changes include:
* 1) Now correctly distinguishes between errors and actual file differences.
* 2) Proper handling of '-' args.
* 3) Actual error checking of i/o.
* 4) Accept SUSv3 -l option. Note that we use the slightly nicer gnu format
* in the '-l' case.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-04-26 14:04:29 +02:00
Rob Landley
0c1ba443c8
cmp: ifdefectomy
...
Signed-off-by: Rob Landley <rob@landley.net >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-04-26 14:01:14 +02:00
Matheus Izvekov
4640ccc399
cpio: "NNN blocks" should go to stderr
...
Signed-off-by: Matheus Izvekov <mizvekov@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-04-26 13:53:57 +02:00
Denys Vlasenko
9138817a27
find: fix -name matching for dotfiles. -1 byte
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-04-26 09:54:04 +02:00
Denys Vlasenko
05273daf6f
grep: makw -w support unconditional
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-04-26 08:45:44 +02:00
Denys Vlasenko
5f94346f73
date: support -d @SECONDS_SINCE_1970
...
function old new delta
parse_datestr 647 721 +74
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-04-22 00:45:28 -04:00
Denys Vlasenko
238c83bd82
ftpd: work around LIST -aXYZ too, not only LIST -lXYZ
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-04-21 18:05:10 -04:00
Denys Vlasenko
5a7c72015c
busybox --list option. +140 bytes. Rob wanted it.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-04-20 21:02:57 -04:00
Denys Vlasenko
f2c16edf99
sed: fix nested {} case
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-04-20 04:00:03 -04:00
Denys Vlasenko
96a1833231
sed: fix c cmd
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-04-19 22:36:07 -04:00
Denys Vlasenko
c175c46647
vi: discover window size even on serial consoles. optional
...
function old new delta
edit_file 671 761 +90
wh_helper - 57 +57
query_screen_dimensions 54 63 +9
ar_main 533 542 +9
refresh 767 773 +6
vi_main 242 243 +1
text_yank 56 54 -2
get_terminal_width_height 180 135 -45
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 5/2 up/down: 172/-47) Total: 125 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-04-18 22:09:30 -07:00
Denys Vlasenko
def4783a8a
vi: remove superfluous check on filename == ""
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-04-18 20:39:41 -07:00
Denys Vlasenko
43b094b584
remove stdio from allnoconfig build
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-04-18 20:16:11 -07:00
Denys Vlasenko
04cecd5e61
vi: code shrink
...
function old new delta
vi_main 250 242 -8
colon 2980 2970 -10
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-18) Total: -18 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-04-16 22:13:55 -07:00
Denys Vlasenko
2bb651ae10
vi: code shrink; save/restore errno in signal handlers
...
function old new delta
query_screen_dimensions - 54 +54
suspend_sig 50 64 +14
cont_sig 65 66 +1
catch_sig 42 32 -10
winch_sig 88 60 -28
edit_file 719 671 -48
refresh 848 767 -81
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 2/4 up/down: 69/-167) Total: -98 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-04-16 20:55:52 -07:00
Denys Vlasenko
6f69f2dbc6
add a file which shows what builds on ancient RH9 image
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-04-16 19:32:12 -07:00
Tomas Heinrich
0358daf447
read_key: fix buffer length calculation
...
Signed-off-by: Tomas Heinrich <heinrich.tomas@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-04-16 16:26:08 -07:00
Nguyễn Thái Ngọc Duy
36dcf4e516
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 >
2010-04-15 16:55:04 -07:00
Denys Vlasenko
c2d413ba74
httpd_indexcgi example: trivial fix
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-04-15 08:37:59 -07:00
Denys Vlasenko
e6080a4d7e
udhcpc: make help text better
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-04-14 14:04:26 -07:00
Denys Vlasenko
b9dd5ab6d9
loop: correct minor device number limit
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-04-14 13:52:41 -07:00
Denys Vlasenko
351ef7188a
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 >
2010-04-14 13:37:25 -07:00
Lauri Kasanen
375a8ef5ea
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 >
2010-04-14 12:31:26 -07:00
Denys Vlasenko
0ecc116592
dnsd: enforce alignment on packet buffer
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-04-14 10:14:25 -07:00
Ralf Rösch
8597da1934
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 >
2010-04-14 09:45:37 -07:00
Denys Vlasenko
60f659f9d9
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 >
2010-04-14 09:19:20 -07:00
Denys Vlasenko
d7b5289209
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 >
2010-04-09 14:58:40 +02:00
Nguyễn Thái Ngọc Duy
125d0154e6
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 >
2010-04-09 14:34:28 +02:00
Denys Vlasenko
e69ad87802
tar: fix "hardlinks to symlinks chown" bug 1519.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-04-09 14:11:45 +02:00
Denys Vlasenko
02365a6ef7
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 >
2010-04-09 10:52:52 +02:00
Steve Bennett
823b636cd1
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 >
2010-04-07 19:16:12 +02:00
Denys Vlasenko
39601843d7
ps: fix non-DESKTOP option handling code
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-04-07 18:03:34 +02:00
Denys Vlasenko
1854bc1aa2
hexdump: make -s 0xNNNNN work
...
function old new delta
hexdump_main 603 605 +2
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-04-06 23:33:28 +02:00
Denys Vlasenko
64827a2e5d
fix typo
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-04-06 18:51:29 +02:00
Denys Vlasenko
f8d8aa1cea
libbb: add skip_dev_pfx()
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-04-06 18:50:05 +02:00
Denys Vlasenko
87fb72032e
init: clear utmp entries for dead processes, if they (entries) exist
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-04-06 18:49:28 +02:00
Denys Vlasenko
6dbbac5d4f
Move utmp/wtmp support to "General configuration" section
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-04-06 18:48:32 +02:00
Denys Vlasenko
f6916dbed4
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 >
2010-04-06 17:43:29 +02:00
Denys Vlasenko
fcad7681f8
fdisk: make comment more clear
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-04-06 16:56:33 +02:00
Denys Vlasenko
5ab6b0f563
udhcp: s/sipservers/sipsrv/ to match other similar option names
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-04-06 16:52:59 +02:00
Denys Vlasenko
d958e909cd
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 >
2010-04-06 02:32:26 +02:00
Denys Vlasenko
5ea1de2235
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 >
2010-04-06 02:31:43 +02:00
Denys Vlasenko
37bc1eb5cd
removed extra \n in fdisk help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-04-06 00:04:08 +02:00
Denys Vlasenko
3a41611bc5
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 >
2010-04-05 22:10:38 +02:00
Denys Vlasenko
37f5bef63c
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 >
2010-04-05 03:18:40 +02:00
Denys Vlasenko
4c721049c3
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 >
2010-04-04 23:45:09 +02:00
Denys Vlasenko
f8fcc184b6
udhcpd: note missing sanity checks on INFORM message handling
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-04-04 22:36:34 +02:00
Denys Vlasenko
290346948d
update examples/udhcp/udhcpd.conf
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-04-04 15:38:22 +02:00
Denys Vlasenko
4f3aa51f9d
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 >
2010-04-04 15:31:12 +02:00
Denys Vlasenko
4836331924
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 >
2010-04-04 15:29:32 +02:00
Denys Vlasenko
c03602baa4
udhcp: s/dhcp_option/dhcp_optflag/g
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-04-04 15:28:49 +02:00
Denys Vlasenko
9c0ea86caa
udhcpc: trivial shrink
...
function old new delta
udhcpc_main 2801 2785 -16
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-04-04 02:12:03 +02:00
Denys Vlasenko
7379cd1ca1
awk: add comment about fixing bug 1333
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-04-04 01:48:12 +02:00
Denys Vlasenko
fab288cf0b
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 >
2010-04-04 01:17:30 +02:00
Denys Vlasenko
243ddcbc76
udhcpd: support decoding of option 120 "SIP servers". Closes bug 737
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-04-03 17:34:52 +02:00
Denys Vlasenko
ccd1efc3c1
cosmetic fixes, no code changed
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-04-03 15:39:47 +02:00
Denys Vlasenko
4a1884da53
ftpd: shrink by 33 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-04-03 14:59:12 +02:00
Denys Vlasenko
8a659f6ff9
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 >
2010-04-03 00:52:16 +02:00
Denys Vlasenko
05d1a32192
libpwdgrp: comment out unused data
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-04-02 12:12:43 +02:00
Denys Vlasenko
8fc9e6a15d
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 >
2010-04-02 10:40:58 +02:00
Chris Metcalf
208d35d21f
testsuite fixes
...
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-04-02 09:57:27 +02:00
Denys Vlasenko
37201213ca
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 >
2010-04-02 07:04:44 +02:00
Denys Vlasenko
b38af7bd31
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 >
2010-04-02 06:47:14 +02:00
Denys Vlasenko
5342c3f310
clean up redundant, commented-out and misplaced includes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-04-01 15:09:44 +02:00
Denys Vlasenko
345e093c29
fix Config.in tab usage
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-31 16:03:56 +02:00
Janne Kiviluoto
c897dfe011
syslogd: make maximum message length configurable
...
Signed-off-by: Janne Kiviluoto <janne.kiviluoto@bluegiga.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-31 15:58:58 +02:00
Denys Vlasenko
8d22ca81c3
libpwdgrp: comment out more unused functions
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-31 14:43:58 +02:00
Denys Vlasenko
55301297d3
libpwdgrp: comment out functions with UNUSED_SINCE_WE_AVOID_STATIC_BUFS
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-31 12:38:17 +02:00
Denys Vlasenko
17fcd72add
libpwdgrp: style cleanups
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-31 12:37:43 +02:00
Denys Vlasenko
9e59e27cdf
libpwdgrp: code style fixes, no real code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-31 10:31:51 +02:00
Denys Vlasenko
57dc3c7b4c
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 >
2010-03-31 10:24:37 +02:00
Denys Vlasenko
84f6def072
dpkg: remove redundant check
...
function old new delta
dpkg_main 4008 3991 -17
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-30 16:20:34 +02:00
Maxim Kryzhanovsky
2004fa1bc8
ifplugd: code shrink; expanded comments
...
Signed-off-by: Maxim Kryzhanovsky <xmaks@email.cz >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-30 15:49:57 +02:00
Denys Vlasenko
eab75f6049
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 >
2010-03-30 15:03:26 +02:00
Kim B. Heino
3d43aed10c
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 >
2010-03-29 14:18:27 +02:00
Denys Vlasenko
1d448cff65
provide safe_gethostname() for non-linux systems
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-29 11:20:00 +02:00
Denys Vlasenko
3d0e7794eb
libbb: locate PAGE_SIZE on Hurd
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-29 11:02:00 +02:00
Maxim Kryzhanovsky
fcb84c8bd2
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 >
2010-03-29 09:09:05 +02:00
Denys Vlasenko
603884b07e
"make release" should delete .git directory too
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-28 20:26:40 +02:00
Denys Vlasenko
03f6ee28d6
cpio test: fix false positive with DESKTOP off
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-28 20:07:42 +02:00
Denys Vlasenko
4816fe9179
usage: random tweaks to help texts
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-28 00:30:35 +01:00
Denys Vlasenko
c8a2ab1023
dumpleases: better help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-28 00:02:20 +01:00
Denys Vlasenko
406bd14416
udhcpd: fix -v/-P mixup
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-27 23:24:57 +01:00
Denys Vlasenko
9107b63a7f
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 >
2010-03-27 23:23:41 +01:00
Denys Vlasenko
c2fdd41f5f
sysctl: tiny code shrink
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-27 05:02:00 +01:00
Jérémie Koenig
fbedacfc8c
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 >
2010-03-26 19:08:53 +01:00
Denys Vlasenko
35fdb1bc9c
vi: fix NUM + "$" handling
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-26 16:10:14 +01:00
Denys Vlasenko
023a08f229
ash: line up builtin table. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-26 15:53:33 +01:00
Denys Vlasenko
496d5bf4c6
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 >
2010-03-26 15:52:24 +01:00
Denys Vlasenko
19158a837d
unicode: s/FEATURE_ASSUME_UNICODE/UNICODE_SUPPORT, add UNICODE_USING_LOCALE
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-26 14:06:56 +01:00
Tomas Heinrich
aa167556cd
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 >
2010-03-26 13:13:24 +01:00
Denys Vlasenko
385b4562e3
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 >
2010-03-26 10:09:34 +01:00
Tomas Heinrich
968951fd0c
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 >
2010-03-26 09:46:07 +01:00
Tomas Heinrich
1abc07dcca
[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 >
2010-03-26 09:40:47 +01:00
Denys Vlasenko
7724c766bd
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 >
2010-03-26 09:32:09 +01:00
Denys Vlasenko
a8f6b99987
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 >
2010-03-26 08:35:24 +01:00
Denys Vlasenko
7e6add1dfc
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 >
2010-03-25 20:32:38 +01:00
Bernhard Reutner-Fischer
0454d9d6c3
update defconfig
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2010-03-25 14:19:34 +01:00
Bernhard Reutner-Fischer
eb03d08f34
remove ar write support from TODO
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2010-03-25 14:19:24 +01:00
Denys Vlasenko
3d9c69fb4f
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 >
2010-03-24 16:43:16 +01:00
Denys Vlasenko
702f7d6c0b
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 >
2010-03-24 16:11:32 +01:00
Denys Vlasenko
a14a9d73b1
udhcp: fix DNS domanin codec bug: bad compression flag checks
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-24 15:06:23 +01:00
Denys Vlasenko
651a2697f7
*: 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 >
2010-03-23 16:25:17 +01:00
Denys Vlasenko
37a658c4c8
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 >
2010-03-23 15:43:08 +01:00
Maciek Borzecki
30ebd7bd78
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 >
2010-03-23 05:18:38 +01:00
Souf Oued
1c3f117ca4
lsusb: 2.6.32 compat
...
Signed-off-by: Souf Oued <souf_oued@yahoo.fr >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-23 05:11:40 +01:00
Denys Vlasenko
e283413395
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 >
2010-03-23 04:31:38 +01:00
Denys Vlasenko
6ef8def7cf
udhcp: remove two unused fields
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-23 02:17:52 +01:00
Denys Vlasenko
1497484839
ash,hush: make it possible to build them individually
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-23 01:08:26 +01:00
Alexander Shishkin
85dbf190c6
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 >
2010-03-22 18:22:33 +01:00
Denys Vlasenko
6b61629397
udhcp: make rfc derived doc more readable (but it still is contradictory)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-22 15:22:14 +01:00
Denys Vlasenko
dde8bdcc5b
udhcp: merge options.h into common.h, script.c into dhcpc.c
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-22 14:29:13 +01:00
Denys Vlasenko
8d1144565f
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 >
2010-03-22 13:44:09 +01:00
Denys Vlasenko
501e35c474
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 >
2010-03-22 13:43:12 +01:00
Denys Vlasenko
6b24d5354b
udhcpc: merge clientsocket.c into dhcpc.c. +4 bytes.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-22 13:42:13 +01:00
Denys Vlasenko
4f0408b5bc
flock: should not be selected by default
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-21 19:12:03 +01:00
Mikhail Gusarov
927e4bb644
touch: do not ignore argument of -d/-t option
...
Previously -d/-t was no-op due to wrong handling of args passed to
utimes(2).
Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-21 13:04:47 +01:00
Denys Vlasenko
53f72bb3f0
dhcpd: apparently, sometimes IP is in ciaddr, not requested_ip...
...
also revert the part which appempted to "fix" that in client
function old new delta
udhcpd_main 1949 1964 +15
send_renew 142 105 -37
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 15/-37) Total: -22 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-21 06:46:09 +01:00
Denys Vlasenko
c7dc79e71d
udhcpd: untangle incredibly messy handling of DHCPREQUEST
...
Also fixes attacks possible via DHCPDECLINE / DHCPRELEASE
function old new delta
udhcpd_main 1846 1949 +103
send_renew 105 142 +37
send_NAK 61 - -61
send_ACK 180 - -180
------------------------------------------------------------------------------
(add/remove: 0/2 grow/shrink: 2/0 up/down: 140/-241) Total: -101 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-21 06:15:28 +01:00
Denys Vlasenko
2e7aa92836
udhcp: tweak udhcpd.conf example and comments. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-21 02:22:07 +01:00
Denys Vlasenko
e5ce91b41b
udhcp: code shrink; disable time and log server options
...
function old new delta
add_server_options - 100 +100
udhcp_add_simple_option 92 90 -2
nobody_responds_to_arp 88 85 -3
dhcp_options 66 62 -4
udhcp_add_option_string 104 94 -10
udhcp_run_script 665 654 -11
dhcp_option_strings 203 188 -15
static.blank_chaddr 16 - -16
send_ACK 211 180 -31
add_bootp_options 61 - -61
udhcpd_main 1925 1846 -79
------------------------------------------------------------------------------
(add/remove: 1/2 grow/shrink: 0/8 up/down: 100/-232) Total: -132 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-21 00:43:11 +01:00
Denys Vlasenko
87fa216e1e
udhcpc: make it possible to disable vendor id; improve help text
...
function old new delta
init_packet 135 139 +4
packed_usage 26789 26786 -3
alloc_dhcp_option 67 63 -4
udhcpc_main 2467 2447 -20
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/3 up/down: 4/-27) Total: -23 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-20 18:06:23 +01:00
Denys Vlasenko
0f62c4d065
udhcpd: remove five more options which do not make sense or not supported
...
requestip, vendorclass, clientid are client-side variables,
they do not make sense as udhcpd opts
dhcptype is the packet type (not interesting, it's always 5)
userclass needs parser support in order to work
function old new delta
dhcp_options 68 66 -2
read_opt 865 859 -6
dhcp_option_strings 253 203 -50
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-58) Total: -58 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-20 07:12:21 +01:00
Denys Vlasenko
a953987e77
udhcpd: remove redundant code in send_offer()
...
static_lease_nip and lease pointer are canculated in the caller,
no need to calculate them again. lease_time_sec calculation
is also redundant: it is assigned to later, w/o being used
in between.
function old new delta
udhcpd_main 1956 1925 -31
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-20 03:49:27 +01:00
Denys Vlasenko
8a7c166ab9
udhcp: move serverpacket.c into dhcpd.c, no other changes
...
function old new delta
udhcpd_main 1480 1956 +476
send_inform 83 - -83
send_offer 376 - -376
------------------------------------------------------------------------------
(add/remove: 0/3 grow/shrink: 1/0 up/down: 476/-459) Total: 17 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-20 03:48:11 +01:00
Denys Vlasenko
de9e772f46
flock: better help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-20 00:07:11 +01:00
Denys Vlasenko
777706cb23
udhcp: remove support for some really old and odd options
...
function old new delta
dhcp_options 72 68 -4
dhcp_option_strings 271 253 -18
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-19 23:42:23 +01:00
J. Tang
77a2c51e79
tar: optional support for restoring selinux context
...
function old new delta
get_header_tar 1690 1976 +286
data_extract_all 821 881 +60
.rodata 151446 151503 +57
get_header_cpio 1044 1077 +33
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/0 up/down: 436/0) Total: 436 bytes
Signed-off-by: J. Tang <tang@jtang.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-19 14:48:51 +01:00
Denys Vlasenko
bcda0042e2
libbb/copyfd.c: don't mmap a largish buffer if we only want to copy a few kb
...
function old new delta
bb_full_fd_action 283 295 +12
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-19 14:34:30 +01:00
Timo Teras
892d4b6b3d
flock: new applet
...
function old new delta
flock_main - 253 +253
packed_usage 26466 26498 +32
applet_names 2170 2176 +6
applet_main 1280 1284 +4
applet_nameofs 640 642 +2
applet_install_loc 160 161 +1
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 5/0 up/down: 298/0) Total: 298 bytes
Signed-off-by: Timo Teras <timo.teras@iki.fi >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-18 22:45:35 +01:00
Denys Vlasenko
8531d76a15
*: code shrink and better "died from signal" reporting from wait4pid
...
function old new delta
parse 964 967 +3
udhcp_run_script 670 665 -5
singlemount 911 906 -5
mount_it_now 360 355 -5
inotifyd_main 521 516 -5
xspawn 21 - -21
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 1/4 up/down: 3/-41) Total: -38 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-18 22:44:00 +01:00
Tomas Heinrich
c5c006c10c
lineedit: first shot at optional unicode bidi input support
...
function old new delta
read_line_input 4886 5003 +117
in_uint16_table - 97 +97
in_interval_table - 78 +78
static.rtl_b - 68 +68
unicode_isrtl - 55 +55
isrtl_str - 51 +51
static.rtl_p - 42 +42
unicode_conv_to_printable2 633 477 -156
------------------------------------------------------------------------------
(add/remove: 6/0 grow/shrink: 1/1 up/down: 508/-156) Total: 352 bytes
Signed-off-by: Tomas Heinrich <heinrich.tomas@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-18 18:35:37 +01:00
Denys Vlasenko
98f1dc12f1
libbb/loop: comment out u32 hack
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-18 14:38:21 +01:00
Bernhard Reutner-Fischer
0c0f1767f0
brctl: Fix comment
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2010-03-17 11:23:04 +01:00
Maciek Borzecki
46abfc0da1
brctl: fix parsing of timespec to allow 0 (setfd, sethello..)
...
Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-17 10:25:29 +01:00
Denys Vlasenko
8d4a8d195d
mdev: fix a trivial SEGV
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-16 18:37:19 +01:00
Denys Vlasenko
d46c36c74e
libbb/getopt32.c: clear applet_long_options and opt_complementary after use
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-16 17:57:53 +01:00
Denys Vlasenko
09b767250d
include/fix_u32.h: try harder to not cause redefinition errors
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-16 01:22:35 +01:00
Kim B. Heino
820874ed38
tar compability modes for dpkg
...
I've found couple of deb files which require old tar compability modes
to be unpacked. This patch allows me to enable them for dpkg without
enabling tar.
Signed-off-by: Kim B. Heino <Kim.Heino@bluegiga.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-15 23:55:26 +01:00
Alexander Shishkin
535584c750
ar: add archive creation support
...
function old new delta
ar_main 184 542 +358
output_ar_header - 166 +166
copy_data - 54 +54
filter_replaceable - 19 +19
get_header_ar 409 414 +5
header_verbose_list_ar 85 88 +3
static.msg_unsupported_err 28 - -28
------------------------------------------------------------------------------
(add/remove: 3/1 grow/shrink: 3/0 up/down: 605/-28) Total: 577 bytes
Signed-off-by: Alexander Shishkin <virtuoso@slind.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-15 15:38:09 +01:00
Denys Vlasenko
814da220a5
fbsplash: reinstate drawing of over/undersized images; shrink
...
Based on the patch by Nuno Lucas <ntlucas@gmail.com >
function old new delta
fbsplash_main 938 864 -74
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-14 23:59:54 +01:00
Natanael Copa
7cfec4b3e0
beep: the -d option takes milliseconds not microseconds
...
Signed-off-by: Natanael Copa <natanael.copa@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-14 15:32:49 +01:00
Denys Vlasenko
29f354e9d8
testsuite: don't run grep NUL tests when we know the would fail
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-14 00:51:56 +01:00
Denys Vlasenko
b76356b28e
ash: fix quadratic matching slowdown is ${v/*foo*/repl} (really bad one)
...
It is especially bad with patterns starting with "*".
With ASH_OPTIMIZE_FOR_SIZE=y, only those are optimized, +few bytes:
text data bss dec hex filename
836337 441 7564 844342 ce236 busybox_old
836341 441 7564 844346 ce23a busybox_unstripped
With ASH_OPTIMIZE_FOR_SIZE off, we also optimize patterns _ending_ with "*",
which costs about 80 bytes:
text data bss dec hex filename
836656 441 7564 844661 ce375 busybox_old
836732 441 7564 844737 ce3c1 busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-13 16:19:04 +01:00
Denys Vlasenko
6eaeb7737d
tailk: fix error detected by testsuite
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-12 22:16:25 +01:00
Denys Vlasenko
f9782ffc45
awk: code shrink
...
function old new delta
evaluate 3550 3487 -63
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-12 21:32:13 +01:00
Denys Vlasenko
c6ba997978
awk: code shrink
...
function old new delta
hash_find 233 234 +1
evaluate 3899 3550 -349
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-12 21:05:09 +01:00
Denys Vlasenko
7b81db1379
awk: style fixes
...
function old new delta
hash_find 234 233 -1
awk_printf 457 453 -4
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-12 21:04:47 +01:00
Denys Vlasenko
39fe4d1599
awk: code shrink
...
function old new delta
exec_builtin 1538 1489 -49
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-12 16:57:06 +01:00
Denys Vlasenko
58f108eb33
lineedit: fix another corner case with bad unicode input
...
function old new delta
read_key 607 646 +39
readit 50 55 +5
getch_nowait 290 295 +5
hash_find 233 234 +1
xstrtoul_range_sfx 231 230 -1
passwd_main 1058 1056 -2
builtin_exit 45 43 -2
cmp_main 649 645 -4
lineedit_read_key 257 245 -12
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/5 up/down: 50/-21) Total: 29 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-11 21:17:55 +01:00
Denys Vlasenko
b0a57abb79
awk: code shrink
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-11 12:44:25 +01:00
Denys Vlasenko
6ebdf7aa7b
awk: code shrink; style fixes
...
function old new delta
next_token 932 862 -70
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-11 12:41:55 +01:00
Denys Vlasenko
da62b09ab1
awk: be more paranoid when freeing loop variable; make code less obfuscated
...
function old new delta
nvfree 149 170 +21
next_token 928 932 +4
getvar_i 95 94 -1
skip_spaces 51 45 -6
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/2 up/down: 25/-7) Total: 18 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-11 12:13:18 +01:00
Denys Vlasenko
90f19fa468
awk: add two tests we currently fail
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-11 08:27:53 +01:00
Denys Vlasenko
c9955f23a2
awk: simple code shrink
...
function old new delta
awk_getline 710 724 +14
awk_printf 455 457 +2
hash_find 234 233 -1
qrealloc 33 31 -2
handle_special 499 482 -17
awk_sub 641 601 -40
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/4 up/down: 16/-60) Total: -44 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-10 19:21:54 +01:00
Denys Vlasenko
3cb60c3973
awk: fix the case where nested "for" loops with the same variable misbehave
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-10 19:20:32 +01:00
Denys Vlasenko
eae697fb93
popmaildir: give examples in help text. +91 byte
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-10 13:01:14 +01:00
Tomas Heinrich
d2b04050c0
lineedit: invalid unicode characters are replaced with CONFIG_SUBST_WCHAR
...
function old new delta
read_key_ungets - 50 +50
lineedit_read_key 223 252 +29
Signed-off-by: Tomas Heinrich <heinrich.tomas@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-09 14:09:24 +01:00
Denys Vlasenko
f15620c377
shell/ulimit: code shrink by 10 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-08 23:28:30 +01:00
Denys Vlasenko
41d8134511
libbb/loop.c: move #include to its user, improve comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-08 23:10:23 +01:00
Denys Vlasenko
79950a6bbe
wc: compat: make "wc -c ONE_FILE" not print leading spaces. +2 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-08 22:03:24 +01:00
Denys Vlasenko
c77e478af4
include/fix_u32.h: fix trivial compile breakage :(
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-08 21:53:45 +01:00
Denys Vlasenko
8cb40361c0
libbb/loop.c: use common fix_u32.h trick
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-06 20:50:29 +01:00
Denys Vlasenko
f3c742f925
hush: use ash's ulimit builtin; make it more more bash0like while at it
...
Based on a patch by Tobias Klauser <tklauser@distanz.ch >
function old new delta
shell_builtin_ulimit - 498 +498
limits_tbl 33 88 +55
ulimit_opt_string - 38 +38
bltins1 288 300 +12
limits_name 127 - -127
ulimitcmd 415 7 -408
------------------------------------------------------------------------------
(add/remove: 3/1 grow/shrink: 2/1 up/down: 603/-535) Total: 68 bytes
text data bss dec hex filename
839229 453 6828 846510 ceaae busybox_old
839423 453 6828 846704 ceb70 busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-06 20:12:00 +01:00
Denys Vlasenko
cbcc1236f8
tftp: do not show progress bar if we get error right away. +13 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-05 23:38:54 +01:00
Denys Vlasenko
4b1100edd8
*: use NULL for null pointers
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-05 14:10:54 +01:00
Denys Vlasenko
44fbfa78ca
libbb/loop.c: style and readability fixes, no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-05 13:20:28 +01:00
Denys Vlasenko
917693b5b3
top: make 's' display easier to understand
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-04 12:50:59 +01:00
Denys Vlasenko
197202d435
modprobe: remove 2k limit on /proc/cmdline
...
function old new delta
do_modprobe 365 520 +155
parse_and_add_kcmdline_module_options 149 - -149
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-03 04:20:33 +01:00
Denys Vlasenko
9341fd2d30
ping: do not leak data from stack; shrink
...
FANCY ping:
function old new delta
common_ping_main 386 1732 +1346
sendping6 98 83 -15
sendping4 188 158 -30
ping4 575 - -575
ping6 756 - -756
------------------------------------------------------------------------------
(add/remove: 0/2 grow/shrink: 1/2 up/down: 1346/-1376) Total: -30 bytes
!FANCY ping:
function old new delta
hostname 4 - -4
common_ping_main 566 499 -67
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-03 01:10:29 +01:00
Denys Vlasenko
5749328b56
head,tail: trim help text; make suffixes unconditional for head too
...
function old new delta
packed_usage 26411 26375 -36
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-02 16:18:14 +01:00
Denys Vlasenko
88aa558e5c
*: do not check for POLLIN/POLLOUT only, just in case it's POLHUP/POLERR
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-02 15:02:45 +01:00
Thomas Geulig
d2f7779671
syslog: allow multiple -R options
...
function old new delta
syslogd_main 1082 1177 +95
init_data 72 64 -8
Signed-off-by: Thomas Geulig <geulig@nentec.de >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-28 13:01:59 +01:00
Denys Vlasenko
3e26d4fa23
modprobe: pick up module options from /proc/cmdline too
...
Based on patch by Ozan Çağlayan (ozan AT pardus.org.tr)
function old new delta
parse_and_add_kcmdline_module_options - 149 +149
do_modprobe 357 365 +8
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-27 23:15:22 +01:00
Denys Vlasenko
f6b29a2dc9
Merge branch 'master' of git+ssh://vda@busybox.net/var/lib/git/busybox
2010-02-27 23:15:22 +01:00
Denys Vlasenko
99069330a1
*: gethostname-related fixes
...
function old new delta
hostname_main 218 231 +13
nfsmount 3541 3474 -67
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-27 19:38:19 +01:00
Bernhard Reutner-Fischer
45cec1ee89
Config: fix alphabetical ordering
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2010-02-26 19:33:49 +01:00
Bernhard Reutner-Fischer
836f36333a
tail: document FANCY flags in helptext
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2010-02-26 18:34:16 +01:00
Bernhard Reutner-Fischer
1359e0d1b9
df: explain FANCY options in helptext
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2010-02-26 18:21:42 +01:00
Bernhard Reutner-Fischer
ca228fb16d
reuse a few strings
...
text data bss dec hex filename
839040 453 6828 846321 ce9f1 busybox_old
839019 453 6828 846300 ce9dc busybox_unstripped
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-26 10:09:31 +01:00
Denys Vlasenko
26ffe81188
su: move restricted_shell into su.c (the only user)
...
function old new delta
su_main 448 468 +20
buffer_fill_and_print 179 196 +17
scriptreplay_main 205 208 +3
localcmd 275 277 +2
hash_find 233 234 +1
devmem_main 469 463 -6
install_main 724 716 -8
setusershell 11 - -11
find_pair 187 169 -18
restricted_shell 49 - -49
------------------------------------------------------------------------------
(add/remove: 0/3 grow/shrink: 5/3 up/down: 43/-92) Total: -49 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-26 10:01:18 +01:00
Denys Vlasenko
fd686a262f
setup_environment(): eliminate one parameter
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-26 09:52:45 +01:00
Bernhard Reutner-Fischer
99709ab033
crontab: use setup_environment
...
function old new delta
setup_environment 184 198 +14
.rodata 131770 131747 -23
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 14/-23) Total: -9 bytes
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2010-02-26 09:31:40 +01:00
Bernhard Reutner-Fischer
7e7728cd66
free: silence warning about unused argv
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-26 09:28:30 +01:00
Alexander Shishkin
d03cd3be24
awk: skip whitespace between array name and subscript
...
It is supported in both mawk and gawk and there are actually scripts
out there that use this "flexibility".
function old new delta
next_token 1144 1152 +8
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/0 up/down: 8/0) Total: 8 bytes
Signed-off-by: Alexander Shishkin <virtuoso@slind.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-26 08:48:56 +01:00
Bernhard Reutner-Fischer
2e73d84c02
find: tweak error message
...
big find:
find: missing argument to `-exec'
we now say
find: -exec requires an argument
instead of the cryptic message we emitted previously.
Additional benefit is that it's now 23 bytes smaller.
Add TODO to add '-exec {} +' support
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2010-02-25 13:22:37 +01:00
Denys Vlasenko
8031848938
typo fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-24 14:27:55 +01:00
Denys Vlasenko
64bb95a361
mdev: fix subsystem passing (new kernels broke it again) - bugs 639, 721.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-24 10:39:47 +01:00
Denys Vlasenko
bf1d347964
fdisk: do not treat names ending in '0' as partitions
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-24 08:13:30 +01:00
Denys Vlasenko
b702d9aa5a
tweak README (s/svn/git)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-24 06:59:54 +01:00
Denys Vlasenko
43d9747f6e
install: strip before mode/uid/gid is set, not after.
...
function old new delta
install_main 694 716 +22
basename 21 - -21
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-21 16:55:29 +01:00
Harald Becker
8ce1dc03c1
loadfont/setfont: optional PSF2 font support
...
Signed-off-by: Harald Becker <ralda@gmx.de >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-21 13:10:26 +01:00
Denys Vlasenko
bef5711dab
free: code shrink
...
function old new delta
free_main 330 302 -28
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-21 05:39:59 +01:00
Denys Vlasenko
153fcaa6c1
Replace __uClinux__ define with !BB_MMU
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-21 05:17:41 +01:00
Denys Vlasenko
7426920461
fix bug 1087. Fix by Leonid (lly.dev AT gmail.com)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-21 01:26:42 +01:00
Denys Vlasenko
00ddd44cda
fix typos in comments and doc
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-19 09:16:33 +01:00
Denys Vlasenko
2f8a46032d
fix Unicode build on glibc
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-19 08:47:17 +01:00
Denys Vlasenko
45e9792446
netstat: fix a trivial bug
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-19 08:29:32 +01:00
Bernhard Reutner-Fischer
baab327719
usage: fix typo
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2010-02-14 11:11:47 +01:00
Denys Vlasenko
5e7345770a
delete forgotten chunk in prev commit
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-14 05:49:14 +01:00
Denys Vlasenko
bb169f4217
trim help text
...
function old new delta
packed_usage 26860 26663 -197
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-14 05:43:22 +01:00
Denys Vlasenko
125c2d2690
trim/regularize help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-13 02:59:30 +01:00
Joakim Tjernlund
0866b36900
gunzip: inflate_codes(): add fix from upstream gzip to prevent false CRC error
...
Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-11 23:56:48 +01:00
Joakim Tjernlund
80f4275629
include/platform.h: PowerPC can also do unaligned access
...
Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-11 23:23:28 +01:00
Denys Vlasenko
81fe2b15f3
wget: fix bug 1057 "busybox wget segfaults with http_proxy environment set"
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-11 04:23:43 +01:00
Bernhard Reutner-Fischer
3fdba181c3
wget: ignore --no-check-certificate
...
Used in a number of scripts, don't barf on it (we don't do ssl ATM).
function old new delta
static.wget_longopts 122 145 +23
.rodata 131925 131947 +22
packed_usage 26860 26859 -1
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 45/-1) Total: 44 bytes
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2010-02-10 19:37:29 +01:00
Denys Vlasenko
10544a8410
compat and warning fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-09 00:26:10 +01:00
Denys Vlasenko
fb6e689554
libbb/md5.c: remove wrong comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-08 17:46:49 +01:00
Vladimir Dronnikov
73ccd0ca87
volume_id/linux_swap: detect suspended image signatures too
...
Signed-off-by: Vladimir Dronnikov <dronnikov@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-08 03:08:05 +01:00
Denys Vlasenko
14a917eaab
hush: note a FIXME
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-08 03:04:22 +01:00
Denys Vlasenko
3205c24a82
shaNNNsum: accept and ignore -b and -t
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-07 23:28:23 +01:00
Bernhard Reutner-Fischer
eb255752c1
bloat-o-meter: convert to print() calls
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2010-02-07 19:42:48 +01:00
Bernhard Reutner-Fischer
f16d7c4bdf
bloat-o-meter: fix quadric behavior in alias resolution
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2010-02-07 19:26:18 +01:00
Denys Vlasenko
343dfd7abe
dnsd: add -s option. This allows (clumsy) operation with read dns servers
...
function old new delta
packed_usage 26816 26886 +70
dnsd_main 1299 1303 +4
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-07 02:45:03 +01:00
Denys Vlasenko
e66a09ba9c
dnsd: add more -v messages
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-07 01:11:18 +01:00
Denys Vlasenko
b55d652400
dnsd: better usage text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-06 23:44:59 +01:00
Denys Vlasenko
5fb38491e3
dnsd: fix one big-endian goof; add a TODO about RA bit
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-06 22:48:10 +01:00
Denys Vlasenko
cb7edc2661
adduser: copy /etc/skel to mew homes. +100 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-06 21:50:59 +01:00
Denys Vlasenko
0cd445f4d1
cosmetic fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-06 21:11:49 +01:00
Denys Vlasenko
6aca76d4d7
hexdump: fix "hexdump nonexistent_file" handling
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-06 13:53:21 +01:00
Denys Vlasenko
b741cd28d1
whitespace fix
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-06 13:25:12 +01:00
Denys Vlasenko
2f14263c40
udhcp[cd]: fix aliasing warnings
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-05 15:35:05 +01:00
Denys Vlasenko
3dbc5a9742
awk: remove wrong comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-05 14:54:22 +01:00
Denys Vlasenko
36659fda1f
*: fix 1/4 remaining aliasing warnings
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-05 14:40:23 +01:00
Denys Vlasenko
12ca080a1c
*: eliminate more aliasing warnings
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-04 18:41:18 +01:00
Denys Vlasenko
98a4c7cf3d
*: suppress ~60% of "aliased warnings" on gcc-4.4.1
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-04 15:00:15 +01:00
Dan Fandrich
1821d188ca
diff: more compiler compat fixes. no code changes
...
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-04 04:04:56 +01:00
Dan Fandrich
f111b67100
diff: make code more portable
...
function old new delta
create_J 1835 1849 +14
diffreg 1268 1255 -13
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-04 00:10:30 +01:00
Denys Vlasenko
557deb1014
libbb: fix bb_ask() to operate on correct fd
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-03 12:17:06 +01:00
Bernhard Reutner-Fischer
659507f84e
bloat-o-meter: teach it to handle aliases
...
Previously aliases were counted as full implementation taking up space:
setservent 64 55 -9
__GI_setservent 64 55 -9
getservent_r 420 319 -101
__GI_getservent_r 420 319 -101
Teach it to properly handle aliases.
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2010-02-02 20:09:10 +01:00
Denys Vlasenko
baad6d889d
mkfs_ext2: fix bad comment. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-02 12:54:19 +01:00
Denys Vlasenko
bb1dcc9aab
more thorough fix for systems with strange socklen_t
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-02 12:45:38 +01:00
Denys Vlasenko
5b9b1365a0
stat: get rid on intmax_t
...
function old new delta
print_it 225 218 -7
print_stat 919 889 -30
print_statfs 370 339 -31
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-68) Total: -68 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-02 03:08:57 +01:00
Denys Vlasenko
4b061461d3
tftpd: fix file creation with bogus mode. Closes bug 1021.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-02 01:01:40 +01:00
Denys Vlasenko
40e7d25aca
mkXXXX: unify [KBYTES] parameter handling (added it to mkswap)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-01 23:48:27 +01:00
Denys Vlasenko
4875e7148b
docs/unicode.txt: added more TODOs
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-01 22:35:30 +01:00
Denys Vlasenko
698dca5805
add unicode.txt
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-01 15:58:08 +01:00
Denys Vlasenko
c8e18ca12c
remove now-unneeded memset
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-01 13:45:04 +01:00
Denys Vlasenko
e936c6d1c5
make echo -e "foo\nfoo" | passwd USER work
...
Suggested by Michael Zhu (linuxsir320 AT gmail.com)
function old new delta
bb_ask 333 340 +7
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-02-01 04:55:30 +01:00
Denys Vlasenko
460f827644
better wording in Config
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-31 18:12:57 +01:00
Denys Vlasenko
b1edf20f18
unicode: exclude FDD0..FDEF range too
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-31 16:34:37 +01:00
Denys Vlasenko
40e4e88a28
exclude more invalid unicode chars
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-31 16:04:30 +01:00
Denys Vlasenko
344a44fbc5
typo fix
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-31 05:57:47 +01:00
Denys Vlasenko
3d5b606931
ls: fix handling of broken unicode sequences
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-31 05:55:55 +01:00
Denys Vlasenko
d8528b8e56
ls: unicode fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-31 05:15:38 +01:00
Denys Vlasenko
ed910c750d
cal: add a unicode test
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-31 00:10:18 +01:00
Denys Vlasenko
e17764c8fb
further work on unicodization
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-30 23:16:21 +01:00
Denys Vlasenko
ecd90fd488
fix Unicode config option limits and some comments in less
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-30 18:09:18 +01:00
Denys Vlasenko
a42524251e
syslog: remove stray umask(0)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-29 16:44:48 +01:00
Denys Vlasenko
ac3645051c
Example Unicode files
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-29 09:12:31 +01:00
Denys Vlasenko
2edba21f4c
more fine-grained Unicode support
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-29 09:11:47 +01:00
Denys Vlasenko
083e172641
style fixes, no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-28 12:30:24 +01:00
Denys Vlasenko
6b9f163353
*: style fixes. no code changes (verified with objdump)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-28 02:24:24 +01:00
Denys Vlasenko
17323a6245
hush: more "greppable" field names. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-28 01:57:05 +01:00
Denys Vlasenko
2755f4e443
update TODO_config_nommu
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-27 21:03:34 +01:00
Denys Vlasenko
e57ea7edb6
update defconfig
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-27 20:57:00 +01:00
Denys Vlasenko
ffc4bced95
libiproute: eliminate unused fields in struct filter_t's; style fixes
...
function old new delta
print_route 1603 1588 -15
iproute_list_or_flush 1254 1230 -24
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-39) Total: -39 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-26 11:03:16 +01:00
Denys Vlasenko
e838779429
start 1.17.x development
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-26 08:34:49 +01:00
Denys Vlasenko
e52b735231
Bump version to 1.16.0
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-26 08:19:00 +01:00
Denys Vlasenko
da879ec2e9
modprobe: protect against possible SEGV
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-26 08:17:45 +01:00
Denys Vlasenko
1aaf1cb096
whitespace fix
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-26 08:04:18 +01:00
Denys Vlasenko
24928ffd8d
ntpd: explain why scripts can be run in quick succession
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-25 19:30:16 +01:00
Denys Vlasenko
3581c62515
whitespace fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-25 13:39:24 +01:00
Denys Vlasenko
46685a46bb
unicode_wcwidth.c: shrink
...
function old new delta
static.combining1 - 184 +184
in_interval_table - 78 +78
bb_wcwidth 328 406 +78
in_table 78 - -78
static.combining 516 148 -368
------------------------------------------------------------------------------
(add/remove: 2/1 grow/shrink: 1/1 up/down: 340/-446) Total: -106 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-25 13:24:06 +01:00
Denys Vlasenko
307b24c851
testsuite-discovered fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-25 02:00:16 +01:00
Denys Vlasenko
2315c8854c
scripts/randomtest: tweaks for non-eliminable warnings and broken static glibc
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-24 23:33:06 +01:00
Denys Vlasenko
6b01b71e83
randomconfig fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-24 22:52:21 +01:00
Denys Vlasenko
9f93d62192
libbb: better unicode width support. Hopefully fixes bug 839.
...
Also opens up a possibility to make other unicode stuff smaller
and more correct later. but:
function old new delta
static.combining - 516 +516
bb_wcwidth - 328 +328
unicode_cut_nchars - 141 +141
mbstowc_internal - 93 +93
in_table - 78 +78
cal_main 899 961 +62
static.combining0x10000 - 40 +40
unicode_strlen - 31 +31
bb_mbstrlen 31 - -31
bb_mbstowcs 173 102 -71
------------------------------------------------------------------------------
(add/remove: 7/1 grow/shrink: 1/1 up/down: 1289/-102) Total: 1187 bytes
Uses code of Markus Kuhn, which is in public domain:
http://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c
"Permission to use, copy, modify, and distribute this software
for any purpose and without fee is hereby granted. The author
disclaims all warranties with regard to this software."
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-24 07:44:03 +01:00
Denys Vlasenko
5da9f96ad8
date: introduce FEATURE_DATE_COMPAT; shrink
...
function old new delta
date_main 889 862 -27
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-23 23:37:52 +01:00
Bernhard Reutner-Fischer
dfd38a480b
ping: use ICMP_MINLEN
...
no code changes
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2010-01-23 12:53:40 +01:00
Michael Grzeschik
24dc9ab2f4
fbset: add possibility to set timing and sync polarity
...
function old new delta
copy_changed_values - 48 +48
copy_if_gt0 - 27 +27
fbset_main 1268 1235 -33
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 0/1 up/down: 75/-33) Total: 42 bytes
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-23 03:40:28 +01:00
Denys Vlasenko
9882b34fe2
chown: -2 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-23 00:13:32 +01:00
Matheus Izvekov
31416d589e
chown: support long options
...
function old new delta
chown_longopts - 81 +81
chown_main 182 192 +10
Signed-off-by: Matheus Izvekov <mizvekov@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-23 00:10:40 +01:00
Denys Vlasenko
8b8d32ea56
patch: accept and ignore -g NUM
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-22 05:10:33 +01:00
Matheus Izvekov
6f99c91e43
diff: fix flag -B, cleanups and a couple more tests V2
...
function old new delta
diffreg 1157 1268 +111
uni_range 51 - -51
Signed-off-by: Matheus Izvekov <mizvekov@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-22 04:20:16 +01:00
Denys Vlasenko
feadfe742a
patch: add more long opts; but remove -g for now
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-22 04:17:07 +01:00
Denys Vlasenko
94ca6943bc
*: small code shrinks and compile fix for unicode
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-20 02:51:09 +01:00
Mikhail Gusarov
0d478334b3
tar: handle -m (--touch) switch, enabled by FEATURE_TAR_NOPRESERVE_TIME
...
function old new delta
.rodata 2731 2779 +48
usage_messages 432 471 +39
tar_main 603 614 +11
tar_longopts 211 219 +8
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/0 up/down: 106/0) Total: 106 bytes
Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-20 02:47:37 +01:00
Matheus Izvekov
2e5fa4a69d
patch: ignore flag -g. +22 bytes
...
Signed-off-by: Matheus Izvekov <mizvekov@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-20 02:46:39 +01:00
Matheus Izvekov
94a6fd1eeb
diff: don't exit in case we can't open input files. -2 bytes
...
>>From d4cf19d20596bca797d58563f4404cf6a4932977 Mon Sep 17 00:00:00 2001
From: Matheus Izvekov <mizvekov@gmail.com >
Date: Mon, 18 Jan 2010 23:27:56 -0200
Subject: [PATCH] diff: don't exit in case we can't open input files
This prevents recursion being aborted due to failures to open files.
Signed-off-by: Matheus Izvekov <mizvekov@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-20 02:46:14 +01:00
Matheus Izvekov
404f14407c
diff: don't use FILE_and_pos_t where it's not needed. -31 bytes
...
>>From 3ead41fc3cbdd904e478ff7a710f5960c8ed4288 Mon Sep 17 00:00:00 2001
From: Matheus Izvekov <mizvekov@gmail.com >
Date: Mon, 18 Jan 2010 22:14:46 -0200
Subject: [PATCH] diff: don't use FILE_and_pos_t where it's not needed. -31 bytes
Signed-off-by: Matheus Izvekov <mizvekov@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-20 02:46:01 +01:00
Matheus Izvekov
4de4cb6b9b
diff: correct handling of labels. -10 bytes
...
>>From 05eeb173f0431b4fbed7684d7a9cea42f747f63e Mon Sep 17 00:00:00 2001
From: Matheus Izvekov <mizvekov@gmail.com >
Date: Mon, 18 Jan 2010 20:33:55 -0200
Subject: [PATCH] diff: correct handling of labels
This fixes an issue where diff would apply labels to files in the
inverse order, when using -L or --label.
This fixes it in order to be compatible with gnu diff.
It also makes it not an error to specify more than one label.
The behavior for such cases is that they override the label for the new
file.
Signed-off-by: Matheus Izvekov <mizvekov@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-20 02:45:45 +01:00
Matheus Izvekov
b32aa0c274
diff: support long options
...
>>From 7b74284ebe6222cb714c37cdbb94633965f29e9b Mon Sep 17 00:00:00 2001
From: Matheus Izvekov <mizvekov@gmail.com >
Date: Mon, 18 Jan 2010 18:36:52 -0200
Subject: [PATCH] diff: support long options
Signed-off-by: Matheus Izvekov <mizvekov@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-20 02:45:23 +01:00
Matheus Izvekov
fe1ce2e43e
diff: implement flag -B (Ignore changes whose lines are all blank)
...
>>From 7c3ce93213590bd0592435dc27d1272d0fd3309b Mon Sep 17 00:00:00 2001
From: Matheus Izvekov <mizvekov@gmail.com >
Date: Mon, 18 Jan 2010 15:52:31 -0200
Subject: [PATCH] diff: implement flag -B (Ignore changes whose lines are all blank)
function old new delta
diffreg 1196 1240 +44
.rodata 6538 6561 +23
packed_usage 457 478 +21
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 88/0) Total: 88 bytes
text data bss dec hex filename
70123 733 8576 79432 13648 busybox_old
70190 733 8576 79499 1368b busybox_unstripped
Signed-off-by: Matheus Izvekov <mizvekov@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-20 02:45:05 +01:00
Matheus Izvekov
b7a044043c
diff: honor flag -i (ignore case differences)
...
>>From 503a1e1d2597f7cdf86a9ea39ebd2aee050ca759 Mon Sep 17 00:00:00 2001
From: Matheus Izvekov <mizvekov@gmail.com >
Date: Mon, 18 Jan 2010 14:06:26 -0200
Subject: [PATCH] diff: honor flag -i (ignore case differences)
function old new delta
read_token 157 178 +21
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/0 up/down: 21/0) Total: 21 bytes
text data bss dec hex filename
70102 733 8576 79411 13633 busybox_old
70123 733 8576 79432 13648 busybox_unstripped
Signed-off-by: Matheus Izvekov <mizvekov@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-20 02:44:44 +01:00
Denys Vlasenko
302af9e3d1
watch: compat: use stderr to determine screen dimensions
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-19 02:26:38 +01:00
Denys Vlasenko
7be97c5b6b
ls: fix sort of very large files. +21 byte
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-18 13:02:27 +01:00
Denys Vlasenko
573ba4e92e
fix examples which used non-standard cut -b0-NNN
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-18 12:25:09 +01:00
Denys Vlasenko
9e0879a1cb
diff: add NOINLINE
...
function old new delta
create_J - 1805 +1805
diffreg 3159 1176 -1983
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/1 up/down: 1805/-1983) Total: -178 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-18 06:15:57 +01:00
Denys Vlasenko
032bf65533
diff: defeat gcc's optimization
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-18 05:22:34 +01:00
Matheus Izvekov
d4a7728dc3
diff: rewrite. much smaller and more correct
...
function old new delta
diffreg 1815 3156 +1341
diff_main 860 1194 +334
read_token - 161 +161
skip_dir - 44 +44
seek_ft - 31 +31
fetch 362 392 +30
line_compar - 21 +21
add_to_dirlist 65 61 -4
print_only 16 - -16
skipline 51 - -51
newcand 85 - -85
asciifile 89 - -89
print_status 178 73 -105
make_temp 148 - -148
files_differ 168 - -168
get_recursive_dirlist 182 - -182
sort 226 - -226
prepare 283 - -283
change 283 - -283
do_diff 416 - -416
dump_unified_vec 457 - -457
check 1512 595 -917
------------------------------------------------------------------------------
(add/remove: 4/12 grow/shrink: 3/3 up/down: 1962/-3430) Total: -1468 bytes
Signed-off-by: Matheus Izvekov <mizvekov@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-18 04:57:17 +01:00
Stefan Seyfried
f3fc9ac166
ftpd: conditional support for broken clients
...
Signed-off-by: Stefan Seyfried <stefan.seyfried@googlemail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-18 02:08:30 +01:00
Denys Vlasenko
9c3b84a304
ls: make it so that group never glues itself to file size
...
+ smaller enhancements: inode is long long; -h is a bit narrower; etc
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-18 01:55:00 +01:00
Denys Vlasenko
b972f94957
diff: add more tests
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-18 01:04:20 +01:00
Denys Vlasenko
33f9dc08e5
ftpd: code shrink
...
function old new delta
MMU:
handle_dir_common 354 338 -16
NOMMU:
ftpd_main 2437 2442 +5
popen_ls 201 174 -27
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-17 22:32:22 +01:00
Denys Vlasenko
96a6bdcb77
bunzip2.tests: replace $? with \$?
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-17 19:08:39 +01:00
Denys Vlasenko
57f46c1afd
ntpd: remove some code which is at best unneeded and at worst wrong
...
function old new delta
step_time 246 256 +10
ntpd_main 855 844 -11
update_local_clock 767 714 -53
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-17 03:01:15 +01:00
Denys Vlasenko
9b20adca4b
ntpd: add anti-clock-hopping code
...
function old new delta
select_and_cluster 837 950 +113
update_local_clock 759 767 +8
root_distance 61 - -61
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-17 02:51:33 +01:00
Denys Vlasenko
5b9a910749
ntpd: disable frequency estimation code
...
function old new delta
reset_peer_stats 164 168 +4
ntp_init 371 368 -3
recv_and_process_peer_pkt 869 852 -17
update_local_clock 823 759 -64
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/3 up/down: 4/-84) Total: -80 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-17 01:05:58 +01:00
Denys Vlasenko
e208279722
fix testing of busybox "applet" itself
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-16 02:49:40 +01:00
Denys Vlasenko
1e9bc2603d
cp: improve test coverage
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-16 02:27:31 +01:00
Denys Vlasenko
d084cb9dc7
trim usage text a bit; fix cp usage (meaning of -H option)
...
function old new delta
packed_usage 26596 26540 -56
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-15 22:30:30 +01:00
Denys Vlasenko
a40f0624db
cp: fix -H handling
...
function old new delta
copy_file 1495 1518 +23
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-15 22:05:07 +01:00
Denys Vlasenko
662078f9fd
small doc update
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-14 13:27:34 +01:00
Denys Vlasenko
60b9524bf7
whitespace fix
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-14 01:11:54 +01:00
Denys Vlasenko
bb16f57e5d
INSTALL: update obsolete doc, as suggested by Doug Clapp (doug.clapp AT triad.rr.com)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-13 22:43:13 +01:00
Denys Vlasenko
4fc82e0067
examples: add example ntpd service
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-13 22:07:34 +01:00
Denys Vlasenko
c041e239db
fix configure sha256sum problem. Closes bug 895
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-13 18:55:37 +01:00
Denys Vlasenko
85d286efc8
ash: remove config items for read options which are no longer optional
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-13 18:31:29 +01:00
Denys Vlasenko
25d9b91d94
shell/read: check that variable names are sane
...
function old new delta
shell_builtin_read 1000 1055 +55
parse_command 1460 1463 +3
builtin_umask 121 123 +2
is_well_formed_var_name 73 66 -7
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-13 18:22:35 +01:00
Denys Vlasenko
03d81ef43a
builtin_read: note about better implementation
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-13 14:53:49 +01:00
Denys Vlasenko
03dad22f8a
hush: use ash's read builtin
...
function old new delta
shell_builtin_read - 1000 +1000
set_local_var_from_halves - 24 +24
setvar2 - 7 +7
...
popstring 140 134 -6
ash_main 1375 1368 -7
setvar 184 174 -10
arith_set_local_var 36 - -36
builtin_read 1096 185 -911
------------------------------------------------------------------------------
(add/remove: 3/1 grow/shrink: 5/23 up/down: 1038/-1007) Total: 31 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-12 23:29:57 +01:00
Denys Vlasenko
045f4ad92c
shell/read: fix "'read' without parameters" bash compat thingy
...
previous change:
function old new delta
builtin_read 82 1074 +992
popstring 134 140 +6
readcmd 1034 148 -886
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 998/-886) Total: 112 bytes
this change:
builtin_read 1074 1096 +22
static.arg_REPLY 8 - -8
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 1/0 up/down: 22/-8) Total: 14 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-12 22:12:10 +01:00
Denys Vlasenko
7306727d1b
shell: split read builtin from ash
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-12 22:11:24 +01:00
Denys Vlasenko
6c93b24ce9
hush: fix potential buffer overflow on NOMMU
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-12 19:28:10 +01:00
Denys Vlasenko
e89a241b9e
hush: fix subshell.tests failure on NOMMU
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-12 15:19:31 +01:00
Denys Vlasenko
f3ec0fb1b4
scripts/basic/docproc.c: remove stray NUL byte from the source
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-12 13:48:42 +01:00
Denys Vlasenko
b70cef71eb
hush: two NOMMU fixes for bugs 877 and 883
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-12 13:45:45 +01:00
Denys Vlasenko
f2c8aa6676
libbb: introduce and use monotonic_ms
...
function old new delta
monotonic_ms - 60 +60
process_stdin 433 443 +10
display_speed 85 90 +5
nmeter_main 672 674 +2
builtin_type 114 116 +2
bb__parsespent 117 119 +2
ifplugd_main 1110 1109 -1
acpid_main 441 440 -1
chat_main 1361 1359 -2
doCommands 2458 2449 -9
arpping 466 450 -16
run_command 268 234 -34
readcmd 1072 1034 -38
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 5/7 up/down: 81/-101) Total: -20 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-12 12:52:30 +01:00
Denys Vlasenko
cb23d93c68
*: add/remove safe_, it seems we had a few incorrect uses
...
function old new delta
chat_main 1359 1361 +2
microcom_main 712 713 +1
ifplugd_main 1109 1110 +1
arpping 465 466 +1
acpid_main 440 441 +1
script_main 1069 1067 -2
cgi_io_loop_and_exit 594 591 -3
telnet_main 1475 1469 -6
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 5/3 up/down: 6/-11) Total: -5 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-12 12:29:55 +01:00
Denys Vlasenko
385cc59117
hush: plug a memory leak
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-12 06:47:39 +01:00
Denys Vlasenko
65d722bb0d
ntpd: explain algorithm
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-11 02:14:04 +01:00
Denys Vlasenko
12628b7797
ntpd: expose more data to the script; more eagerly drop to lower poll
...
function old new delta
run_script 340 395 +55
recv_and_process_peer_pkt 817 869 +52
passwd_main 1027 1058 +31
ntpd_main 845 855 +10
update_local_clock 853 823 -30
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/1 up/down: 148/-30) Total: 118 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-11 01:31:59 +01:00
Denys Vlasenko
725b5a387a
modprobe: it's not an error if module is already loaded. Closes bug 833
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-10 04:52:45 +01:00
Denys Vlasenko
38d3e64d25
adduser: create a group for net user too
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-10 04:25:05 +01:00
Denys Vlasenko
1fbcb805a3
cpio: add a test for recent fix
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-10 02:47:32 +01:00
Denys Vlasenko
ce9b97f18b
find: correct handling of -xdev
...
function old new delta
find_main 467 448 -19
fileAction 1336 1311 -25
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-10 02:33:02 +01:00
Denys Vlasenko
8ced1e5dc5
passwd: do not complain about /etc/shadow needlessly
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-09 22:21:55 +01:00
Denys Vlasenko
4653e442ba
adduser: more fixes to "add user to specified group"
...
function old new delta
update_passwd 1246 1295 +49
adduser_main 727 725 -2
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-09 20:57:06 +01:00
Denys Vlasenko
02dd96f688
cpio: fix -o-less cpio -F FILE
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-09 20:25:42 +01:00
Denys Vlasenko
607f65d171
cpio: improve help text more; fix -p and -F interaction
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-09 20:23:03 +01:00
Denys Vlasenko
93ac7d8468
cpio: improve help text; document two TODOs
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-09 19:56:15 +01:00
Denys Vlasenko
dc698bb038
*: make it easier to distinquish "struct tm", pointer to one, etc
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-09 19:10:49 +01:00
Tito Ragusa
0681137972
adduser: fix a logical inversion which made -G GRP inoperative
...
Signed-off-by: Tito Ragusa <farmatito@tiscali.it >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-09 18:08:35 +01:00
Denys Vlasenko
6fd42b3d00
dpkg: fix handling of names with leading dots. Closes bug 783
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-08 18:07:33 +01:00
Denys Vlasenko
866710a056
nc: fix "nc -nl -p LPORT RHOST" case (was expecting remote port 0). closes bug 837
...
function old new delta
dolisten 742 830 +88
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-08 16:09:45 +01:00
Denys Vlasenko
8cd04d1cb6
ash: fix for read $IFS splitting. Closes bug 235
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-08 15:44:07 +01:00
Chris Metcalf
c3c1fb676b
ash: fix mishandling of bash-style redirects
...
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-08 13:18:06 +01:00
Denys Vlasenko
999e442d5c
ifplugd: clarify -a in help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-08 13:03:48 +01:00
Denys Vlasenko
f422a722bb
ifplugd: restore auto-ifup unless -a; make iff method less iffy :D
...
function old new delta
up_iface - 112 +112
network_ioctl 13 38 +25
detect_link_iff 58 71 +13
detect_link 143 152 +9
ifplugd_main 1107 1109 +2
detect_link_wlan 131 125 -6
detect_link_ethtool 71 65 -6
detect_link_priv 88 80 -8
detect_link_mii 88 80 -8
maybe_up_new_iface 144 27 -117
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 4/5 up/down: 161/-145) Total: 16 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-08 12:28:47 +01:00
Denys Vlasenko
9037787eae
*: fix places where we were still using malloc/realloc
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-08 09:07:50 +01:00
Denys Vlasenko
ef3817c6dc
old_e2fsprogs/e2fsck.c: fix indentation
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-08 09:07:25 +01:00
Denys Vlasenko
b8f0e8036d
ifplugd: mention iff mode in help
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-07 14:56:50 +01:00
Denys Vlasenko
ae47335dc4
ntpd: show at loglevel 2 and export in env current poll interval
...
function old new delta
run_script 273 340 +67
ntpd_main 832 845 +13
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-07 11:51:13 +01:00
Denys Vlasenko
053ffeeeda
hwclock: tiny tweak in comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-07 10:52:20 +01:00
Denys Vlasenko
0c58cc706f
hwclock: make commented-out code compilable
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-07 10:36:41 +01:00
Denys Vlasenko
6959f6bc23
hwclock: disable time diff code; ntpd -S script: do not wait for completion
...
function old new delta
rtcname 4 - -4
run_script 278 273 -5
hwclock_main 466 439 -27
read_rtc 86 38 -48
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 0/3 up/down: 0/-84) Total: -84 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-07 08:31:46 +01:00
Denys Vlasenko
5e3b14069e
hwclock: make it report system/rtc clock difference
...
function old new delta
rtc_tm2time - 89 +89
read_rtc 23 86 +63
rtc_read_tm - 49 +49
hwclock_main 428 466 +38
rtcwake_main 453 477 +24
rtc_read_time 142 - -142
------------------------------------------------------------------------------
(add/remove: 2/1 grow/shrink: 3/0 up/down: 263/-142) Total: 121 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-06 22:43:39 +01:00
Denys Vlasenko
695fa51c80
hwclock: fix sizeof bug (used it on pointer, not array); make --systohc exact
...
function old new delta
hwclock_main 329 428 +99
rtc_adjtime_is_utc 138 134 -4
edir 365 354 -11
read_rtc 39 23 -16
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/3 up/down: 99/-31) Total: 68 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-06 18:16:39 +01:00
Denys Vlasenko
06667f21d6
ntpd: renew cur_time after script run, it can take a while
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-06 13:05:08 +01:00
Denys Vlasenko
ede737b7cf
ntpd: add -S PROG option. This feature is crucial for CMOS/RTC syncronization
...
function old new delta
run_script 112 278 +166
ntpd_main 779 825 +46
update_local_clock 824 858 +34
packed_usage 26518 26540 +22
ntp_init 366 371 +5
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 5/0 up/down: 273/0) Total: 273 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-06 12:27:47 +01:00
Denys Vlasenko
79ae534ac7
ifplugd: simplify run_script()
...
function old new delta
packed_usage 26505 26518 +13
run_script 158 112 -46
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-06 12:27:18 +01:00
Denys Vlasenko
aa4977d8e5
libunarchive: clean up dirty hacks. code shrank as a result
...
function old new delta
cpio_main 526 539 +13
init_handle 57 58 +1
init_archive_deb_ar 34 35 +1
get_header_ar 408 409 +1
dpkg_main 3900 3901 +1
unpack_package 516 515 -1
rpm_main 1673 1672 -1
tar_main 774 767 -7
get_header_cpio 990 972 -18
data_extract_all 750 727 -23
get_header_tar 1631 1576 -55
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 5/6 up/down: 17/-105) Total: -88 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-06 10:53:17 +01:00
Denys Vlasenko
86350f8d5f
cal: document the location of unicode bug. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-06 10:18:37 +01:00
Denys Vlasenko
bde70230e8
libunarchive: trivial code shrink
...
function old new delta
header_verbose_list 257 237 -20
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-06 09:43:11 +01:00
Matheus Izvekov
d0f601f066
find: add optional support for -links. +100 bytes
...
Signed-off-by: Matheus Izvekov <mizvekov@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-06 09:19:04 +01:00
Matheus Izvekov
839fd71077
gzip: add optional support for --long-opts
...
Signed-off-by: Matheus Izvekov <mizvekov@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-06 08:54:49 +01:00
Denys Vlasenko
251912443c
AUTHORS: mention Jie Zhang
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-05 12:57:44 +01:00
Denys Vlasenko
af1c8e8be0
cpio: fix unpacking of names with leading slashes
...
function old new delta
get_header_cpio 968 990 +22
cpio_main 533 526 -7
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-05 04:43:21 +01:00
Denys Vlasenko
074e8dcba7
ntpd: make -w less cumbersome to use
...
function old new delta
packed_usage 26767 26779 +12
recv_and_process_peer_pkt 808 817 +9
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-04 23:58:13 +01:00
Denys Vlasenko
28055028a7
fold: unicode support. Based on a patch by Tomas Heinrich <heinrich.tomas@gmail.com>
...
General Unicode support is tweaked to expose unicode_status.
function old new delta
init_unicode - 77 +77
write2stdout - 19 +19
adjust_column 68 71 +3
unicode_status - 1 +1
unicode_is_enabled 1 - -1
grep_main 780 773 -7
fold_main 619 552 -67
check_unicode_in_env 77 - -77
------------------------------------------------------------------------------
(add/remove: 3/2 grow/shrink: 1/2 up/down: 100/-152) Total: -52 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-04 20:49:58 +01:00
Tomas Heinrich
d2b1ba6fde
[un]expand: unicode support
...
function old new delta
expand_main 633 663 +30
Signed-off-by: Tomas Heinrich <heinrich.tomas@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-04 16:21:31 +01:00
Denys Vlasenko
4928f3b90b
ar: heh, there *was* "-1" already...
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-04 14:32:31 +01:00
Denys Vlasenko
40e5a30b66
ar: fix two bugs, one added by prev comment and other we SEGV with no params
...
cpio: use optind less
function old new delta
ar_main 189 184 -5
cpio_main 549 533 -16
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-21) Total: -21 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-04 14:30:37 +01:00
Denys Vlasenko
2ec91aead5
*: remove some uses of argc
...
function old new delta
whoami_main 34 37 +3
logname_main 60 63 +3
hostid_main 35 38 +3
ttysize_main 136 135 -1
nmeter_main 673 672 -1
logger_main 387 386 -1
uuencode_main 330 328 -2
ifupdown_main 2125 2123 -2
mesg_main 158 155 -3
free_main 333 330 -3
cal_main 902 899 -3
acpid_main 443 440 -3
ar_main 196 189 -7
find_main 476 467 -9
ifconfig_main 1235 1221 -14
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/12 up/down: 9/-49) Total: -40 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-04 14:15:38 +01:00
Denys Vlasenko
a355da0775
*: make 2 more "int argc"'s unused; more saved if !DESKTOP
...
function old new delta
sync_main 18 20 +2
tty_main 90 87 -3
iprule_list 83 79 -4
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-04 13:16:08 +01:00
Denys Vlasenko
a4899efd03
hush: fix exitcodes of killed processes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-04 11:37:09 +01:00
Denys Vlasenko
4168fdd8e6
ntpd: add -w "watch" option, useful for debugging to look at our own data
...
Also fixed a small buglet discovered using -w
function old new delta
recv_and_process_peer_pkt 895 944 +49
select_and_cluster 1132 1150 +18
packed_usage 26769 26767 -2
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-04 00:19:13 +01:00
Denys Vlasenko
d6459685c1
tar: fix problem handling tarballs with chksums prepended by spaces
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-03 23:41:11 +01:00
Denys Vlasenko
2d3253d1f9
ntpd: fix comment, no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-03 21:52:46 +01:00
Denys Vlasenko
d498ff0ac4
ntpd: try to avoid using libm. -1.2k if we succeed
...
uclibc's sqrt(x) is pathetic, 411 bytes? it can be ~100...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-03 21:06:27 +01:00
Denys Vlasenko
510f56aa6f
ntpd: remove an old hack for faster initialization
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-03 12:00:26 +01:00
Denys Vlasenko
0b002812a8
ntpd: better selection of initial sync; fewer gettimeofday calls
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-03 08:59:59 +01:00
Denys Vlasenko
185e691ec1
update link to the comp.lang.c FAQ
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-02 18:57:45 +01:00
Denys Vlasenko
c066472b0c
*: do not assign to stdout/stderr, it's not portable.
...
Based on patch by Aaron Carroll <xaaronc@gmail.com >
function old new delta
time_main 1062 1052 -10
cpio_main 563 549 -14
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-02 18:49:22 +01:00
Denys Vlasenko
1ee5afdce2
ntpd: fix jitter calculations and status propagation
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-02 15:57:07 +01:00
Denys Vlasenko
f25252c69e
watch: more compatible screen format
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-02 01:57:32 +01:00
Denys Vlasenko
2e36eb8f27
ntpd: speed up reaction to poll interval decrease
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-02 01:50:16 +01:00
Denys Vlasenko
d9109e3b48
ntpd: improve frequency filtering
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-02 00:36:43 +01:00
Denys Vlasenko
a9aaeda0e9
ntpd: restore forgotten delay sanitization
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-01 22:23:27 +01:00
Denys Vlasenko
e4844b8a5f
ntpd: add a comment, no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-01 21:59:49 +01:00
Denys Vlasenko
61313117a0
ntpd: disable unused code; show kernel's clock drift correction
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-01 19:56:16 +01:00
Denys Vlasenko
bfc2a32d88
ntpd: reduce poll interval increase rate
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-01 18:12:06 +01:00
Denys Vlasenko
dd6673bac5
ntpd: replace openntp's clock discipline with ntpd's
...
It seems to be much more precise. +2.2k:
text data bss dec hex filename
4670 0 0 4670 123e busybox.t2/networking/ntpd.o
6838 0 0 6838 1ab6 busybox.t3/networking/ntpd.o
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-01 16:46:17 +01:00
Denys Vlasenko
8a428d9b15
ntpd: ntpd.c -> ntpd_simple.c
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-01-01 16:45:43 +01:00
Denys Vlasenko
d2fe69f9dc
ntpd: preparatory patches, no functional changes
...
function old new delta
ntp_init 354 357 +3
ntpd_main 2945 2898 -47
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-12-30 18:38:05 +01:00
Denys Vlasenko
bd1de181ad
dc: make "dc -1.23 ..." work
...
function old new delta
stack_machine 97 103 +6
dc_main 121 110 -11
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/2 up/down: 9/-58) Total: -49 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-12-30 18:37:08 +01:00
Denys Vlasenko
6879a7ae43
ntpd: fx incorrect offset display when stepping
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-12-18 18:50:29 +01:00
Denys Vlasenko
4b6abf6655
tar: fix recently added SEGV on "tar" w/o args
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-12-18 12:36:07 +01:00
Denys Vlasenko
afa2d33aa4
ntpd: field renames and style fixes, no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-12-17 23:29:33 +01:00
Denys Vlasenko
e99c8d2ef5
ntpd: eliminate one time(NULL) call
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-12-17 12:17:41 +01:00
Denys Vlasenko
8a936cfab7
tar: add support for --overwrite. +70 bytes.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-12-16 23:18:59 +01:00
Denys Vlasenko
425ad9c93b
libunarchive: move dpkg-specific things into dpkg.c. 0 byte size differences
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-12-16 22:46:01 +01:00
Denys Vlasenko
dbc6a7a8fd
httpd -m: output salted MD5 hash. By (forrest AT hifulltech.com)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-12-16 02:28:50 +01:00
Denys Vlasenko
cc428147c1
mount: dont include NFS headers if not needed; drop support for Linux <2.2.0
...
function old new delta
nfs_err_stat - 18 +18
nfs_err_errnum - 18 +18
nfs_strerror 56 50 -6
nfsmount 3567 3541 -26
nfs_errtbl 80 - -80
------------------------------------------------------------------------------
(add/remove: 2/1 grow/shrink: 0/2 up/down: 36/-112) Total: -76 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-12-16 02:06:56 +01:00
Denys Vlasenko
b7a0e13d1c
mount: fix goof in last commit; clear errno since we use perror_msg later
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-12-15 16:36:14 +01:00
Denys Vlasenko
cb37637b47
switch_root: more clear error messages
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-12-15 01:55:55 +01:00
Denys Vlasenko
4e60f304d4
mount: if we mount //host/xxx, add ip=IPADDR to options
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-12-15 01:28:59 +01:00
Denys Vlasenko
d7171c1140
init: fix logically inverted FEATURE_EXTRA_QUIET check
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-12-15 00:34:59 +01:00
Denys Vlasenko
1a8de6f8a2
init: use applet_name instead of "init" - we can be linuxrc
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-12-14 03:16:28 +01:00
Denys Vlasenko
18f89128e5
init: for paranoid reasons, restore SIGCONT too.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-12-14 03:08:30 +01:00
Denys Vlasenko
bcc6ec9b7e
init: fix "while true; do reboot; done" bug. +15 bytes. Closes bug 781
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-12-14 03:03:29 +01:00
Denys Vlasenko
6be918d0ae
init: make FEATURE_EXTRA_QUIET more consistent. +1 byte
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-12-14 01:32:11 +01:00
Denys Vlasenko
78fcec4dc7
crond: do not log info messages at LOG_ERR. Closes bug 681. +62 bytes.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-12-13 17:42:49 +01:00
Denys Vlasenko
aa42d13e32
sort: make sort -o FILE FILE (same FILE) work. Closes bug 785. -3 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-12-13 02:09:22 +01:00
Denys Vlasenko
31e2e7b863
randomconfig fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-12-12 02:42:35 +01:00
Denys Vlasenko
1315c30fef
mount: needs find_mount_point.o
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-12-11 15:01:54 +01:00
Denys Vlasenko
800ff7cc75
stty: code shrink -44 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-12-11 15:00:17 +01:00
Denys Vlasenko
9f5a577a32
stty: fix columns command. closes bug 791.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-12-11 14:17:02 +01:00
Denys Vlasenko
d2c879da25
wget: fix signedness in the compare (paranoia only, G.content_len is never < 0)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-12-11 14:12:28 +01:00
Denys Vlasenko
a3aa3e3095
wget: check for close success; fix chunked; do not bother to send QUIT to ftp
...
Also, random fixes to use %u for unsigned quantities. -14 bytes in wget.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-12-11 12:36:10 +01:00
Denys Vlasenko
4662de0511
replace APP_xxDHCPxx with xxDHCPxx, it's more consistent with the rest
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-12-11 02:21:10 +01:00
Denys Vlasenko
8656676a21
mount: "already mounted" msg appears only if -v
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-12-10 21:32:28 +01:00
Denys Vlasenko
46a1477107
ash: trivial optimization -6 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-12-10 21:27:13 +01:00
Souf Oued
11a802a0fa
lsusb: new applet. +400 bytes
...
Signed-off-by: Souf Oued <souf_oued@yahoo.fr >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-12-07 01:37:34 +01:00
Souf Oued
982bc7176d
lspci: new applet. +573 bytes
...
Signed-off-by: Souf Oued <souf_oued@yahoo.fr >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-12-05 17:56:25 +01:00
Denys Vlasenko
f92874e747
replace /bin/mdev with /sbin/mdev
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-12-05 15:59:05 +01:00
Denys Vlasenko
a7329667b4
mount: prevent second mount -a from mounting everything again
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-12-05 04:25:19 +01:00
Denys Vlasenko
14b0f4feb3
trim usage text. -238 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-12-05 02:44:34 +01:00
Denys Vlasenko
e9ac32a067
ash: fix double comma in initializer
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-12-05 02:01:25 +01:00
Michael Abbott
359da5e3be
ash: implement set -o pipefail (conditional on bash compat). +39 bytes
...
Signed-off-by: Michael Abbott <michael@araneidae.co.uk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-12-04 23:03:29 +01:00
Denys Vlasenko
285ad155c4
ash: preparatory work for pipefail and code shrink. -44 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-12-04 23:02:27 +01:00
Denys Vlasenko
7a7b034482
ash: re-enable SIGHUP on entry. Closes bug 771.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-12-04 04:18:31 +01:00
Michael Abbott
6b5accbfc1
mount: add support for -O list. +44 bytes
...
Signed-off-by: Michael Abbott <michael@araneidae.co.uk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-12-04 03:33:07 +01:00
Denys Vlasenko
6dc0ace109
grep: fix a case when -o loops forever
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-12-04 02:48:14 +01:00
Denys Vlasenko
6a110c969f
ntpd: remove dynamic dns resolution code, too complex. -69 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-12-03 00:20:58 +01:00
Denys Vlasenko
7cb1d6ccf3
ntpd: try to avoid DNS requests *during* NTP roundtrip. +23 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-12-02 23:46:25 +01:00
Denys Vlasenko
907647fb15
ntpd: implement -x. shrink code a bit. -69 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-12-02 23:17:45 +01:00
Denys Vlasenko
4bd5189370
ntpd: fix malloc-too-short bug; code shrink -76 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-12-02 13:43:06 +01:00
Denys Vlasenko
ebde6f10fb
ntpd: fix "synced" state detection
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-12-02 12:29:06 +01:00
Denys Vlasenko
f91e63cbc3
ntpd: continuing small message tweaks and the like. -29 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-12-02 02:30:31 +01:00
Denys Vlasenko
386960a38e
htpd: better logging; removed some unused code and data. -212 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-12-02 01:51:24 +01:00
Denys Vlasenko
fae9f499b2
ntpd: make it work w/o -g too :(
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-12-01 02:32:01 +01:00
Denys Vlasenko
8eda4a9005
ash: straighten up a bit of code in varvalue()
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-30 12:16:17 +01:00
Denys Vlasenko
d0f9d0ed58
touch: needs another fix after last utimes() fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-30 11:36:14 +01:00
Denys Vlasenko
1284774d60
awk: fix an incorrect casting to string (bug 725). -44 bytes.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-30 01:15:04 +01:00
Denys Vlasenko
cdeda16ee4
awk: preparatory patch, no essential code changes. -13 bytes.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-30 01:14:16 +01:00
Denys Vlasenko
dcbfaba264
fix improper utimes usage
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-29 19:40:36 +01:00
Denys Vlasenko
bf22475e95
tar: add a test for latest fix
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-29 19:09:29 +01:00
Denys Vlasenko
d43d628f8b
tar: revert part of last change. -39 bytes
...
It looks like GNU "tar cf file file" _does_ save file as if
it is a hardlink, when it meets it for the second time.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-29 16:28:33 +01:00
Denys Vlasenko
f94c9bf288
tar: fix bug 673 (misdetection of repeated dir as hardlink). +92 bytes
...
While at it, remove many superfluous ops on unpack:
mkdir("."), lots of umask() calls. Can remove more
by caching username->uid.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-29 07:45:33 +01:00
Denys Vlasenko
2ce42e98d7
ash: more cosmetics and cleanups
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-29 02:18:13 +01:00
Denys Vlasenko
068d386a6c
ash: cosmetics, no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-29 01:41:11 +01:00
Denys Vlasenko
76bc2d6deb
ash: remove last "signed char"; make SIT() clearer. -12 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-29 01:37:46 +01:00
Denys Vlasenko
0337e038a9
ash: randmconfig fix
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-29 00:12:30 +01:00
Denys Vlasenko
cd71683ae6
ash: remake strange signed char machinery to be unsigned. -57 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-28 22:14:02 +01:00
Denys Vlasenko
e992bae6f9
*: remove a few more cases of argc usage. -89 bytes.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-28 15:18:53 +01:00
Denys Vlasenko
86cfb70ca5
flash_eraseall: stop using obsolete mtd/jffs2-user.h; code shrink
...
function old new delta
show_progress 68 67 -1
flash_eraseall_main 1007 882 -125
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-126) Total: -126 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-27 13:26:17 +01:00
Denys Vlasenko
160b9ca731
ntpd: make it NOMMU-safe; ash: exclude it on NOMMU builds
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-27 02:35:15 +01:00
Denys Vlasenko
1361aa2e2d
udp_io: fix two more potential cases of unaligned accesses. 0 code size changes.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-26 16:52:25 +01:00
Denys Vlasenko
57be1eefab
ping: fix unaligned access. closes bug 745.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-26 15:26:31 +01:00
Denys Vlasenko
1e1136025b
runlevel: -2 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-26 15:26:14 +01:00
Denys Vlasenko
650a7011a8
ntpd: trivial -2 byte code optimization
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-26 07:11:12 +01:00
Denys Vlasenko
5b6fe34cee
split: handle - as "use stdin". +13 bytes. Closes bug 741.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-26 05:43:16 +01:00
Denys Vlasenko
fa1e7177fb
build system: fix for coarse mtime problem
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-26 05:25:24 +01:00
Denys Vlasenko
b2e5fc35eb
ntpd: and real handling for -N, show usage w/o options; trim text
...
function old new delta
ntp_init 317 348 +31
bb_msg_you_must_be_root - 17 +17
xsocket 66 76 +10
changepath 195 194 -1
bb_msg_perm_denied_are_you_root 35 34 -1
send_tree 355 353 -2
count_lines 74 72 -2
must_be_root 17 - -17
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 2/4 up/down: 58/-23) Total: 35 bytes
text data bss dec hexfilename
832873 441 7548 840862 cd49ebusybox_old
832839 441 7548 840828 cd47cbusybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-25 14:52:47 +01:00
Denys Vlasenko
18221506e5
build system: more fixes to parallel build
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-25 00:22:31 +01:00
Denys Vlasenko
b24c1139fb
build system: fix parallel make
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-24 22:23:21 +01:00
Denys Vlasenko
b1278a38bc
ntpd: locally bind every peer socket. +22 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-24 16:03:47 +01:00
Denys Vlasenko
9cc60d7e6b
ntpd: fix vda's breakage
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-24 14:43:20 +01:00
Denys Vlasenko
f42fa1b21e
traceroute6: restore port after probing
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-24 14:10:06 +01:00
Denys Vlasenko
75b7397675
fix trivial compile breakage
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-24 14:06:04 +01:00
Denys Vlasenko
363e89b1ee
ntpd: use MSG_DONTWAIT; better readability
...
function old new delta
gettime_fp - 39 +39
ntpd_main 3214 3199 -15
gettime 47 - -47
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 0/1 up/down: 39/-62) Total: -23 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-24 14:04:15 +01:00
Denys Vlasenko
ca6c7e42f9
ntp: simplifications; libbb: simpler resolution of numeric hostnames
...
function old new delta
str2sockaddr 405 567 +162
ntp_init 310 317 +7
scale_interval 58 59 +1
error_interval 22 23 +1
ntpd_main 3257 3214 -43
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/1 up/down: 171/-43) Total: 128 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-24 07:07:42 +01:00
Denys Vlasenko
887d963037
ps: add comment about -T
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-24 03:52:24 +01:00
Denys Vlasenko
c14bf21332
traceroute: simplify code a bit
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-24 02:17:13 +01:00
Denys Vlasenko
6ccaa23f2b
libunarchive: fix reversed test for older/newer
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-24 01:16:12 +01:00
Denys Vlasenko
8d580c72f4
ntpd: add -q option. By Adam Tkac.
...
function old new delta
settime 347 375 +28
packed_usage 26681 26693 +12
ntpd_main 3282 3251 -31
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 40/-31) Total: 9 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-23 16:27:16 +01:00
Denys Vlasenko
74f8e7810b
traceroute: fix help text to not show -6 when traceroute6 is off
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-23 06:34:04 +01:00
Leonid Lisovskiy
4c06531d5e
traceroute6: new applet by Leonid Lisovskiy. +1562 bytes
...
Signed-off-by: Leonid Lisovskiy <lly.dev@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-23 06:20:09 +01:00
Denys Vlasenko
0d56568654
traceroute: cleanup preparing it for traceroute6. -17 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-23 06:15:38 +01:00
Denys Vlasenko
11f3a8b7ed
od: fix -tx without length spec
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-22 15:37:16 +01:00
Adam Tkac
b1585064fd
ntpd: new applet by Adam Tkac. +5k.
...
Signed-off-by: Adam Tkac <vonsch@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-22 03:43:55 +01:00
Stefan Seyfried
d095fd4d95
flashcp: new applet by Stefan Seyfried. +900 bytes
...
Signed-off-by: Stefan Seyfried <stefan.seyfried@googlemail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-21 18:32:19 +01:00
Denys Vlasenko
102ff76c84
mount: clean up #defines. No code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-21 17:14:08 +01:00
Denys Vlasenko
85164fa06e
ping: use |=, not =, when combine option bit mask
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-21 15:44:56 +01:00
Denys Vlasenko
c270454f8f
fix fallout from isprint() changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-20 19:14:19 +01:00
Denys Vlasenko
ad7d94bdc7
ping6: do not play dirty tricks with argv
...
function old new delta
common_ping_main - 368 +368
ping6_main 30 14 -16
ping_main 370 11 -359
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/2 up/down: 368/-375) Total: -7 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-20 18:12:12 +01:00
Denys Vlasenko
8684cbb5cc
libbb: robustify isXXXX(). +39 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-18 11:34:43 +01:00
Dan Fandrich
5b0a7f1a6e
wc: fix a hang gue to isprint(EOF)
...
The new isprint replacement macro returns TRUE for isprint(EOF), so the
read loop never returns. Moved the check for EOF immediately after the
read.
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-18 10:48:09 +01:00
Denys Vlasenko
995f15452a
libbb: fix vasprintf implementation
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-17 05:33:47 +01:00
Denys Vlasenko
f3e2818895
hush: improve HUSH_BRACE_EXP code (still disabled). ~0 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-17 03:35:31 +01:00
Denys Vlasenko
160746b603
tweak in comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-16 05:51:18 +01:00
Denys Vlasenko
5b2db97703
hush: initial stab at brace expansion support
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-16 05:49:36 +01:00
Denys Vlasenko
d8389ad760
hush: fix handling of words with braces. +65 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-16 03:18:46 +01:00
Denys Vlasenko
00243b0a1a
hush: fix exit code propagation from cmd. +45 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-16 02:00:03 +01:00
Denys Vlasenko
a7ccdeef39
libbb: added xfdopen_for_read/write
...
function old new delta
xfdopen_helper - 40 +40
logdir_open 1163 1184 +21
process_stdin 433 443 +10
xfdopen_for_write - 9 +9
doCommands 2465 2474 +9
patch_main 1214 1222 +8
bbunpack 457 465 +8
xfdopen_for_read - 7 +7
scan_tree 258 262 +4
xstrtoul_range_sfx 230 231 +1
sendmail_main 957 955 -2
passwd_main 1027 1023 -4
parse 969 964 -5
test_main 253 247 -6
sed_main 655 649 -6
dos2unix_main 437 429 -8
fbsplash_main 950 938 -12
handle_dir_common 371 354 -17
expand_vars_to_list 2197 2169 -28
update_passwd 1275 1246 -29
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 7/10 up/down: 117/-117) Total: 0 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-15 23:28:11 +01:00
Denys Vlasenko
647553a4fc
hush: wait for cmd to complete, and immediately store its exitcode in $?
...
function old new delta
expand_vars_to_list 2129 2197 +68
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-15 19:58:19 +01:00
Denys Vlasenko
ff1822aed1
date: restore hadling of MMDDhhmm[[CC]YY][.ss] date format
...
function old new delta
date_main 698 889 +191
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-15 04:55:40 +01:00
Denys Vlasenko
6e54249e05
init: restore possibility to reload inittab even before we finish initialization
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-15 03:07:19 +01:00
Denys Vlasenko
72ac6901f4
eject: band-aid for kernel headers using u8 type
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-15 02:48:01 +01:00
Denys Vlasenko
0d7e2e7c3e
fsck: add comment clarifying exit codes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-15 02:36:49 +01:00
Denys Vlasenko
389cca4b9e
some non-gnu compilers can't have non-const struct initializers
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-15 02:28:56 +01:00
Bernhard Reutner-Fischer
a307af1af6
use utimes() rather than obsolescent utime()
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2009-11-15 00:12:53 +01:00
Bernhard Reutner-Fischer
cc8b6871a7
use utimes() rather than obsolescent utime()
...
utime is obsolescent in POSIX.1-2008, use utimes() for now.
Untested.
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2009-11-14 23:35:00 +01:00
Denys Vlasenko
e3600a042e
httpd_post_upload.txt example: handle binary files too
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-13 09:37:50 +01:00
Denys Vlasenko
5799248976
sed: on output file, set not only mode, but owner too
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-13 09:09:07 +01:00
Denys Vlasenko
6331cf059c
*: use "can't" instead of "cannot"
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-13 09:08:27 +01:00
Denys Vlasenko
f4fee418ae
env: don't SEGV on bare "env -"
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-12 14:52:47 +01:00
Denys Vlasenko
ab19ede655
tidy up O_NONBLOCK usage. use libbb functions in stty.
...
Added O_RDONLY where improves readability. Note: O_RDONLY == 0,
so it is there even if not specified.
function old new delta
stty_main 1289 1235 -54
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-11 21:05:42 +01:00
Denys Vlasenko
c096a6c208
mdev_fat.conf: add a rule to run nameif
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-11 06:32:43 +01:00
Denys Vlasenko
13ad90627c
ash: fix bad interaction of "stty -echo" + ASK_TERMINAL
...
function old new delta
read_line_input 4820 4886 +66
put_prompt 108 47 -61
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 66/-61) Total: 5 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-11 03:19:30 +01:00
Denys Vlasenko
b6d221ac9c
fix 'not not' in comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-09 11:12:45 +01:00
Denys Vlasenko
002bdc3e2a
tweak service examples a bit (less verbose comment in dhcp_if)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-09 11:04:54 +01:00
Denys Vlasenko
391dd92ce2
tweak dhcp service example - add ntp configuration
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-09 09:39:50 +01:00
Denys Vlasenko
c3896850f7
add and example of tftpd service
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-08 18:41:26 +01:00
Denys Vlasenko
6528abeb6a
tftpd: another small tweak
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-08 18:27:18 +01:00
Denys Vlasenko
1e9ac9f685
tftp: another small tweak
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-08 18:15:10 +01:00
Denys Vlasenko
adc08ef194
tftpd: slight correction to progress bar code
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-08 18:07:36 +01:00
Magnus Damm
8bd0af9962
tftp: add optiona support for progress bar
...
function old new delta
tftp_protocol 1662 1834 +172
progress_meter 212 365 +153
tftp_progress_init - 14 +14
tftp_main 276 281 +5
tftpd_main 513 500 -13
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 3/1 up/down: 344/-13) Total: 331 bytes
Signed-off-by: Magnus Damm <magnus.damm@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-08 18:03:09 +01:00
Magnus Damm
bbd423530f
tftp: extend tsize support a little
...
function old new delta
tftp_protocol 1624 1662 +38
tftpd_main 495 513 +18
tftp_main 274 276 +2
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 58/0) Total: 58 bytes
Signed-off-by: Magnus Damm <magnus.damm@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-08 18:02:53 +01:00
Magnus Damm
f5914992f3
wget: factor out progress bar code
...
Signed-off-by: Magnus Damm <magnus.damm@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-08 16:34:43 +01:00
Denys Vlasenko
f5c2f72917
add more service examples
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-08 00:55:39 +01:00
Denys Vlasenko
44f8d01399
tweak mdev_fat.conf example
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-07 18:21:03 +01:00
Denys Vlasenko
bf40f564ae
tweak examples
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-07 17:54:44 +01:00
Denys Vlasenko
5a34d021cb
ifplugd: small optimization
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-07 17:30:14 +01:00
Vladimir Dronnikov
6eaac025a1
fbsplash: allow compressed image files
...
Signed-off-by: Vladimir Dronnikov <dronnikov@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-07 04:14:50 +01:00
Denys Vlasenko
9be4f31da0
top: do not use #if inside printf, it can be a macro
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-07 04:06:31 +01:00
Denys Vlasenko
6e8e666bd9
adding examples/mdev_fat.conf
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-07 04:00:03 +01:00
Denys Vlasenko
1612c757d0
mdev: print line# in error messages
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-07 03:33:05 +01:00
Denys Vlasenko
27094cac7f
add examples/mdev.conf
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-07 03:28:48 +01:00
Denys Vlasenko
245a4f84be
big endian warning fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-07 01:31:14 +01:00
Denys Vlasenko
0d8c0b810e
removed SuSv3 doc tarball - potential licensing problem
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-06 04:11:22 +01:00
Denys Vlasenko
8fdf066323
whitespace fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-06 04:10:43 +01:00
Denys Vlasenko
6cf7f01256
adding example runit-style service directory
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-06 04:04:19 +01:00
Tomas Heinrich
85bb843f47
dumpleases: unicode spport
...
Signed-off-by: Tomas Heinrich <heinrich.tomas@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-05 08:42:47 +01:00
Mike Frysinger
05ed00f09a
applets: meant to fix order, not enable bbsh
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2009-11-04 18:53:16 -05:00
Mike Frysinger
eacbca5735
all_sourcecode.tests: check commented out applet order too
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2009-11-04 18:49:08 -05:00
Mike Frysinger
78824f38a3
applets: fix alphabetical order
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2009-11-04 18:49:03 -05:00
Mike Frysinger
caa79406aa
tests: fix POSIX shell source style
...
The source command does not search $PWD, and bash recently fixed itself to
follow this behavior for /bin/sh.
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2009-11-04 18:41:22 -05:00
Denys Vlasenko
f8a73bfa33
lsmod: beautify. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-04 18:01:17 +01:00
Denys Vlasenko
b57eee8beb
libbb.h: remove two over-zealous RETURNS_MALLOC
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-04 17:54:17 +01:00
Denys Vlasenko
ded688c6f6
fold: fix a corner case. By Tomas Heinrich (heinrich.tomas AT gmail.com)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-04 15:31:19 +01:00
Denys Vlasenko
692bcff577
mkfs_vfat: fixes for large image cases
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-03 14:12:04 +01:00
Denys Vlasenko
68c67469aa
mkswap: add -L LABEL option. closes bug 689.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-03 05:51:20 +01:00
Denys Vlasenko
c6fb2a6b5f
passwd: do not complain if /etc/shadow is missing
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-02 19:18:49 +01:00
Denys Vlasenko
26c64bade8
udhcpc: log script parameter too
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-02 18:53:57 +01:00
Denys Vlasenko
53283adb24
include/libbb.h: mark malloc-returning functions with GCC attribute
...
function old new delta
ash_main 1336 1365 +29
readcmd 1062 1072 +10
add_split_dependencies 707 717 +10
rtnl_talk 539 548 +9
normalize 165 174 +9
xmalloc_optname_optval 583 590 +7
test_main 247 253 +6
insert_bg_job 366 371 +5
dname_enc 391 395 +4
nslookup_main 165 168 +3
ifplugd_main 1099 1102 +3
tftpd_main 493 495 +2
make_new_session 413 415 +2
localcmd 274 276 +2
date_main 696 698 +2
tee_main 317 318 +1
setvar 183 184 +1
hash_find 233 234 +1
xrtnl_dump_filter 400 399 -1
prepend_new_eth_table 297 295 -2
unpack_Z_stream 1229 1226 -3
read_line_input 4823 4820 -3
do_load 523 520 -3
udhcp_run_script 669 665 -4
mkfs_vfat_main 1609 1605 -4
rtnl_rtprot_initialize 70 65 -5
procps_scan 1842 1835 -7
read_opt 873 865 -8
ifupdown_main 2133 2125 -8
mkfs_ext2_main 2492 2482 -10
logread_main 503 492 -11
svlogd_main 1441 1429 -12
rewrite 1032 1018 -14
fbsplash_main 917 903 -14
str2sockaddr 431 405 -26
unpack_lzma_stream 2705 2677 -28
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 18/18 up/down: 106/-163) Total: -57 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-02 14:20:34 +01:00
Denys Vlasenko
8131eea3dc
*: introduce and use ffulsh_all()
...
function old new delta
buffer_fill_and_print 179 196 +17
fflush_all - 9 +9
spawn 87 92 +5
rtcwake_main 455 453 -2
...
alarm_intr 93 84 -9
readcmd 1072 1062 -10
bb_ask 345 333 -12
more_main 845 832 -13
flush_stdout_stderr 42 23 -19
xfflush_stdout 27 - -27
flush_stderr 30 - -30
------------------------------------------------------------------------------
(add/remove: 1/2 grow/shrink: 2/50 up/down: 31/-397) Total: -366 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-02 14:19:51 +01:00
Vladimir Dronnikov
0d8ea64af6
mkfs.reiser: new applet. needs much polishing
...
Signed-off-by: Vladimir Dronnikov <dronnikov@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-02 10:49:02 +01:00
Denys Vlasenko
d784b65be7
btrfs.c: check first two superblocks, for additional robustness
...
function old new delta
volume_id_probe_btrfs 94 142 +48
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-02 00:12:35 +01:00
Denys Vlasenko
893009644f
volume_id: add FAST_FUNC where appropriate
...
function old new delta
volume_id_probe_iso9660 324 327 +3
volume_id_probe_vfat 902 903 +1
volume_id_probe_udf 576 577 +1
volume_id_probe_ntfs 314 315 +1
uuidcache_check_device 292 291 -1
volume_id_probe_xfs 87 85 -2
volume_id_probe_sysv 165 163 -2
volume_id_probe_romfs 89 87 -2
volume_id_probe_reiserfs 236 234 -2
volume_id_probe_ocfs2 96 94 -2
volume_id_probe_luks 78 76 -2
volume_id_probe_linux_swap 165 163 -2
volume_id_probe_jfs 96 94 -2
volume_id_probe_hfs_hfsplus 795 793 -2
volume_id_probe_ext 82 80 -2
volume_id_probe_cramfs 59 57 -2
volume_id_probe_btrfs 96 94 -2
free_volume_id 36 31 -5
volume_id_probe_linux_raid 127 119 -8
volume_id_probe_all 152 138 -14
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/16 up/down: 6/-52) Total: -46 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-01 23:07:18 +01:00
Vladimir Dronnikov
662e8b79d0
volume_id: add support for btrfs
...
function old new delta
volume_id_probe_btrfs - 96 +96
fs2 48 52 +4
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/0 up/down: 100/0) Total: 100 bytes
Signed-off-by: Vladimir Dronnikov <dronnikov@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-01 23:05:09 +01:00
Denys Vlasenko
e62a2463ec
mdev: do not die on mknod errors
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-01 21:51:31 +01:00
Vladimir Dronnikov
4214f8b537
mountpoint: btrfs fix
...
Signed-off-by: Vladimir Dronnikov <dronnikov@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-01 04:33:23 +01:00
Dan Fandrich
fe4e23f9de
Add more compat code for non GNU environments
...
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-11-01 04:01:30 +01:00
Bernhard Reutner-Fischer
95a036e125
tty: use defines rather than constants
...
No obj-code changes.
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2009-10-29 21:37:48 +01:00
Denys Vlasenko
85ca327529
*: random code shrink
...
function old new delta
alarm_handler 50 46 -4
ask 228 211 -17
rtcwake_main 474 455 -19
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-29 13:27:31 +01:00
Denys Vlasenko
1f6d2307ba
lineedit: REALLY fix compile error now
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-29 03:45:26 +01:00
Denys Vlasenko
4dc08262cf
lineedit: compile fix
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-29 03:41:38 +01:00
Denys Vlasenko
00f0ef4a0c
echo et al: support \e escape
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-29 03:39:55 +01:00
Bernhard Reutner-Fischer
e039e689e3
wall: new applet
...
text data bss dec hex filename
81 0 0 81 51 miscutils/wall.o
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-27 17:34:36 +01:00
Bernhard Reutner-Fischer
a48308701a
add and use xopen_nonblocking (-18b)
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-27 17:17:34 +01:00
Bernhard Reutner-Fischer
ca254490d7
chpst: tiny shrinkage and add possible TODO
...
text data bss dec hex filename
1398 0 0 1398 576 runit/chpst.o.old
1385 0 0 1385 569 runit/chpst.o
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-27 17:14:49 +01:00
Bernhard Reutner-Fischer
b04f058e76
mdev: adjust error message
...
function old new delta
.rodata 126715 126706 -9
(reusing common error string)
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-27 17:13:45 +01:00
Bernhard Reutner-Fischer
933993a461
mdev: handle string modes
...
parse ugoa=rwxXst via bb_parse_mode (+5b)
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-27 17:13:12 +01:00
Bernhard Reutner-Fischer
6531f0923b
mdev: tiny shrinkage by index_in_strings
...
text data bss dec hex filename
2633 0 0 2633 a49 util-linux/mdev.o.old
2624 0 0 2624 a40 util-linux/mdev.o
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-27 17:12:26 +01:00
Bernhard Reutner-Fischer
b35e3a8612
applets/usage_compressed: combine many seds in one; hide dd stats
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-27 17:06:32 +01:00
Dan Fandrich
21a542d7d7
platform compatibility work (by Dan Fandrich)
...
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-27 11:05:00 +01:00
Denys Vlasenko
d83bbf4193
rename sent_ESC_br_n6 variable to sent_ESC_br6n
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-27 10:47:49 +01:00
Denys Vlasenko
eb62d7c383
libbb/lineedit: try to make FEATURE_EDITING_ASK_TERMINAL less ugly
...
function old new delta
read_line_input 4809 4829 +20
lineedit_read_key 207 223 +16
put_prompt 110 117 +7
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 43/0) Total: 43 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-27 10:34:06 +01:00
Denys Vlasenko
1502a8b4ce
libbb/xrealloc_vector.c: better comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-27 10:01:01 +01:00
Denys Vlasenko
12450dbeef
libbb/bb_do_delay.c: shrink
...
function old new delta
difftime 9 - -9
bb_do_delay 88 38 -50
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 0/1 up/down: 0/-59) Total: -59 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-27 09:54:34 +01:00
Denys Vlasenko
52b971f516
libbb/ask_confirmation.c: shrink
...
function old new delta
bb_ask_confirmation 95 76 -19
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-27 09:49:04 +01:00
Denys Vlasenko
b204e6b61a
httpd_indexcgi: fix off-by-one error
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-27 09:29:01 +01:00
Denys Vlasenko
dac863a4cc
sed: shrink usage text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-27 09:11:17 +01:00
Rob Landley
7b28415483
Minor usage tweak for sed.
...
Makes it slightly smaller and (in my opinion) clearer.
Signed-off-by: Rob Landley <rob@landley.net >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-27 09:07:08 +01:00
Denys Vlasenko
727e1b536e
read_key,lineeedit: parse position answerback faster; sanitize its use
...
it's still not reliable, and probably cannot be made so...
added comment with explanation.
function old new delta
put_prompt 52 110 +58
read_key 601 607 +6
lineedit_read_key 201 207 +6
win_changed 108 104 -4
read_line_input 4824 4809 -15
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/2 up/down: 70/-19) Total: 51 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-26 15:23:32 +01:00
Tomas Heinrich
d31a8793eb
lsmod: unicode-aware column formatting
...
Signed-off-by: Tomas Heinrich <heinrich.tomas@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-26 12:35:30 +01:00
Denys Vlasenko
0f91b3d0dc
read_key: ignore unknown keys (do not return them to caller byte-by-byte)
...
function old new delta
read_key 568 601 +33
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-26 12:09:06 +01:00
Denys Vlasenko
180f585ac3
read_key: remove handling for ctrl-up/down, we don't use that. -12 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-26 00:59:59 +01:00
Denys Vlasenko
9d71fc6381
read_key: document more weird key sequences
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-26 00:50:52 +01:00
Denys Vlasenko
a17eeb847e
lineedit: handle Ctrl-arrows
...
function old new delta
read_line_input 4629 4824 +195
BB_isalnum - 39 +39
BB_ispunct - 35 +35
BB_isspace - 31 +31
static.esccmds 69 93 +24
vi_word_motion 165 162 -3
vi_back_motion 204 198 -6
vi_end_motion 172 163 -9
bb_iswspace 28 - -28
bb_iswpunct 32 - -32
bb_iswalnum 37 - -37
------------------------------------------------------------------------------
(add/remove: 3/3 grow/shrink: 5/8 up/down: 334/-129) Total: 205 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-25 23:50:56 +01:00
Denys Vlasenko
77c066ea5c
modutils: add FEATURE_INSMOD_TRY_MMAP option
...
function old new delta
try_to_mmap_module - 121 +121
bb_init_module_24 4514 4578 +64
bb_init_module 119 173 +54
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 2/0 up/down: 239/0) Total: 239 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-25 04:35:22 +01:00
Bernhard Reutner-Fischer
30f3c1d5fd
tar: add support for -o as synonym to --no-same-owner. +5 bytes
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-25 02:13:32 +02:00
Denys Vlasenko
f645037ffb
tar: handle "tar fx TARFILE" etc
...
function old new delta
tar_main 702 751 +49
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-25 01:32:45 +02:00
Denys Vlasenko
b87d972817
patch: add Rob's version for reference, it may handle fuzz and offsets
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-25 00:39:51 +02:00
Denys Vlasenko
6f2ebae843
patch: add another test (currently fails)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-25 00:35:04 +02:00
Denys Vlasenko
0939f2ebd2
fix up potential printf's with unsafe format strings
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-24 17:47:56 +02:00
Denys Vlasenko
4b8b37f981
mkfs_ext2: fix compile error
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-24 17:20:29 +02:00
Denys Vlasenko
17c838bc6d
patch: add longopts, --dry-run, add one more test
...
function old new delta
patch_main 1110 1214 +104
static.patch_longopts - 47 +47
packed_usage 26738 26761 +23
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 2/0 up/down: 174/0) Total: 174 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-24 17:11:55 +02:00
Vladimir Dronnikov
1dacfbb1f4
ftpget/put: make 3rd parameter optional
...
function old new delta
packed_usage 26728 26738 +10
ftpgetput_main 343 351 +8
Signed-off-by: Vladimir Dronnikov <dronnikov@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-23 23:34:43 +02:00
Denys Vlasenko
337a31b074
ifplugd: fix compile error
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-23 18:31:02 +02:00
Denys Vlasenko
50be9631e1
date: line up tabs in usage text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-23 16:25:20 +02:00
Denys Vlasenko
d93fc61725
ls: fix "ls | cat" to not show "total NNN" header
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-23 16:22:25 +02:00
Bernhard Reutner-Fischer
ca22cda709
date: handle long options
...
RFC2822 obsoletes RFC822; Silently accept --rfc-822 and return rfc2822
output for compatibility.
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2009-10-23 16:07:37 +02:00
Denys Vlasenko
9d57a8073a
libbb.h: tidy it up a bit. no code changes (verified)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-23 14:24:44 +02:00
Denys Vlasenko
11c12c4720
fix isalnum and isxdigit. Unfortunately, +285 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-23 13:57:24 +02:00
Denys Vlasenko
a7a1fd02cb
eliminate all remaining users of ctype. ~600 byte large tables are gone.
...
function old new delta
skip_thing 253 278 +25
find_range 497 508 +11
ask 220 228 +8
...
setlocalenv 90 82 -8
bb_strtoll 84 76 -8
bb_strtol 85 77 -8
is_well_formed_var_name 75 66 -9
expand 651 641 -10
endofname 104 92 -12
buffer_fill_and_print 196 179 -17
isxdigit 18 - -18
httpd_main 729 711 -18
__GI_isxdigit 18 - -18
ispunct 20 - -20
isalnum 20 - -20
__GI_ispunct 20 - -20
__GI_isalnum 20 - -20
toupper 29 - -29
tolower 29 - -29
__GI_toupper 29 - -29
__GI_tolower 29 - -29
do_cmd 4454 4330 -124
------------------------------------------------------------------------------
(add/remove: 0/12 grow/shrink: 14/29 up/down: 81/-549) Total: -468 bytes
text data bss dec hex filename
823051 445 7548 831044 cae44 busybox_old
821970 441 7548 829959 caa07 busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-23 13:05:03 +02:00
Denys Vlasenko
56b3eec162
small optimizations of toupper/tolower
...
function old new delta
in_ib 191 172 -19
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-23 13:03:59 +02:00
Denys Vlasenko
f2cbb03a37
*: optimize most of isXXXXX() macros
...
text data bss dec hex filename
824164 453 6812 831429 cafc5 busybox_old
823730 453 6812 830995 cae13 busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-23 03:16:08 +02:00
Denys Vlasenko
7b4cd6f7b0
libbb: smaller isdigit. -95 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-23 02:22:03 +02:00
Denys Vlasenko
c1947f18f5
build failure fix and some cosmetics
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-23 01:30:26 +02:00
Denys Vlasenko
c0dab37d0a
*: remove last function calls to isspace
...
function old new delta
xstrtoul_range_sfx 232 231 -1
xstrtoull_range_sfx 295 293 -2
trim 82 80 -2
trim_trailing_spaces_and_print 57 52 -5
isspace 18 - -18
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-22 22:28:08 +02:00
Denys Vlasenko
6935ec9c0b
networking/interface.c: tiny code shrink
...
function old new delta
if_readlist_proc 634 631 -3
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-22 19:42:26 +02:00
Denys Vlasenko
f125b6d341
*: use better isspace implementation
...
function old new delta
asciifile 90 106 +16
expand 653 658 +5
skip_non_whitespace 21 25 +4
bb_iswspace 25 28 +3
readcmd 1071 1072 +1
find_range 496 497 +1
singlemount 772 771 -1
ifupdown_main 2134 2133 -1
edir 370 369 -1
volume_id_set_label_string 82 79 -3
trim 85 82 -3
rtc_adjtime_is_utc 141 138 -3
rewrite 1039 1036 -3
do_cmd 4465 4462 -3
bb_dump_add 358 355 -3
awk_split 553 550 -3
fbset_main 1273 1268 -5
skip_thing 259 253 -6
get_trimmed_slice 46 39 -7
bb__parsegrent 245 238 -7
parse_file_cmd 116 108 -8
check 1532 1523 -9
bb__pgsreader 198 188 -10
dot_skip_over_ws 61 46 -15
colon 3032 3012 -20
if_readlist_proc 655 634 -21
normalize 193 165 -28
add_cmd 1162 1133 -29
get_key 528 476 -52
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 6/23 up/down: 30/-241) Total: -211 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-22 19:41:45 +02:00
Denys Vlasenko
46e364dbfe
mkfs_ext2: code shrink
...
function old new delta
mkfs_ext2_main 2505 2492 -13
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-22 12:41:44 +02:00
Denys Vlasenko
09bbb2892d
mkfs_ext2: fix a bug where we don't fully respect -n on files
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-22 12:27:10 +02:00
Denys Vlasenko
c1ab01b61b
mke2fs: mention -F in usage text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-22 12:24:48 +02:00
Denys Vlasenko
838e07aace
trimming help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-22 12:15:33 +02:00
Denys Vlasenko
149a32a19b
mkfs_ext2: use compatible inode sizes; add -I <inodesize>. (by Vladimir)
...
function old new delta
mkfs_ext2_main 2385 2495 +110
packed_usage 26400 26447 +47
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/0 up/down: 157/0) Total: 157 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-22 12:12:17 +02:00
Denys Vlasenko
3945bc1534
tune2fs: new applet by Vladimir. Only supports -L LABEL
...
function old new delta
tune2fs_main - 165 +165
packed_usage 26692 26702 +10
applet_names 2148 2156 +8
applet_main 1264 1268 +4
applet_nameofs 632 634 +2
applet_install_loc 158 159 +1
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 5/0 up/down: 190/0) Total: 190 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-22 00:55:55 +02:00
Denys Vlasenko
481ca9604d
mkfs_ext2: 1.41.9 compat
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-22 00:38:52 +02:00
Denys Vlasenko
a46317b6f3
df: trivial 64-bit fix
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-21 23:28:20 +02:00
Denys Vlasenko
010fb00708
mkfs_ext2: make sure we extend the image to requested size
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-21 23:23:55 +02:00
Denys Vlasenko
eaba48467c
cosmetics in mkfs_ext2.txt
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-21 14:25:21 +02:00
Denys Vlasenko
1d6e4473fa
mkfs_ext2_test: disable incomtatible behavior in standard mke2fs
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-21 14:14:51 +02:00
Denys Vlasenko
ece01ee8ca
mkfs_ext2: e2fsck 1.14.4 compat
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-21 14:01:25 +02:00
Denys Vlasenko
2ee2724a41
mkfs_ext2: explain 256-byte inodes. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-21 11:34:32 +02:00
Denys Vlasenko
2288d86a54
mkfs_ext2: explain why 0.5G+ images are a bit different
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-21 00:34:27 +02:00
Denys Vlasenko
5e1dbd5bc3
mkfs_ext2: another update by Vladimir
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-20 22:12:11 +02:00
Bernhard Reutner-Fischer
e707a3000b
add B921600
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2009-10-20 19:53:24 +02:00
Denys Vlasenko
a4e4a65484
clarify in comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-20 17:49:50 +02:00
Denys Vlasenko
c708a6d000
mkfs_ext2: further work on small images
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-20 17:47:23 +02:00
Denys Vlasenko
82d6433abe
mkfs_ext2: fixes for small image generation. images up to ~8M are ok now
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-20 17:04:55 +02:00
Denys Vlasenko
cbeb452824
mkfs_ext2: fix 60k image creation
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-20 16:21:29 +02:00
Denys Vlasenko
95484c8706
mkfs_ext2: further work by Vladimir
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-20 13:34:16 +02:00
Denys Vlasenko
69f2e2cdeb
mkfs_ext2: small tweak
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-20 00:16:24 +02:00
Denys Vlasenko
05647b5551
mkfs_ext2: compat fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-20 00:06:03 +02:00
Denys Vlasenko
3ef4f77620
hush: fix exec builtin in a better way (+ "glob in exec" bug fixed)
...
function old new delta
execvp_or_die - 50 +50
static.pseudo_null_str 3 - -3
builtin_exec 83 57 -26
pseudo_exec_argv 200 163 -37
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 0/2 up/down: 50/-66) Total: -16 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-19 23:09:06 +02:00
Denys Vlasenko
a8df4c09fb
menuconfig tweaks
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-19 18:56:26 +02:00
Denys Vlasenko
aaa22d2493
hush: use configured max line length, not BUFSIZE from libc
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-19 16:34:39 +02:00
Denys Vlasenko
36df04837a
randomconfig fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-19 16:07:28 +02:00
Denys Vlasenko
3b3ccdc5bc
hush: remove superfluous assignment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-19 13:24:07 +02:00
Denys Vlasenko
8bc7f2c5aa
hush: make it compile again :/
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-19 13:20:52 +02:00
Denys Vlasenko
c0836530f1
hush: cosmetics. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-19 13:13:06 +02:00
Denys Vlasenko
e8405619fa
mkfs_ext2: more work. added test script
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-18 20:57:52 +02:00
Denys Vlasenko
f9d3a91a89
mkfs_ext2: fixes for huge filesystems
...
function old new delta
mkfs_ext2_main 2145 2617 +472
div_roundup 15 35 +20
packed_usage 26792 26776 -16
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-18 18:05:27 +02:00
Denys Vlasenko
77da1cae94
mkfs_ext2: make it able to create images larger than 4G
...
function old new delta
mkfs_ext2_main 1904 2145 +241
has_super 29 23 -6
PUT 52 40 -12
packed_usage 26807 26792 -15
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/3 up/down: 241/-33) Total: 208 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-18 16:29:30 +02:00
Denys Vlasenko
f37eb3999b
hush: fix handling of empty arguments
...
function old new delta
builtin_exec 25 83 +58
parse_stream 2242 2261 +19
run_pipe 1782 1787 +5
static.pseudo_null_str - 3 +3
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 3/0 up/down: 85/0) Total: 85 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-18 11:46:35 +02:00
Denys Vlasenko
7673e7fda4
mkfs_ext2: shrink
...
function old new delta
mkfs_ext2_main 1924 1904 -20
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-18 09:57:39 +02:00
Mike Frysinger
28736c36ca
hush: handle empty execs
...
Sometimes variable expansions yield empty strings, and if they happen to
be a command someone wants to run like `$foo`, then hush currently
segfaults. So handle `` and $().
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2009-10-18 01:15:36 -04:00
Denys Vlasenko
69d9edc6f8
mkfs_ext2: code shrink
...
function old new delta
mkfs_ext2_main 1933 1924 -9
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-17 23:47:36 +02:00
Denys Vlasenko
6a8cfdca99
trim usage text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-17 23:41:15 +02:00
Denys Vlasenko
9c2708ebf9
mkfs_ext2: code shrink
...
function old new delta
div_roundup - 15 +15
mkfs_ext2_main 1980 1933 -47
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-17 23:27:29 +02:00
Denys Vlasenko
7d8ab846d1
mkfs_ext2: fix a buglet introduced in last commit
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-17 23:23:45 +02:00
Denys Vlasenko
4588775182
mkfs_ext2: shrink
...
function old new delta
has_super 28 25 -3
mkfs_ext2_main 2011 1980 -31
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-17 23:13:31 +02:00
Vladimir Dronnikov
823b4e6f26
mkfs_ext2: new applet by Vladimir
...
function old new delta
mkfs_ext2_main - 2011 +2011
static.supers - 184 +184
allocate - 118 +118
packed_usage 26692 26791 +99
PUT - 52 +52
has_super - 28 +28
applet_names 2143 2160 +17
applet_main 1264 1272 +8
applet_nameofs 632 636 +4
applet_install_loc 158 159 +1
------------------------------------------------------------------------------
(add/remove: 5/0 grow/shrink: 5/0 up/down: 2522/0) Total: 2522 bytes
Signed-off-by: Vladimir Dronnikov <dronnikov@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-17 21:38:19 +02:00
Vladimir Dronnikov
8dbe9bba8e
sendmail: fix for long headers (by Vladimir)
...
Signed-off-by: Vladimir Dronnikov <dronnikov@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-17 03:35:10 +02:00
Denys Vlasenko
2ace0ad2d7
ifup: make /etc/network/interfaces parser tolerant to trailing spaces
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-16 23:56:10 +02:00
Vladimir Dronnikov
944d275175
sendmail: update by Vladimir
...
function old new delta
sendmail_main 897 939 +42
rcptto 17 40 +23
Signed-off-by: Vladimir Dronnikov <dronnikov@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-15 23:50:48 +02:00
Denys Vlasenko
f5a295d5a8
util-linux/mkswap.c: fix warning
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-15 22:43:07 +02:00
Mike Frysinger
4ebc76c8a2
hush: add a printf builtin
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2009-10-15 03:33:31 -04:00
Mike Frysinger
ccb1959aa5
hush: unify handling of builtin applets
...
Saves about 10 bytes for each additional builtin applet.
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2009-10-15 03:33:31 -04:00
Vladimir Dronnikov
db67a20595
move generate_uuid from mkswap to libbb
...
Signed-off-by: Vladimir Dronnikov <dronnikov@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-15 09:24:25 +02:00
Denys Vlasenko
7eabffafa5
dd: use correct multiplication factor and simplify code
...
function old new delta
dd_output_status 332 364 +32
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-14 17:43:41 +02:00
Denys Vlasenko
04bb6b6a5a
lineedit: do not hardcode ctrl-C and ctrl-D, use termios fields.
...
Unexpected code shrink is probably a gcc glitch:
function old new delta
read_line_input 4771 4629 -142
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-14 12:53:04 +02:00
Denys Vlasenko
a68bd4b2ae
comment anc Config.in changes, no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-14 11:52:01 +02:00
Denys Vlasenko
a1a3972f28
dd: add a comment, no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-14 00:49:06 +02:00
Gabor Heja
4e5b07b0fe
dd: speed measurement. optional.
...
function old new delta
dd_output_status 68 289 +221
dd_main 1463 1482 +19
write_and_stats 64 75 +11
packed_usage 26529 26526 -3
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/1 up/down: 251/-3) Total: 248 bytes
Signed-off-by: Gabor Heja <kakaopor@kakaopor.hu >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-14 00:29:28 +02:00
Denys Vlasenko
d31575a3ae
libiproute/*: code shrink
...
function old new delta
ll_addr_a2n 181 178 -3
rtnl_rtntype_a2n 198 194 -4
ipaddr_modify 1309 1305 -4
print_addrinfo 1303 1298 -5
do_iplink 1137 1132 -5
print_route 1609 1603 -6
parse_args 1440 1434 -6
iproute_list_or_flush 1261 1254 -7
rtnl_rttable_a2n 39 31 -8
rtnl_rtscope_a2n 39 31 -8
rtnl_rtrealm_a2n 39 31 -8
rtnl_rtprot_a2n 39 31 -8
rtnl_dsfield_a2n 39 31 -8
ll_type_n2a 78 70 -8
get_rt_realms 115 107 -8
print_tunnel 656 647 -9
rtnl_rttable_n2a 63 53 -10
rtnl_rtscope_n2a 63 53 -10
rtnl_rtrealm_n2a 63 53 -10
rtnl_rtntype_n2a 128 118 -10
rtnl_dsfield_n2a 71 61 -10
print_linkinfo 815 805 -10
ipaddr_list_or_flush 1246 1235 -11
iproute_modify 1048 1036 -12
iprule_modify 866 851 -15
print_rule 765 738 -27
ll_addr_n2a 182 150 -32
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/27 up/down: 0/-262) Total: -262 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-13 17:58:24 +02:00
Denys Vlasenko
94466b8b8c
libiproute: code and data shrink
...
function old new delta
rtnl_a2n - 126 +126
ll_remember_index 233 263 +30
find_by_index 26 36 +10
rtnl_rtprot_initialize 66 70 +4
static.unit_chars 7 9 +2
rtnl_rttable_initialize 73 75 +2
rtnl_rtscope_initialize 83 85 +2
rtnl_rtrealm_initialize 43 45 +2
rtnl_rtdsfield_initialize 43 45 +2
rtnl_rttable_n2a 62 63 +1
rtnl_rtscope_n2a 62 63 +1
rtnl_rtrealm_n2a 62 63 +1
rtnl_dsfield_n2a 70 71 +1
ll_init_map 36 33 -3
make_human_readable_str 262 258 -4
static.fmt 97 92 -5
static.fmt_tenths 10 - -10
static.str 21 4 -17
static.res 20 - -20
static.cache 24 4 -20
idxmap 64 4 -60
rtnl_rttable_a2n 154 39 -115
rtnl_rtscope_a2n 159 39 -120
rtnl_rtrealm_a2n 159 39 -120
rtnl_rtprot_a2n 159 39 -120
rtnl_dsfield_a2n 162 39 -123
------------------------------------------------------------------------------
(add/remove: 1/2 grow/shrink: 12/11 up/down: 184/-737) Total: -553 bytes
text data bss dec hex filename
820376 445 7668 828489 ca449 busybox_old
819950 445 7548 827943 ca227 busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-13 16:27:11 +02:00
Denys Vlasenko
0bf44d00a4
libbb/human_readable.c: shrink; and reduce bss usage
...
also, move smart_ulltoaN there and comment usage locations
function old new delta
static.unit_chars 7 9 +2
utoa_to_buf 110 108 -2
make_human_readable_str 262 258 -4
fallbackSort 1723 1719 -4
static.fmt 97 92 -5
static.fmt_tenths 10 - -10
static.str 21 4 -17
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 1/5 up/down: 2/-42) Total: -40 bytes
text data bss dec hex filename
820981 453 6932 828366 ca3ce busybox_old
820968 453 6916 828337 ca3b1 busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-13 01:25:09 +02:00
Denys Vlasenko
76ace254e1
ash,hush: fix $RANDOM in children being repeated
...
function old new delta
next_random 46 68 +22
forkshell 248 263 +15
expand_vars_to_list 2118 2131 +13
run_pipe 1775 1782 +7
popstring 134 140 +6
builtin_umask 123 121 -2
ash_main 1356 1336 -20
get_local_var_value 125 104 -21
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 5/3 up/down: 63/-43) Total: 20 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-12 15:25:01 +02:00
Denys Vlasenko
3c39e702d0
include/xatonum.h: make it survive -Wconversion
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-11 22:29:15 +02:00
Denys Vlasenko
4db34d6e27
libbb: revert the change where spawn reports exec failure
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-11 04:09:37 +02:00
Denys Vlasenko
8c66a9d07a
hush: shrink $RANDOM support
...
function old new delta
get_local_var_value 104 125 +21
hush_main 1024 983 -41
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-11 02:15:49 +02:00
Denys Vlasenko
e7670ff81d
ash: use bbox wrappers for malloc etc instead of homegrown ones
...
function old new delta
popstring 134 140 +6
ckmalloc 9 - -9
ckstrdup 22 - -22
ckrealloc 24 - -24
ckzalloc 28 - -28
------------------------------------------------------------------------------
(add/remove: 0/4 grow/shrink: 1/0 up/down: 6/-83) Total: -77 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-11 00:45:25 +02:00
Denys Vlasenko
0e5e4eaf7b
ash: trivial shrink by using smaller int
...
function old new delta
copynode 197 196 -1
calcsize 127 126 -1
nodesize 54 27 -27
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-29) Total: -29 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-11 00:36:20 +02:00
Denys Vlasenko
f26e98f4e9
udhcpc: more help text tweaking
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-10 16:14:41 +02:00
Denys Vlasenko
84e1caf51c
udhcpc: better wording in help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-10 16:13:17 +02:00
Denys Vlasenko
e3c6e19015
laguage and copyright date corrections, no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-09 23:35:30 +02:00
Denys Vlasenko
3dc4a3e4dc
ash: make one testsuite entry more robust
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-09 23:08:28 +02:00
Denys Vlasenko
69d1f45c16
shell/Config.in: forgotten chunk with CONFIG_HUSH_RANDOM_SUPPORT
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-09 22:11:30 +02:00
Denys Vlasenko
cbe0b7fb59
hush: fix cut-n-paste error in last commit
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-09 22:00:58 +02:00
Denys Vlasenko
20b3d144e9
hush: add support for $RANDOM. If on:
...
function old new delta
hush_main 983 1024 +41
get_local_var_value 72 104 +32
block_signals 155 161 +6
reset_traps_to_defaults 211 214 +3
builtin_wait 268 271 +3
pseudo_exec_argv 198 200 +2
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 6/0 up/down: 87/0) Total: 87 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-09 20:59:39 +02:00
Denys Vlasenko
3ea2e82dc7
ash: factor out $RANDOM support
...
function old new delta
next_random - 46 +46
ash_main 1361 1356 -5
change_random 132 97 -35
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/2 up/down: 46/-40) Total: 6 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-09 20:59:04 +02:00
Denys Vlasenko
a05b2b856b
ps: show longer COMMAND
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-09 19:47:01 +02:00
Denys Vlasenko
dea478855f
hush: support $PPID
...
function old new delta
get_local_var_value 33 72 +39
hush_main 951 983 +32
block_signals 152 155 +3
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 74/0) Total: 74 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-09 15:40:49 +02:00
Denys Vlasenko
3f11f35124
libbb: make spawn() print "can't execute '%s'" on execv error
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-08 23:28:29 +02:00
Denys Vlasenko
219757fee9
udhcpc: fix bug 629: use bcast receive when we perform rebinding
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-08 23:05:46 +02:00
Denys Vlasenko
6332151641
modprobe-small: added comment about multiple alias matches
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-08 22:54:41 +02:00
Denys Vlasenko
784d095877
rtcwake: remove a static variable
...
function old new delta
rtc_time 4 - -4
rtcwake_main 479 474 -5
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 0/1 up/down: 0/-9) Total: -9 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-08 16:04:50 +02:00
Denys Vlasenko
ef5bc2c39c
*: three more NOINLINEs
...
function old new delta
lzo_decompress - 525 +525
lzo_compress - 470 +470
showmode - 330 +330
fbset_main 1698 1273 -425
do_lzo_compress 799 323 -476
do_lzo_decompress 1167 526 -641
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 0/3 up/down: 1325/-1542) Total: -217 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-08 14:54:18 +02:00
Denys Vlasenko
adf922ec28
*: a few more NOINLINEs
...
function old new delta
print_linkinfo - 815 +815
do_msg - 783 +783
INET_setroute - 757 +757
varvalue - 746 +746
do_sem - 637 +637
inflate_codes - 617 +617
INET6_setroute - 491 +491
edir - 370 +370
sync_cursor - 298 +298
update_utmp - 246 +246
searchLines - 165 +165
setup_alarm - 144 +144
may_wakeup - 101 +101
getNum 566 371 -195
refresh 1166 848 -318
rtcwake_main 809 479 -330
getty_main 2396 1921 -475
chpst_main 1373 746 -627
inflate_unzip_internal 1335 567 -768
evalvar 1384 612 -772
ipaddr_list_or_flush 2160 1246 -914
route_main 1585 245 -1340
ipcs_main 2523 1049 -1474
------------------------------------------------------------------------------
(add/remove: 13/0 grow/shrink: 0/10 up/down: 6170/-7213) Total: -1043 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-08 14:35:37 +02:00
Denys Vlasenko
a7bb3c1396
*: code shrink via NOINLINE
...
function old new delta
expand_vars_to_list - 2118 +2118
lzo1x_optimize - 1429 +1429
run_pipe 358 1775 +1417
arith_apply - 1335 +1335
mainQSort3 - 1198 +1198
logdir_open - 1163 +1163
rewrite - 1039 +1039
dump_identity - 987 +987
do_shm - 884 +884
cpio_o - 863 +863
cpio_main 1450 560 -890
ipcs_main 3442 2523 -919
bb_dump_dump 2611 1488 -1123
process_dev 4572 3405 -1167
logdirs_reopen 1308 86 -1222
arith 2084 707 -1377
mainSort 2622 1202 -1420
do_lzo_compress 2276 799 -1477
run_list 2491 943 -1548
expand_variables 2280 135 -2145
------------------------------------------------------------------------------
(add/remove: 9/0 grow/shrink: 1/10 up/down: 12433/-13288) Total: -855 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-08 12:28:08 +02:00
Denys Vlasenko
57ce977a97
ash: compile breakage fix
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-08 04:19:14 +02:00
Denys Vlasenko
d5fddcd57f
cp: revert a recent buggy change, and add a comment why it's wrong
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-08 01:32:44 +02:00
Denys Vlasenko
d427689eee
Fix english in build system
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-06 22:13:37 +02:00
Denys Vlasenko
7bb346f23c
*: use {i,u}toa() where appropriate
...
function old new delta
startservice 377 363 -14
setari_u 54 40 -14
ash_main 1375 1361 -14
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-42) Total: -42 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-06 22:09:50 +02:00
Denys Vlasenko
8d680b5114
Trim help text a bit more
...
function old new delta
packed_usage 26625 26529 -96
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-06 21:23:02 +02:00
Denys Vlasenko
07697859ae
Trim usage text a bit
...
function old new delta
packed_usage 26646 26625 -21
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-06 21:11:37 +02:00
Denys Vlasenko
dcd27abcc4
unpackers: check errors from close() too
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-05 03:03:07 +02:00
Vladimir Dronnikov
be168b1197
wget: fix for code 302; mount: support -o union
...
Signed-off-by: Vladimir Dronnikov <dronnikov@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-05 02:18:01 +02:00
Cristian Ionescu-Idbohrn
301f5ecb8d
ash: error out on ${#1#}, ${#$11}, ${#11#}
...
Signed-off-by: Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-05 02:07:23 +02:00
Denys Vlasenko
4d8873f997
ash: document where we accept invalid syntax. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-04 03:14:41 +02:00
Vladimir Dronnikov
b618dba103
sendmail: accept -i too, not only -oi
...
Signed-off-by: Vladimir Dronnikov <dronnikov@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-04 01:34:54 +02:00
Denys Vlasenko
76622dbd16
ash: code shrink
...
function old new delta
ulimitcmd 489 415 -74
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-04 01:14:19 +02:00
Denys Vlasenko
fd2dc53ba4
remove useless (unsigned >= 0) comparison
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-04 01:13:35 +02:00
Denys Vlasenko
1d63f046d0
ls: forgotten chunk from prev commit
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-03 11:45:07 +02:00
Denys Vlasenko
cae409c6aa
ls: code shrink
...
function old new delta
count_dirs 81 86 +5
dnalloc 13 17 +4
showfiles 372 370 -2
ls_main 833 825 -8
showdirs 505 489 -16
splitdnarray 189 120 -69
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/4 up/down: 9/-95) Total: -86 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-03 11:43:48 +02:00
Denys Vlasenko
ffd4774ad2
ls: fix for !FEATURE_LS_RECURSIVE (forgotten free); cleanups
...
no code changes if FEATURE_LS_RECURSIVE
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-03 11:42:33 +02:00
Denys Vlasenko
0683d4d633
ls: add standards doc; record author of "total NNNN" code
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-03 10:53:36 +02:00
Denys Vlasenko
76c7d9500a
ls: code shrink
...
function old new delta
list_single - 1006 +1006
print_name 211 209 -2
dnalloc 15 13 -2
splitdnarray 192 189 -3
ls_main 848 833 -15
showdirs 564 505 -59
showfiles 1460 372 -1088
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/6 up/down: 1006/-1169) Total: -163 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-03 01:15:47 +02:00
Denys Vlasenko
87c150c7cc
ls: add "total NNNN" header if DESKTOP. By Johannes Stezenbach (js AT sig21.net)
...
function old new delta
showdirs 492 564 +72
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-03 01:14:15 +02:00
Denys Vlasenko
26ff18b424
Fixes to usage text; updated busybox.spec
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-02 11:37:17 +02:00
Denys Vlasenko
88a37689a7
cp: FEATURE_CP_LONG_OPTIONS depends on LONG_OPTS
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-02 01:29:25 +02:00
Denys Vlasenko
f228913fed
ok, last fix wasn't correct... this one is better
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-02 01:21:31 +02:00
Denys Vlasenko
963f52fc59
fix a typo in prev commit
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-02 01:13:45 +02:00
Denys Vlasenko
acabf8fcb8
Update documentation generator so that it sucks less
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-10-02 01:10:32 +02:00
Denys Vlasenko
3a7034c27b
typo fix in a comment in a testcase. oh well...
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-30 02:48:59 +02:00
Denys Vlasenko
1b34d4f0b1
find: add zeroing of G.xxx; ftpd - remove extraneous zeroing of G.xxx
...
Brought "G trick" to the same shape in a few more places.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-30 02:39:57 +02:00
Denys Vlasenko
c34c033c42
ash,hush: share string
...
function old new delta
optschanged 133 139 +6
hush_main 997 982 -15
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 6/-15) Total: -9 bytes
text data bss dec hexfilename
823160 445 7668 831273 caf29busybox_old
823102 445 7668 831215 caeefbusybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-29 12:25:30 +02:00
Denys Vlasenko
8f7a6d294f
find: -follow should not error out on dandling links
...
function old new delta
recursive_action 425 465 +40
find_main 436 465 +29
test_main 247 253 +6
need_print 1 - -1
doCommands 2523 2521 -2
compare_keys 737 735 -2
xdev_dev 4 - -4
xdev_count 4 - -4
recurse_flags 4 - -4
mkfs_vfat_main 1609 1605 -4
actions 4 - -4
fileAction 588 583 -5
------------------------------------------------------------------------------
(add/remove: 0/5 grow/shrink: 3/4 up/down: 75/-30) Total: 45 bytes
text data bss dec hex filename
822711 450 7684 830845 cad7d busybox_old
822773 445 7668 830886 cada6 busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-29 11:07:04 +02:00
Denys Vlasenko
2f3f09c287
libbb/lineedit: restore ^D handling for unicode
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-29 00:00:12 +02:00
Denys Vlasenko
db9c57eed1
libbb/lineedit: fix the case when we configured history to have 0 lines
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-27 02:48:53 +02:00
Denys Vlasenko
e74aaf9385
ash,hush: make trap output short signal names, without SIG prefix
...
function old new delta
evalvar 1373 1371 -2
builtin_trap 457 441 -16
trapcmd 260 236 -24
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-27 02:05:45 +02:00
Denys Vlasenko
6c750f1518
find: do not recurse into directories with depth == --maxdepth
...
This may avoid many, many unnecessary stat() calls
function old new delta
fileAction 718 758 +40
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-27 01:51:47 +02:00
Denys Vlasenko
48f116198d
cp: add support for --parents and long option synonyms of short opts
...
By Ian Wienand (ianw AT vmware.com)
function old new delta
cp_main 257 369 +112
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/0 up/down: 112/0) Total: 112 bytes
text data bss dec hex filename
823000 458 6948 830406 cabc6 busybox_old
823283 458 6948 830689 cace1 busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-26 14:31:04 +02:00
Denys Vlasenko
67f7186403
hush: do not reset to default "" traps in subshell
...
function old new delta
reset_traps_to_defaults 164 211 +47
builtin_umask 123 121 -2
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-25 14:21:06 +02:00
Denys Vlasenko
4ea0ca8193
hush: document a TODO. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-25 12:58:37 +02:00
Denys Vlasenko
8f88d85e34
ash: better comment. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-25 12:12:53 +02:00
Denys Vlasenko
726e1a04f7
ash: even smaller trap code
...
function old new delta
evalvar 1371 1373 +2
trapcmd 347 260 -87
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-25 02:58:20 +02:00
Denys Vlasenko
e305c28285
ash: slightly better (more correct) code for "trap hack"
...
function old new delta
changepath 194 195 +1
evalvar 1373 1371 -2
forkchild 602 590 -12
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-25 02:12:27 +02:00
Denys Vlasenko
c297ea97e2
login: log PAM errors to syslog, not stderr
...
By Ian Wienand (ianw AT vmware.com)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-25 01:50:45 +02:00
Denys Vlasenko
21d87d495a
ash: better handling of EXIT trap in trap hack
...
function old new delta
forkchild - 602 +602
trapcmd 255 347 +92
ash_main 1362 1375 +13
evalvar 1371 1373 +2
popstring 140 134 -6
forkshell 835 248 -587
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 3/2 up/down: 709/-593) Total: 116 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-25 00:06:51 +02:00
Denys Vlasenko
0800e3af75
ash: do not let EXIT trap to fire in trap
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-24 03:09:26 +02:00
Denys Vlasenko
7188540257
hush: small speed optimization. +10 bytes.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-24 01:44:13 +02:00
Denys Vlasenko
2f7894b1bb
ash,hush: fix trap reporting: s/SIGEXIT/EXIT/
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-24 01:43:21 +02:00
Denys Vlasenko
ecb179b6d7
ifenslave: fix for 2.4 kernels compile
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-23 23:47:52 +02:00
Denys Vlasenko
606291beab
*: more portability fixes by Dan Fandrich
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-23 23:15:43 +02:00
Denys Vlasenko
1f27ab0d4b
*: optimize code size in strtoul calls
...
function old new delta
bb_parse_mode 433 431 -2
rtnl_rtntype_a2n 202 198 -4
ParseField 511 498 -13
bb_init_module_24 4730 4675 -55
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/4 up/down: 0/-74) Total: -74 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-23 17:17:53 +02:00
Denys Vlasenko
8d338173a4
tar: accept spaces at the end of header fields (compat)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-23 17:16:37 +02:00
Denys Vlasenko
844f990926
ash: fix trap
...
function old new delta
forkshell 738 810 +72
popstring 134 140 +6
parse_command 1460 1463 +3
evalvar 1373 1371 -2
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/1 up/down: 81/-2) Total: 79 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-23 03:25:52 +02:00
Denys Vlasenko
91836baf85
hush: fix trap
...
function old new delta
expand_variables 2217 2280 +63
static.argv - 8 +8
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-23 01:46:19 +02:00
Denys Vlasenko
af3fd14e4d
hdparm,fdisk: reinstate BLKGETSIZE64 #defines. No code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-22 23:16:39 +02:00
Denys Vlasenko
ed4ff0e8cb
pidof/killall: fix bug 625 (kernel threads get stale "binary name")
...
function old new delta
procps_scan 1622 1642 +20
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-22 23:06:07 +02:00
Denys Vlasenko
200d522fb8
df: unicode-aware column formatting. By Tomas Heinrich (theinric AT redhat.com)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-22 15:34:28 +02:00
Denys Vlasenko
4ff1ce0639
ps: fix compile breakage
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-22 11:21:48 +02:00
Denys Vlasenko
11c8238d1b
sed: fix bug 623 (SEGV on some sed commands)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-22 03:02:21 +02:00
Denys Vlasenko
d75295c80b
ps: conditionally enable -T on non-DESKTOP build too
...
function old new delta
ps_main 253 274 +21
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-21 23:58:43 +02:00
Denys Vlasenko
69b1cef921
hush: better wording in comments. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-21 10:21:44 +02:00
Denys Vlasenko
bc3e9479c2
awk: fix typo in prev commit
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-21 04:16:00 +02:00
Leonid Lisovskiy
46a0be5304
awk: implement mktime
...
function old new delta
exec_builtin - 1466 +1466
do_mktime - 116 +116
tokenlist 441 448 +7
tokeninfo 396 400 +4
evaluate 5395 3755 -1640
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 2/1 up/down: 1593/-1640) Total: -47 bytes
Signed-off-by: Leonid Lisovskiy <lly.dev@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-21 04:08:08 +02:00
Denys Vlasenko
d8dd25a2a7
diff: debug macros; one trivial size optimization
...
function old new delta
diffreg 1781 1815 +34
isqrt 64 - -64
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 1/0 up/down: 34/-64) Total: -30 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-21 01:23:19 +02:00
Denys Vlasenko
3e02050314
diff: fix bug 613 (diff -ub segfaults)
...
function old new delta
dump_unified_vec 435 457 +22
diff_main 855 860 +5
diffreg 1786 1781 -5
do_diff 428 416 -12
change 325 283 -42
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/3 up/down: 27/-59) Total: -32 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-21 01:22:18 +02:00
Denys Vlasenko
532609e36e
ps: document -T option
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-20 20:29:25 +02:00
Natanael Copa
9aff29997e
swaponoff: add uuid/label support. By Natanael Copa
...
function old new delta
swap_enable_disable 130 150 +20
resolve_mount_spec 76 96 +20
mount_main 1152 1154 +2
findfs_main 125 80 -45
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/1 up/down: 42/-45) Total: -3 bytes
Signed-off-by: Natanael Copa <natanael.copa@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-20 04:28:22 +02:00
Denys Vlasenko
2bf6634ef4
ar: fix long filenames handling (bug 611)
...
function old new delta
get_header_ar 493 528 +35
read_num - 25 +25
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-20 01:28:27 +02:00
Denys Vlasenko
b410d4ada7
ps,top: add an option to show threads. +260 bytes of code
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-19 22:29:42 +02:00
Denys Vlasenko
f00cfdfae5
dd: fix conv=noerror w/o sync to not write out zeroed blocks
...
function old new delta
dd_main 1480 1463 -17
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-18 20:49:36 +02:00
Bernhard Reutner-Fischer
ae0045e31a
we could need ssd -d (fancy)
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2009-09-17 18:57:59 +02:00
Denys Vlasenko
885583ebe3
tar: do chown, not lchown to restore mode (compat)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-17 03:02:57 +02:00
Denys Vlasenko
d57d62686d
tar: fix --numeric-owner, --no-same-owner, --no-same-permissions bits
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-17 02:43:14 +02:00
Denys Vlasenko
1166d7b136
ash: fix bug 585 (>"$VAR_WITH_UNICODE_CHARS" problem)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-16 16:20:31 +02:00
Denys Vlasenko
b0d63383dd
ash: preparatory cleanup. The only real changes are (unsigned char) casts
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-16 16:18:32 +02:00
Denys Vlasenko
795633463a
add a testcase for reopened bug 585 (not fixed yet)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-16 14:04:07 +02:00
Denys Vlasenko
ddf7850f2b
fdisk: add a warning and truncate disks with >= 2^32 sectors
...
As a result, for sectors we can use uint32_t instead of long long,
and on 32 bits it has drastic effects:
function old new delta
get_geometry 619 646 +27
set_sun_partition 148 150 +2
get_partition 134 135 +1
xbsd_write_bootstrap 382 381 -1
xbsd_readlabel 247 246 -1
bsd_select 1674 1672 -2
sun_other_endian 4 1 -3
scsi_disk 4 1 -3
floppy 4 1 -3
fdisk_main 3735 3732 -3
read_maybe_empty 43 37 -6
create_doslabel 111 104 -7
read_line 97 88 -9
add_logical 117 107 -10
write_table 599 588 -11
new_partition 1684 1670 -14
list_disk_geometry 229 215 -14
wrong_p_order 130 110 -20
xselect 3142 3114 -28
seek_sector 71 40 -31
get_boot 1576 1533 -43
fill_bounds 174 128 -46
delete_partition 603 551 -52
list_table 1401 1232 -169
set_partition 459 286 -173
verify 1840 1495 -345
add_partition 2486 1270 -1216
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/24 up/down: 30/-2210) Total: -2180 bytes
text data bss dec hex filename
848812 460 7116 856388 d1144 busybox_old
846620 460 7108 854188 d08ac busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-16 03:03:13 +02:00
Denys Vlasenko
8dc0e1929e
use PACKED macro insted of open-coding GCC-ism
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-16 00:58:11 +02:00
Denys Vlasenko
f2c184be83
unlzma: fixed speedup/shrink by Pascal Bellard (pascal.bellard AT ads-lu.com)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-15 23:40:08 +02:00
Denys Vlasenko
ba98603264
mount: do not execute "mount.(null)" :)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-15 23:00:09 +02:00
Denys Vlasenko
772c2db971
httpd_ssi.c: make it a bit less broken
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-13 17:38:15 +02:00
Denys Vlasenko
aa7da73880
add USE_PORTABLE_CODE option and use it in find applet
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-13 14:57:24 +02:00
Denys Vlasenko
7649bd024c
fsck: more clever (->smaller) handling of parameters
...
function old new delta
fsck_device 213 449 +236
new_args - 46 +46
fsck_main 1870 1815 -55
execute 289 - -289
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 1/1 up/down: 282/-344) Total: -62 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-13 05:52:46 +02:00
Denys Vlasenko
6683745bf7
fsck: remove a few statics
...
function old new delta
kill_all_if_got_signal - 60 +60
notitle 1 - -1
doall 1 - -1
cancel_requested 1 - -1
num_devices 4 - -4
devices 4 - -4
signal_cancel 8 - -8
fsck_main 1893 1870 -23
kill_all_if_cancel_requested 60 - -60
------------------------------------------------------------------------------
(add/remove: 1/7 grow/shrink: 0/1 up/down: 60/-102) Total: -42 bytes
text data bss dec hex filename
824205 458 6956 831619 cb083 busybox_old
824174 458 6948 831580 cb05c busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-13 05:52:03 +02:00
Denys Vlasenko
c541a8955d
test: use index_in_strings
...
function old new delta
ops_texts - 124 +124
ops_table - 80 +80
display_process_list 1447 1448 +1
binop 525 523 -2
static.no_op 6 2 -4
check_operator 71 63 -8
ops 240 - -240
------------------------------------------------------------------------------
(add/remove: 2/1 grow/shrink: 1/3 up/down: 205/-254) Total: -49 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-12 22:41:57 +02:00
Denys Vlasenko
fe73798135
top: remove GCCisms
...
function old new delta
display_process_list 1447 1448 +1
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-12 15:11:50 +02:00
Denys Vlasenko
27726cb6aa
hush: make memleak debugging more robust
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-12 14:48:33 +02:00
Denys Vlasenko
873273da94
hush: code shrink by Dan Fandrich (dan AT coneharvesters.com)
...
function old new delta
find_function_slot - 47 +47
run_list 2508 2491 -17
find_function 40 8 -32
builtin_unset 227 165 -62
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-12 14:47:41 +02:00
Denys Vlasenko
3a0f6f2328
fix read_cmdline API and a small buglet where "[comm]" may be too narrow
...
function old new delta
func_args 25 26 +1
read_cmdline 119 114 -5
display_process_list 1462 1447 -15
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/2 up/down: 1/-20) Total: -19 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-12 00:15:34 +02:00
Denys Vlasenko
ae357bd713
top, ps: do not output trailing spaces
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-11 23:29:45 +02:00
Denys Vlasenko
0052882200
top: add -m ("memory") option
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-11 23:26:42 +02:00
Denys Vlasenko
56573cb4f7
networking/httpd_ssi.c: expand comments
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-10 21:27:39 +02:00
Denys Vlasenko
db4a67628d
networking/httpd_ssi.c: new example CGI handler
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-10 21:24:45 +02:00
Denys Vlasenko
33d8d08f78
httpd: shrink mime type matching code (suggested by Bernhard)
...
function old new delta
static.suffixTable 100 231 +131
send_file_and_exit 625 658 +33
handle_incoming_and_exit 2749 2745 -4
send_cgi_and_exit 936 901 -35
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/2 up/down: 164/-39) Total: 125 bytes
text data bss dec hex filename
824631 458 6956 832045 cb22d busybox_old
824550 458 6956 831964 cb1dc busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-10 01:46:02 +02:00
Denys Vlasenko
d069e5398d
a few more GCC-isms removed
...
text data bss dec hex filename
824641 458 6956 832055 cb237 busybox_old
824631 458 6956 832045 cb22d busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-09 23:12:10 +02:00
Denys Vlasenko
e66ccfaa2c
remove some garbage from http POST upload example
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-09 22:33:30 +02:00
Denys Vlasenko
108b8c5367
httpd: fix bug 601 "I:index.php does not run interpreter on DIR/ url"
...
function old new delta
parse_conf 1462 1485 +23
index_html - 11 +11
handle_incoming_and_exit 2762 2749 -13
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/1 up/down: 34/-13) Total: 21 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-08 21:17:49 +02:00
Bernhard Reutner-Fischer
db57fc22a6
Add ENABLE_FEATURE_MDEV_RENAME_REGEXP examples to mdev documentation
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2009-09-08 14:16:00 +02:00
Denys Vlasenko
62298ab13d
TODO: add unicode list
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-07 13:19:17 +02:00
Denys Vlasenko
40c221334f
Merge branch 'master' of git+ssh://vda@busybox.net/var/lib/git/busybox
2009-09-07 12:44:56 +02:00
Denys Vlasenko
0c6914e50c
modprobe-small: make string buffer code robust; fix help text
...
together with previous one-liner:
function old new delta
append 70 99 +29
parse_module 295 311 +16
copy_stringbuf 35 36 +1
packed_usage 26545 26540 -5
appendc 27 - -27
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 3/1 up/down: 46/-32) Total: 14 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-07 02:38:26 +02:00
Denys Vlasenko
f9c814b0ee
modprobe-small: hopefully fix bug 591 (incorrect detection of alias with '-')
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-07 02:37:19 +02:00
Denys Vlasenko
386bc9fda3
unzip: more compat if DESKTOP=y
...
function old new delta
DESKTOP off:
unzip_main 1648 1629 -19
DESKTOP=y:
unzip_main 1939 2197 +258
Without this, midnight commander can't display .zip files
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-06 16:52:50 +02:00
Denys Vlasenko
3de3f57c6d
Revert "unlzma: speedup, by Pascal Bellard (pascal.bellard AT ads-lu.com)"
...
https://bugs.busybox.net/show_bug.cgi?id=599
This reverts commit 9ac3dc764a .
2009-09-06 15:06:25 +02:00
Denys Vlasenko
043b1e5d99
more C standard compat fixes from Dan Fandrich
...
function old new delta
docolon 207 204 -3
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-06 12:47:55 +02:00
Denys Vlasenko
5370bfb123
documentation and typo fixes. By Dan Fandrich (dan AT coneharvesters.com)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-06 02:58:59 +02:00
Denys Vlasenko
90a9904e9e
remove some GNUisms. by Dan Fandrich (dan AT coneharvesters.com)
...
function old new delta
logdirs_reopen 1310 1308 -2
read_line_input 4757 4753 -4
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-6) Total: -6 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-06 02:36:23 +02:00
Denys Vlasenko
1f7c167b23
experimentally add mallopt tweaks for reduced memory consumption
...
function old new delta
mallopt - 126 +126
main 91 117 +26
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/0 up/down: 152/0) Total: 152 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-06 02:12:28 +02:00
Denys Vlasenko
6db4784d27
hush: export PWD
...
function old new delta
set_pwd_var - 36 +36
hush_main 941 951 +10
evalvar 1365 1363 -2
ash_main 1364 1362 -2
builtin_cd 75 72 -3
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/3 up/down: 46/-7) Total: 39 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-05 20:15:17 +02:00
Denys Vlasenko
2cc709139e
inetd: comment tweak. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-04 03:48:40 +02:00
Denys Vlasenko
ed1667e8ee
telnetd: add -w ("inetd wait") option. Can be configured off.
...
gcc fils to fully optimize it out when it's off:
function old new delta
telnetd_main 1527 1548 +21
packed_usage 26596 26587 -9
but nevertheless it's a useful (and so far single) example
how to write "inetd wait" tcp service.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-04 02:21:13 +02:00
Denys Vlasenko
cfc216345e
inetd: be more careful with syslog socket; other small fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-04 02:19:46 +02:00
Denys Vlasenko
4b624d0770
small commit tweak in parse_datestr, no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-09-02 11:49:25 +02:00
Denys Vlasenko
44f174e61b
uniq: shave off whole 10 bytes off, oh my
...
text data bss dec hex filename
823673 458 6956 831087 cae6f busybox_old
823663 458 6956 831077 cae65 busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-31 05:15:21 +02:00
Denys Vlasenko
a00329ca8e
ash: better comment. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-30 20:05:10 +02:00
Denys Vlasenko
630dde1cef
code shrink in help text code
...
text data bss dec hex filename
823690 458 6956 831104 cae80 busybox_old
823673 458 6956 831087 cae6f busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-30 19:57:49 +02:00
Denys Vlasenko
1249dbb2c7
uniq: code shrink
...
function old new delta
xgetoptfile_uniq_s 44 51 +7
uniq_main 389 368 -21
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 7/-21) Total: -14 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-30 19:35:06 +02:00
Denys Vlasenko
a9c9bf5055
uniq: plug memory leak (patch from OpenWRT project)
...
function old new delta
uniq_main 371 389 +18
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-30 19:34:09 +02:00
Denys Vlasenko
0aec9ff6b8
uniq: rename some variables. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-30 19:32:45 +02:00
Denys Vlasenko
7218af9f83
ash: revent one place where number() doesn't work
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-30 17:07:30 +02:00
Denys Vlasenko
22cbfbd996
ethr-wake: can use ether_hostton on uclibc >= 0.9.30
...
By Leonid Lisovskiy (lly.dev AT gmail.com)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-30 16:23:29 +02:00
Denys Vlasenko
b9762922d1
libunarchive: fix a bug where mode and time is no longer restored
...
Introduced by me in 1.15.x. Found by Rob Landley.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-30 01:18:34 +02:00
Denys Vlasenko
ecc2a2e015
ash: deal with some TODOs (mostly trivial)
...
function old new delta
msg_illnum - 19 +19
evalvar 1365 1364 -1
illnum 19 - -19
subevalvar 1182 1158 -24
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 0/2 up/down: 19/-44) Total: -25 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-29 22:53:41 +02:00
Denys Vlasenko
9f2e82ad2e
ash: add testsuite for bug 585
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-29 20:37:09 +02:00
Denys Vlasenko
c8334a40c9
ash: fix handling of Unicode chars in redirects. Fixes bug 585
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-29 20:24:12 +02:00
Denys Vlasenko
b6c8434896
ash: trivial simplifications and optimizations
...
function old new delta
rmescapes - 256 +256
memtodest 94 103 +9
evalvar 1363 1365 +2
_rmescapes 256 - -256
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 2/0 up/down: 267/-256) Total: 11 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-29 20:23:20 +02:00
Denys Vlasenko
e6c483ec30
rpm2cpio: code shrink
...
function old new delta
skip_header 94 92 -2
rpm2cpio_main 177 174 -3
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-5) Total: -5 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-28 21:15:24 +02:00
Denys Vlasenko
0a130d510d
rpm2cpio: handle unseekable input correctly
...
function old new delta
data_skip 14 20 +6
seek_by_jump 67 72 +5
data_align 81 84 +3
seek_by_read 20 19 -1
skip_header 99 94 -5
rpm2cpio_main 183 177 -6
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/3 up/down: 14/-12) Total: 2 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-28 21:09:51 +02:00
Pascal Bellard
7f2149489f
rpm2cpio: handle bz2 too; code shrink
...
function old new delta
skip_header 142 99 -43
rpm2cpio_main 321 183 -138
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-181) Total: -181 bytes
Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-28 06:20:33 +02:00
Denys Vlasenko
b34759251d
update copyright year
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-27 21:13:30 +02:00
Denys Vlasenko
33d7b72d33
more help text tweaking
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-27 20:47:35 +02:00
Denys Vlasenko
691161a7a7
trim help texts a bit
...
function old new delta
packed_usage 26709 26634 -75
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-27 20:38:17 +02:00
Denys Vlasenko
ca899efd6c
remove a few extra newlines in help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-27 03:20:45 +02:00
Bernhard Reutner-Fischer
bcb163d8f8
use .git as EXTRAVERSION
...
... and not .svn
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2009-08-24 16:20:52 +02:00
Denys Vlasenko
a12af2d9f3
ash: make "jobs -l" more similar to bash. By Earl Chew. Fixes bug 481
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-23 22:10:04 +02:00
Denys Vlasenko
bd73f1d85a
Start 1.16.x cycle
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-23 21:30:38 +02:00
Denys Vlasenko
e7aa0d9eca
Releasing 1.15.0
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-23 02:33:20 +02:00
Matthijs van de Water
0d5866624d
wget: strip trailing whitespace from e.g. "Content-length: 120 "
...
function old new delta
wget_main 2395 2427 +32
Signed-off-by: Matthijs van de Water <matthijs.van.de.water@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-22 20:19:48 +02:00
Denys Vlasenko
0da1c0a732
beep: optimize
...
function old new delta
beep_main 394 276 -118
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-22 18:00:39 +02:00
Denys Vlasenko
dc3d8939d4
preliminary work for gcc 4.4.0
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-22 02:34:10 +02:00
Denys Vlasenko
f2a8d5db9a
fix duplicate FAST_FUNC FAST_FUNC
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-21 17:40:36 +02:00
Bernhard Reutner-Fischer
00ea82e846
add config knob for default freq and length
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2009-08-21 14:40:29 +02:00
Bernhard Reutner-Fischer
45de0746b3
add simple beep applet
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2009-08-21 13:18:31 +02:00
Denys Vlasenko
e10db56aa3
update defconfig
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-21 00:16:01 +02:00
Denys Vlasenko
1cc4b13917
msh: aliased to hush
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-21 00:05:51 +02:00
Denys Vlasenko
263cff9a2f
do not store 1st two bytes of compressed help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-20 23:34:01 +02:00
Denys Vlasenko
d7874ed1d4
patch: support -N. By Olivier Duclos (olivier.duclos AT gmail.com)
...
function old new delta
packed_usage 26646 26656 +10
patch_main 1101 1110 +9
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-20 23:33:19 +02:00
Denys Vlasenko
0793491ff8
hush: enable "lash is deprecated, please use hush instead" message
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-20 03:40:04 +02:00
Denys Vlasenko
a67a9627d0
hush: do not process options after non-option args
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-20 03:38:58 +02:00
Denys Vlasenko
ffc39202aa
ash: fix bug 571 (jobs %string misbehaving)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-17 02:12:20 +02:00
Denys Vlasenko
f210cff601
sed: fix " echo /usr/lib | sed 's,\(^/\|\)[^/][^/]*,..,g' " bug
...
function old new delta
process_files 2102 2091 -11
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-17 01:35:04 +02:00
Denys Vlasenko
16d1e3c26f
pgrep: match argv[0] too, not only comm; fix a bug in argv sanitization
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-14 22:33:10 +02:00
Denys Vlasenko
5da42fce51
modprobe: treat tabs in modules.dep as delimiters too. closes bug 567
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-14 02:10:54 +02:00
Denys Vlasenko
007c6fc677
typo fix in comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-14 01:36:28 +02:00
Justin Maggard
aa369e0f0d
udhcpc: if got IP successfully, disable -n for future renewals
...
Signed-off-by: Justin Maggard <jmaggard10@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-13 01:26:17 +02:00
Matthew Stoltenberg
4803db53b8
volname: new applet
...
function old new delta
volname_main - 90 +90
packed_usage 26373 26387 +14
applet_names 2078 2086 +8
applet_main 1232 1236 +4
applet_nameofs 616 618 +2
applet_install_loc 154 155 +1
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 5/0 up/down: 119/0) Total: 119 bytes
Signed-off-by: Matthew Stoltenberg <d3matt@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-13 00:59:32 +02:00
Denys Vlasenko
dbfa45b3b2
hust test: complain if busybox binary can't be found
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-12 21:24:29 +02:00
Denys Vlasenko
cbfe6ad4c6
hush: fix \<newline> handling on NOMMU
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-12 19:47:44 +02:00
Denys Vlasenko
19679784c0
hush tests: remove the requirement that .config is in ../..
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-12 14:53:44 +02:00
Denys Vlasenko
09516066d4
hush: do not use ps -o in leak_argv1; do not hardcode path in negate
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-12 14:21:30 +02:00
Denys Vlasenko
79b021d738
tail: read only a portion of a file if it's huge. closes bug 551
...
function old new delta
tail_main 1494 1526 +32
tail_read 125 129 +4
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-10 03:16:18 +02:00
Denys Vlasenko
e531759ef1
fdisk: add handling of avr32. closes bug 555
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-10 00:08:35 +02:00
Denys Vlasenko
a43df64eec
tail: fix "tail +N file_shorter_than_N"
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-09 22:06:56 +02:00
Denys Vlasenko
0568b6e45a
randomconfig fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-08 03:20:12 +02:00
Denys Vlasenko
334fcc8fd4
dd: conv=noerror should skip read errors using lseek (bug 539)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-05 23:16:27 +02:00
Denys Vlasenko
eecbb547d2
correct mode of testsuite/rx.tests
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-03 10:36:58 +02:00
Tomoya Adachi
63416cc57d
nc: fix nc -ll; report vfork errors; make select loop faster
...
function old new delta
nc_main 933 946 +13
Signed-off-by: Tomoya Adachi <adachi@il.is .s.u-tokyo.ac.jp>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-03 02:59:22 +02:00
Denys Vlasenko
dc9495df03
rx: strip padding from last block. closes bug 501.
...
function old new delta
rx_main 876 974 +98
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-02 19:45:31 +02:00
Earl Chew
80a3418b8c
runsv: run ./finish with parameters (runit compat)
...
function old new delta
startservice 288 377 +89
runsv_main 1763 1783 +20
Signed-off-by: Earl Chew <earl_chew@agilent.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-02 02:23:27 +02:00
Denys Vlasenko
aebb742939
svlogd: fix bug 521: use line buffering if any filtering is done
...
function old new delta
logdirs_reopen 1296 1310 +14
svlogd_main 1439 1444 +5
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-02 00:55:49 +02:00
Denys Vlasenko
e2944af43e
libbb: prevent resursion on malloc failure
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-08-01 06:53:03 +02:00
Denys Vlasenko
6d48d3ee2a
rename _BB_SUID_ALWAYS and NEVER into REQUIRE and DROP. No code changes.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-30 12:57:19 +02:00
Denys Vlasenko
be116490d6
ping6: make it setuid just like ping
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-30 12:42:16 +02:00
Alexander Shishkin
e766f62132
make find_pid_by_name look at /proc/PID/exe too
...
function old new delta
procps_scan 1642 1709 +67
find_pid_by_name 193 223 +30
free_procps_scan 29 37 +8
Signed-off-by: Alexander Shishkin <virtuoso@slind.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-29 01:35:13 +02:00
Denys Vlasenko
09449630fb
grep: fix -E + {range}; fix -o not printing all matches (bug 489)
...
two different bugs, one with EXTRA_COMPAT, other without.
function old new delta
grep_file 1132 1129 -3
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-29 01:20:09 +02:00
Alexander Shishkin
97af2ff8ca
halt/reboot/poweroff: add a CONFIG_xxx to act SysV compatibly
...
Signed-off-by: Alexander Shishkin <virtuoso@slind.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-27 02:55:02 +02:00
Denys Vlasenko
d1090c91cc
dpkg: delete postrm script after it's run, not before. closes bug 449
...
function old new delta
purge_package 220 252 +32
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-25 11:52:32 +02:00
Stefani Seibold
f3b56b428f
unzip: try lseek before resorting to reading
...
function old new delta
unzip_skip 16 43 +27
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-25 02:02:22 +02:00
Denys Vlasenko
bac9f03ed8
tftp: add comment, no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-25 01:56:23 +02:00
Atsushi Nemoto
330d898e99
tftp[d]: fix block# handling on upload with non-default blocksize
...
function old new delta
tftp_protocol 1590 1618 +28
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-24 22:34:47 +02:00
Denys Vlasenko
0e1b626b9a
man: use man.config, not only man.conf (man version 1.6f compat)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-24 02:28:12 +02:00
Denys Vlasenko
7cee00e8ae
ash: further fixes to debug machinery (closes bug 485)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-24 01:08:03 +02:00
Denys Vlasenko
e56f22ac60
ash: make "jobs" work even in subshells
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-24 00:16:59 +02:00
Denys Vlasenko
86e83ec487
ash: fix debug machinery a bit
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-23 22:07:07 +02:00
Denys Vlasenko
7cc5a50465
chmod 755 some files in examples/*
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-23 21:30:30 +02:00
Eric Lammerts
3b5a664440
tail: implement -F
...
function old new delta
tail_main 1190 1494 +304
Signed-off-by: Eric Lammerts <busybox@lists.lammerts.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-22 00:31:27 +02:00
Denys Vlasenko
997538ab58
scriptreplay: show help text if run with no arguments
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-19 23:11:45 +02:00
Denys Vlasenko
d6513cff17
tcpsvd,udpsvd: fix uid/gid printing when run with -u
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-19 23:07:13 +02:00
Denys Vlasenko
3ed181b7ac
init: make comment more understandable. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-19 14:29:18 +02:00
Denys Vlasenko
4abfc2642d
udhcpc: small simplification
...
function old new delta
udhcpc_main 2401 2398 -3
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-19 04:35:16 +02:00
Denys Vlasenko
753a3ce73e
typo
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-19 04:27:10 +02:00
Denys Vlasenko
7d6a791ef6
udhcpc: add/edit comments, no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-19 04:24:23 +02:00
Denys Vlasenko
13ca4b12e2
udhcpc: simplify manual renew (make it more similar to automatic one)
...
function old new delta
udhcp_run_script 669 673 +4
udhcpc_main 2414 2401 -13
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 4/-13) Total: -9 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-19 04:07:21 +02:00
Denys Vlasenko
252ccba948
remove msh_function.patch. msh is deprecated
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-19 01:09:42 +02:00
Denys Vlasenko
e414896f38
silly whitespace fix
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-18 17:26:25 +02:00
Denys Vlasenko
c1fc3d3000
fix mount test false positive
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-18 17:22:03 +02:00
Denys Vlasenko
875f782b12
minor tweaks in testsuite
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-18 16:34:01 +02:00
Denys Vlasenko
6ae6426a74
fix mountpoint test to not prevemt mkfs_xxx from making image in any file
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-18 16:22:26 +02:00
Denys Vlasenko
b71ce023e9
add SKIP_KNOWN_BUGS and SKIP_INTERNET_TESTS to testsuite
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-18 15:19:41 +02:00
Denys Vlasenko
f8e6b6eccb
fix taskset testsuite
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-18 13:08:49 +02:00
Denys Vlasenko
941990f0c5
correct date testsuite to use compatible format
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-18 04:54:21 +02:00
Denys Vlasenko
38dd8aa657
touch: implement -t TIME (needed for testsuite)
...
This changes date -d TIME format a bit, makes it more compatible
function old new delta
parse_datestr 391 618 +227
touch_main 360 361 +1
packed_usage 26624 26615 -9
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-18 04:49:20 +02:00
Denys Vlasenko
7aca89a7a3
touch: implement -d --date (our own testsuite needs that)
...
function old new delta
static.uname_longopts - 137 +137
touch_main 231 360 +129
static.touch_longopts - 32 +32
validate_tm_time - 28 +28
packed_usage 26616 26624 +8
date_main 687 686 -1
static.longopts 162 - -162
------------------------------------------------------------------------------
(add/remove: 3/1 grow/shrink: 2/1 up/down: 334/-163) Total: 171 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-18 03:41:29 +02:00
Denys Vlasenko
73b71f381d
date: factor out date parsing (in preparation for touch -d)
...
function old new delta
parse_datestr - 391 +391
sha512_process_block128 1283 1310 +27
buffer_fill_and_print 179 196 +17
nexpr 826 840 +14
unzip_main 1931 1939 +8
popstring 134 140 +6
qrealloc 33 36 +3
builtin_umask 121 123 +2
evalvar 1365 1363 -2
changepath 194 192 -2
do_compress 1698 1688 -10
hwclock_main 340 329 -11
cmdputs 414 402 -12
identify 4343 4329 -14
date_main 1186 687 -499
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 7/7 up/down: 468/-550) Total: -82 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-18 03:40:35 +02:00
Denys Vlasenko
d23f64eba7
test: fix "test !" and "test abc -a !". closes bug 465
...
function old new delta
nexpr 826 840 +14
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-17 00:59:26 +02:00
Denys Vlasenko
fff73641e4
widen "Unicode in environment" check
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-16 16:09:25 +02:00
Denys Vlasenko
9531f7dad7
another small lineedit fix
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-16 14:33:16 +02:00
Denys Vlasenko
5c2e81bb67
fix a thinko in lineedit completion code
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-16 14:14:34 +02:00
Denys Vlasenko
01ba1676af
lineedit+unicode: code shrink
...
function old new delta
wcrtomb_internal 161 83 -78
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-16 03:06:22 +02:00
Denys Vlasenko
f6106e6041
comment fixes, no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-16 02:27:04 +02:00
Denys Vlasenko
53fd1bf223
lineedit: code shrink
...
function old new delta
collapse_pos - 77 +77
read_line_input 4755 4757 +2
add_quote_for_spec_chars 75 71 -4
find_match 1283 892 -391
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-16 02:19:39 +02:00
Denys Vlasenko
9038d6f8f5
remove trailing whitespace
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-15 20:02:19 +02:00
Denys Vlasenko
7dd0ce4953
randomconfig fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-15 18:27:47 +02:00
Denys Vlasenko
0ad438b12a
comment fix, no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-15 02:14:15 +02:00
Denys Vlasenko
3b405437b8
busybox --install [-s] [DIR]: allow a parameter - destination DIR
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-15 00:35:34 +02:00
Denys Vlasenko
b3ba9e28e8
sv: fix "sv o SRV; ...; sv d SRV" (bug 461) + code shrink
...
function old new delta
status 120 118 -2
control 159 126 -33
sv_main 1222 1183 -39
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-15 00:24:08 +02:00
Denys Vlasenko
e46601d8a3
runsv: rename field in a struct to not collide with other name
...
no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-15 00:21:49 +02:00
Denys Vlasenko
8e96b5b531
sed: simpler fix for recent GNU compat stuff (by Rob Landley)
...
function old new delta
process_files 2120 2102 -18
Signed-off-by: Rob Landley <rob@landley.net >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-14 01:02:57 +02:00
Denys Vlasenko
2907e79749
add comment about /etc/gshadow, no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-13 01:27:47 +02:00
Denys Vlasenko
189f74d0f2
passwd + /etc/shadow: chage "change time" field too
...
function old new delta
update_passwd 1171 1270 +99
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-13 01:15:30 +02:00
Denys Vlasenko
044b18083b
lineedit+unicode: make TAB completion work again
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-12 02:50:35 +02:00
Denys Vlasenko
1302892a14
vi: small code shrink
...
function old new delta
vi_word_motion 185 165 -20
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-12 00:51:15 +02:00
Denys Vlasenko
fda8f57360
tweaking Unicode support
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-11 22:26:48 +02:00
Denys Vlasenko
42a8fd0db0
added simplified Unicode support for non-locale-enabled builds
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-11 21:36:13 +02:00
Denys Vlasenko
883cea4751
ash: fixes in debug printouts
...
Signed-off-by: Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-11 15:31:59 +02:00
Denys Vlasenko
2e6d4ef695
lineedit: implement Unicode-aware line editing (optional)
...
When off:
function old new delta
input_delete 133 140 +7
vi_word_motion 236 240 +4
vi_Back_motion 89 92 +3
vi_end_motion 223 225 +2
cmdedit_set_out_char 74 76 +2
vi_back_motion 198 199 +1
vi_Word_motion 87 88 +1
vi_End_motion 92 86 -6
read_line_input 6293 6270 -23
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 7/2 up/down: 20/-29) Total: -9 bytes
When on:
lineedit_read_key 146 272 +126
BB_PUTCHAR - 94 +94
read_line_input 6293 6351 +58
save_string - 43 +43
wcstombs - 38 +38
mbstowcs - 38 +38
save_command_ps_at_cur_history 65 93 +28
input_delete 133 148 +15
vi_Back_motion 89 90 +1
vi_Word_motion 87 86 -1
cmdedit_set_out_char 74 73 -1
vi_End_motion 92 84 -8
vi_back_motion 198 187 -11
vi_word_motion 236 206 -30
vi_end_motion 223 184 -39
------------------------------------------------------------------------------
(add/remove: 4/0 grow/shrink: 5/6 up/down: 441/-90) Total: 351 bytes
There is one TODO and maybe some bugs :)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-10 18:40:49 +02:00
Denys Vlasenko
860d2bbdda
fix fallout from BSD patches
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-10 18:37:06 +02:00
Denys Vlasenko
874201fee5
dmesg: try to detect buffer size
...
function old new delta
dmesg_main 214 246 +32
Signed-off-by: Randy Robertson <rmrobert@vmware.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-10 14:14:14 +02:00
Denys Vlasenko
ae68f1133f
sed: deal with peculiar behavior of '2d;2,1p' in GNU sed
...
function old new delta
process_files 2173 2120 -53
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-10 11:55:20 +02:00
Mike Frysinger
52a426744e
restore shadow.h independence
...
Commit ee5dce3365 made busybox require shadow.h from the toolchain even
if the config opted for the internal busybox implementation. This makes
building with toolchains that lack shadow support impossible. Since the
merge only saved us from duplicating a simple structure (whose ABI isn't
going to ever change), restore the logic for complete busybox shadow
independence by reverting that previous commit slightly.
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2009-07-09 01:35:29 -04:00
Mike Frysinger
4c8a721b45
depmod.pl: recurse through module dependencies
...
The previous fix up loaded dependencies two deep, but really that was an
incomplete fix as we need to load dependencies all the way down. So change
the code to run recursively through all dependencies.
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2009-07-09 00:28:48 -04:00
Denys Vlasenko
b773f715d6
tar: handle 256-base encoding in mtime
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-08 18:58:09 +02:00
Denys Vlasenko
da49f58524
move libc related stuff out of platform.h
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-08 02:58:38 +02:00
Denys Vlasenko
95cc814dbd
udhcpd: fix a bug in add_lease where it was reading at [-1]
...
It is not correct when we read lease file!
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-07 14:59:30 +02:00
Denys Vlasenko
a51543a3a4
reformime: small code and style fixes. no material changes in behavior.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-07 07:52:34 +02:00
Denys Vlasenko
7e7e08fb09
tweak MD5 config text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-06 23:24:20 +02:00
Denys Vlasenko
57dc5345e2
pgrep/pkill: support -s and -P options
...
function old new delta
pgrep_main 510 580 +70
packed_usage 26575 26616 +41
act 234 236 +2
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 113/0) Total: 113 bytes
Signed-off-by: Rob Landley <rob@landley.net >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-06 00:00:12 +02:00
Denys Vlasenko
666e1d3978
tweak sendmail and makemime help texts
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-05 21:46:37 +02:00
Denys Vlasenko
fe4ef36bcd
libbb/sha: #undef macro names before #defining them.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-05 20:34:38 +02:00
Denys Vlasenko
6f58be0748
cp: make "non-POSIX" cp a bit more consistent
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-05 13:24:17 +02:00
Denys Vlasenko
2d7b5bfa9b
cp: by popular demand, make it POSIX compliant (but less safe)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-05 12:49:29 +02:00
Denys Vlasenko
09e63bb81f
df: fix "df /"
...
also, clean up mount checks in mkfs/fsck.
function old new delta
find_mount_point 243 261 +18
sha1_process_block64 497 510 +13
find_main 436 444 +8
display_speed 85 90 +5
df_main 795 793 -2
parse_command 1463 1460 -3
static.ignored_mounts 8 - -8
mkfs_minix_main 2962 2937 -25
fsck_minix_main 3065 2970 -95
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 4/4 up/down: 44/-133) Total: -89 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-05 04:50:36 +02:00
Denys Vlasenko
9b1b62adc4
Patches to enable FreeBSD build
...
platform.h: fix wrong check for endianness, fix lchown
aliasing to chown on uclibc.
Code seems to not be affected in my testing.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-05 03:34:12 +02:00
Denys Vlasenko
b22bbfffec
fix dependencies of FEATURE_GETOPT_LONG
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-04 16:50:43 +02:00
Denys Vlasenko
fca70a8cce
ps: conditionally support additional -o FIELDs
...
function old new delta
procps_scan 1409 1642 +233
out_spec 220 300 +80
func_ruser - 36 +36
func_rgroup - 36 +36
func_group 13 49 +36
func_nice - 29 +29
buffer_fill_and_print 179 196 +17
send_tree 355 360 +5
mkfs_vfat_main 1604 1609 +5
display_speed 85 90 +5
scriptreplay_main 194 197 +3
find_out_spec 55 58 +3
changepath 192 195 +3
sha1_process_block64 497 484 -13
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 10/1 up/down: 491/-13) Total: 478 bytes
Signed-off-by: David Krakov <krakov@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-03 22:16:17 +02:00
Denys Vlasenko
c5d07fba29
svlogd: do not overrun read buffer (fixes bug 439)
...
function old new delta
rotate 513 534 +21
logdirs_reopen 1291 1296 +5
processorstart 409 385 -24
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-03 18:31:23 +02:00
Denys Vlasenko
97ef65483a
udhcpc: support option 0x79 (static routes) (part of bug 341)
...
function old new delta
xmalloc_optname_optval - 583 +583
dhcp_option_strings 258 266 +8
dhcp_options 70 72 +2
len_of_option_as_string 11 12 +1
dhcp_option_lengths 11 12 +1
udhcp_run_script 1187 669 -518
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 4/1 up/down: 595/-518) Total: 77 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-03 18:14:03 +02:00
Denys Vlasenko
7895b91743
udhcp: dname_dec may return NULL, account for that case
...
Other random cleanips included...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-03 16:59:59 +02:00
Denys Vlasenko
c3b6f2c7e1
Merge branch 'master' of git+ssh://vda@busybox.net/var/lib/git/busybox
2009-07-03 16:59:37 +02:00
Denys Vlasenko
ae05dd42ca
ls: make --color more compatible with coreutils
...
function old new delta
static.color_str - 34 +34
static.ls_longopts - 9 +9
ls_color_opt 9 - -9
ls_main 865 843 -22
------------------------------------------------------------------------------
(add/remove: 2/1 grow/shrink: 0/1 up/down: 43/-31) Total: 12 bytes
text data bss dec hex filename
820145 450 7692 828287 ca37f busybox_old
820144 450 7692 828286 ca37e busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-03 12:22:19 +02:00
Bernhard Reutner-Fischer
86e992da84
test commit
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2009-07-03 01:19:49 +02:00
Bernhard Reutner-Fischer
ec97062b20
test commit
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2009-07-03 01:15:54 +02:00
Bernhard Reutner-Fischer
ca4f8d54e5
test commit
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2009-07-03 01:06:15 +02:00
Denys Vlasenko
5508363fd0
ls: fix --color handling. Closes bug 435.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-02 14:25:51 +02:00
Denys Vlasenko
5478aaf5b8
mdev: be more permissive on errors (dont die): mdev -s users want that
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-02 13:17:10 +02:00
Denys Vlasenko
90db359972
mdev: set $MDEV correctly for renamed nodes
...
function old new delta
make_device 1467 1502 +35
build_alias 78 - -78
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-02 13:07:11 +02:00
Denys Vlasenko
cf4e503875
Added kernel patch for /proc/self/exe to examples
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-02 12:04:50 +02:00
Denys Vlasenko
7d5ddf14a3
wget: remove IPv6 scope id in Host: field (apache compat)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-30 20:36:27 +02:00
Denys Vlasenko
8bca3e20b9
sed: fix handling of 1d;1,3p and 1d;1,REGEXp
...
function old new delta
process_files 2084 2173 +89
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-30 19:19:37 +02:00
Denys Vlasenko
f1fab09242
wget: fix redirection from HTTP to FTP server
...
while at it, sanitize redirection in general; add printout
of every redirection hop; make sure we won't print any non-ASCII
garbage from remote server in error meesages.
function old new delta
sanitize_string - 14 +14
parse_url 294 301 +7
gethdr 190 197 +7
wget_main 2326 2331 +5
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 3/0 up/down: 33/0) Total: 33 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-28 03:33:57 +02:00
Denys Vlasenko
ab0c8d7b35
wget: remove strange *&var construct.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-28 01:23:35 +02:00
Denys Vlasenko
7f43280420
wget: code shrink by splitting main() into easier-to-optimize functions
...
function old new delta
retrieve_file_data - 356 +356
wget_main 2793 2326 -467
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/1 up/down: 356/-467) Total: -111 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-28 01:02:24 +02:00
Denys Vlasenko
1881ba48b1
Update a comment, no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-27 22:09:28 +02:00
Denys Vlasenko
4fc5ec56f9
device matching against UUIDs: do not try floppies
...
function old new delta
uuidcache_check_device 255 292 +37
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-27 21:58:25 +02:00
Denys Vlasenko
eb1cda2f2d
trylink: don't use ld --gc-sections if ld doesn't support it
...
Signed-off-by: Ian Abbott <abbotti@mev.co.uk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-27 00:24:35 +02:00
Denys Vlasenko
7e6034309e
printf: (allegedly) fix testsuite failure
...
Signed-off-by: Colin Watson <cjwatson@ubuntu.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-27 00:07:23 +02:00
Denys Vlasenko
4248c33a85
udhcpc: fix a read error loop (e.g.: device is down) blocking TERM
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-26 23:23:16 +02:00
Denys Vlasenko
d30b89c7ee
updates for supporting Linux kernel build and initrd utilities
...
cpio: --verbose, --quiet, --to-stdout
test: make 64-bit math enable-able for hush too
dnsdomainname: alias to hostname -d
hostname: support --fqdn, --domain, --file
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-26 01:55:45 +02:00
Denys Vlasenko
2f86ca1350
mdev: fix the case when move rule deletes node with name == device_name
...
Signed-off-by: Jean Wolter <jw5@os.inf.tu-dresden.de >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-22 01:31:12 +02:00
Denys Vlasenko
b0bee2b0da
trim/regularize usage texts. -92 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-20 03:59:02 +02:00
Denys Vlasenko
7a76eba1f6
udhcp: fix trivial compile error
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-19 13:51:29 +02:00
Denys Vlasenko
8e5d83b6c1
mkswap: remove configuration for v0 support
...
mkswap hasn't had v0 support since commit
d893b120bae5a9bdef4cfda2df5e62867d6b1cd0; it doesn't seem to make sense
to offer it for configuration.
Signed-off-by: Colin Watson <cjwatson@ubuntu.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-19 13:45:01 +02:00
Denys Vlasenko
beca96ffa7
mkswap: separate UUID feature
...
Signed-off-by: Colin Watson <cjwatson@ubuntu.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-19 13:14:48 +02:00
Denys Vlasenko
f3b92d3856
getopt: FEATURE_GETOPT_LONG for -l; rename GETOPT_LONG to LONG_OPTS
...
Signed-off-by: Colin Watson <cjwatson@ubuntu.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-19 12:10:38 +02:00
Denys Vlasenko
e2e4cc249d
mount: support -i; pass through -f and -n to helpers as necessary
...
function old new delta
mount_it_now 298 345 +47
singlemount 776 772 -4
Signed-off-by: Colin Watson <cjwatson@ubuntu.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-19 11:48:29 +02:00
Denys Vlasenko
b96159d663
mkswap: accidentally committed wrong patch. fix it up
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-19 11:00:52 +02:00
Denys Vlasenko
e1e2273076
mkswap: improve randomness of UUID generation set version/variant bits
...
function old new delta
mkswap_main 317 410 +93
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-19 09:49:01 +02:00
Denys Vlasenko
bf4aeed129
printf: fix exit code on conversion error
...
Signed-off-by: Colin Watson <cjwatson@ubuntu.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-18 22:22:04 +02:00
Denys Vlasenko
c9f280cc46
mkswap: generate UUID if CONFIG_DESKTOP=y. +110 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-18 21:55:47 +02:00
Denys Vlasenko
2207cd6e14
tweak to config wording, no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-18 19:59:51 +02:00
Denys Vlasenko
bcbd37df24
tweak Config texts and some broken English elsewhere
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-18 13:23:58 +02:00
Denys Vlasenko
14f6f0ad4a
fsync: new applet by Pekka Pessi (Pekka.Pessi AT nokia.com)
...
function old new delta
fsync_main - 128 +128
fdatasync - 39 +39
packed_usage 26596 26622 +26
applet_names 2098 2104 +6
applet_main 1240 1244 +4
applet_nameofs 620 622 +2
applet_install_loc 155 156 +1
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 5/0 up/down: 206/0) Total: 206 bytes
Signed-off-by: Alexander Shishkin <virtuoso@slind.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-18 08:20:02 +02:00
Denys Vlasenko
7eaf58d958
modprobe: do not use ->probed_name blidly
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-17 20:33:50 +02:00
Denys Vlasenko
ee47f6e44f
modprobe: correct exitcode handling and error messages with respect to -q
...
function old new delta
do_modprobe 319 339 +20
bb_delete_module 10 26 +16
moderror 62 71 +9
bb_init_module 112 119 +7
modprobe_main 488 494 +6
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 5/0 up/down: 58/0) Total: 58 bytes
Signed-off-by: Gilles Espinasse <g.esp@free.fr >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-17 18:46:06 +02:00
Denys Vlasenko
a5bdbe1087
switch_root: allow /init to be a symlink; add doc (thanks Rob!)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-17 14:03:24 +02:00
Denys Vlasenko
dc36a72ac0
udhcp: cosmetics in arpping.c, no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-17 13:56:50 +02:00
Denys Vlasenko
799d00e84c
udhcp: convert old-style logging in print_static_leases
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-17 13:44:04 +02:00
Denys Vlasenko
6947d2c7e1
udhcp: logging improvements, field and variable renames
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-17 13:24:03 +02:00
Denys Vlasenko
2b0e957808
examples/udhcp/udhcpd.conf: update
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-17 13:22:26 +02:00
Denys Vlasenko
4945ed32d7
udhcpc: fix format of one log message
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-17 11:58:11 +02:00
Denys Vlasenko
31af3d5a1d
udhcp: shorten mac len from 16 to 6 in lease file
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-17 11:57:09 +02:00
Denys Vlasenko
ac906fa85e
udhcp: change UDHCP_DEBUG into int, make verbosity selectable with -v
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-17 11:54:52 +02:00
Denys Vlasenko
ed8982bfc0
udhcp: add a few TODOs
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-16 12:05:21 +02:00
Denys Vlasenko
26918dd28e
udhcp: rename server/client_config.arp to server_mac and client_mac
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-16 12:04:23 +02:00
Denys Vlasenko
cab3a0127c
udhcp: cleanup of static lease handling
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-16 12:03:12 +02:00
Denys Vlasenko
56f2d06c64
udhcp: rename sprintip to sprint_nip, siaddr to siaddr_nip
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-16 10:25:35 +02:00
Denys Vlasenko
990a617edf
udhcp: rename giaddr to gateway_nip and server to server_nip
...
"nip" stands for "IP in network order"
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-16 10:23:55 +02:00
Denys Vlasenko
1d924f59b1
udhcp: rename fields in struct dhcpOfferedAddr
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-16 10:23:01 +02:00
Denys Vlasenko
47f2d7ef7d
udhcpd: don't fail ARP check if returned MAC matches client's one
...
Also, do not unicast replies to yiaddr.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-16 10:20:27 +02:00
Denys Vlasenko
1f363a0867
install: compat fix for mode of created files.
...
By Mat Hostetter (mhostetter AT tilera.com)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-15 18:13:51 +02:00
Denys Vlasenko
9517d8ad72
seq: fix input handling in non-C locales
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-15 15:47:58 +02:00
Denys Vlasenko
6548edd430
vi: do not accept uppercase comments (compat). Closes bug 397.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-15 12:44:11 +02:00
Denys Vlasenko
4813a5100d
libbb: stop using bb_strtod for now
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-15 09:50:54 +02:00
Denys Vlasenko
cd3dd42c28
seq: fix testsuite failures
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-15 09:16:27 +02:00
Denys Vlasenko
82a6fb3ea6
ash: fix . builtin
...
Also, move [[ ]] comment to test.c and expand it
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-14 19:42:12 +02:00
Denys Vlasenko
2441060beb
fix or document testsuite failures
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-13 23:41:57 +02:00
Denys Vlasenko
16635cc2e0
test, tcpsvd, tcpsvd: shrink
...
function old new delta
nexpr 825 826 +1
tcpudpsvd_main 1830 1822 -8
test_main 257 247 -10
binop 584 525 -59
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/3 up/down: 1/-77) Total: -76 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-13 22:49:08 +02:00
Denys Vlasenko
a3dcee3e8a
fix permissions in testsuite
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-13 16:35:20 +02:00
Denys Vlasenko
145512c634
Update POSIX compliance table
...
Signed-off-by: Max Panasenkov <panmax@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-12 15:32:51 +02:00
Denys Vlasenko
a99aa6e9c4
readlink: support -n, -v, -s and -q too if support for -f is requested
...
function old new delta
readlink_main 104 135 +31
packed_usage 26322 26321 -1
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 31/-1) Total: 30 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-12 13:16:21 +02:00
Denys Vlasenko
641dd7b080
ash: revert over-zealous usage of FAST_FUNC
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-11 19:30:19 +02:00
Denys Vlasenko
77539190ab
added comments about [[ ]] to ash and hush. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-10 14:09:48 +02:00
Denys Vlasenko
9ca656b149
hush: add HUSH_BASH_COMPAT, make [[ special handling depend on it
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-10 13:39:35 +02:00
Denys Vlasenko
1d77db8459
telnetd: more compact version of the fix for stray open fds
...
function old new delta
telnetd_main 1520 1527 +7
make_new_session 510 416 -94
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 7/-94) Total: -87 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-10 13:38:08 +02:00
Denys Vlasenko
a4bcbd0e04
telnetd: properly close fds in child
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-09 23:01:24 +02:00
Denys Vlasenko
9d617c44d2
hush: specially handle [[ - suppress globbing & multiword expansion
...
It's a bashism, but is surprisingly easy to do and costs very little code.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-09 18:40:52 +02:00
Denys Vlasenko
2634bf366b
randomconfig fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-09 18:40:07 +02:00
Denys Vlasenko
38d9072b2c
diff: tiny compat tweak
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-09 12:55:13 +02:00
Denys Vlasenko
764b2f0ec0
hush: drop REDIRECT_INVALID; other minor tweaks
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-07 16:05:04 +02:00
Denys Vlasenko
df5131cf3d
hush: fix a segfault in export builtin
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-07 16:04:17 +02:00
Denys Vlasenko
8f24f9812d
stop using non-standard macro, use WEXITSTATUS instead
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-07 16:02:00 +02:00
Denys Vlasenko
d6b05eb9c2
hush: make builtins work in pipes (eval ... | ...) on NOMMU
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-06 20:59:55 +02:00
Denys Vlasenko
62152da892
ifupdown: if $PATH is not set, do not set it to "" in children
...
Also random code shrink:
function old new delta
set_environ 328 330 +2
static.label_buf 4 - -4
startup_PATH 4 - -4
my_environ 4 - -4
ifupdown_main 2148 2134 -14
setlocalenv 117 90 -27
get_var 139 112 -27
------------------------------------------------------------------------------
(add/remove: 0/3 grow/shrink: 1/3 up/down: 2/-80) Total: -78 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-05 21:53:11 +02:00
Denys Vlasenko
035b4d77dc
ftpd: allow multiple -S options to increase verbosity too, like -v
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-05 20:42:40 +02:00
Denys Vlasenko
71016baf55
printf: accept negative numbers for %x; sh: overflowed numbers are 0
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-05 16:24:29 +02:00
Denys Vlasenko
0f952c249e
inetd: comment why we redirect stderr to network
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-05 15:35:36 +02:00
Denys Vlasenko
53f1791212
*: reduce #ifdef forest
...
Remove unnecessary #if statements from the "more", "script", and
"scriptreplay" commands. Bloatcheck says 0 bytes changed.
Signed-off-by: Rob Landley <rob@landley.net >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-05 14:55:26 +02:00
Denys Vlasenko
d5f1b1bbe0
*: add FAST_FUNC to function ptrs where it makes sense
...
function old new delta
evalcommand 1195 1209 +14
testcmd - 10 +10
printfcmd - 10 +10
echocmd - 10 +10
func_exec 270 276 +6
echo_dg 104 109 +5
store_nlmsg 85 89 +4
pseudo_exec_argv 195 198 +3
dotcmd 287 290 +3
machtime_stream 29 31 +2
discard_stream 24 26 +2
argstr 1299 1301 +2
killcmd 108 109 +1
evalfor 226 227 +1
daytime_stream 43 44 +1
run_list 2544 2543 -1
lookupvar 62 61 -1
ipaddr_modify 1310 1309 -1
...
parse_stream 2254 2245 -9
evalpipe 356 347 -9
collect_if 210 197 -13
read_opt 869 851 -18
handle_dollar 681 658 -23
print_addrinfo 1342 1303 -39
iterate_on_dir 156 59 -97
print_route 1709 1609 -100
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 12/130 up/down: 74/-767) Total: -693 bytes
text data bss dec hex filename
841748 467 7872 850087 cf8a7 busybox_old
841061 467 7872 849400 cf5f8 busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-05 12:06:05 +02:00
Denys Vlasenko
8507e1f109
ftpd: fix a case when with -w unknown commands are ignored with no error code
...
Signed-off-by: Stefan Seyfried <seife@suse.de >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-04 19:03:20 +02:00
Bernhard Reutner-Fischer
a43972cb0f
rename CONFIG_FEATURE_TAR_GZIP
...
CONFIG_FEATURE_TAR_GZIP was renamed to CONFIG_FEATURE_SEAMLESS_GZ.
Adjust testsuite accordingly.
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2009-06-03 20:35:26 +02:00
Denys Vlasenko
dc2bbb9669
tweak docs
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-03 15:19:03 +02:00
Denys Vlasenko
0821801349
hush: document a TODO in export builtin
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-03 14:43:56 +02:00
Denys Vlasenko
6f22624a91
hush: fix a case when backgrounded cmd makes shell hang
...
Signed-off-by: Bayram Kurumahmut <kbayram@ubicom.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-03 14:37:30 +02:00
Denys Vlasenko
295fef80bc
hush: add support for local builtin
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-03 12:47:26 +02:00
Mike Frysinger
98f74034cd
bloat-o-meter: touchup argv handling
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
Reported-by: Matt Mackall <mpm@selenic.com >
2009-06-01 16:37:27 -04:00
Mike Frysinger
5177e28e9c
bloat-o-meter: fix tab/space mixing
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2009-06-01 16:34:11 -04:00
Mike Frysinger
eab40e5885
hush_test: stop mixing tabs/spaces for indentation
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2009-06-01 16:33:05 -04:00
Mike Frysinger
a1e5ebe9bd
gitignore: add debugging related files
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2009-06-01 14:16:43 -04:00
Mike Frysinger
6a46ab8b8f
hush: unify syntax_error_unterm_{ch,str} a bit
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2009-06-01 14:16:43 -04:00
Mike Frysinger
ef3e7fdd3b
hush: push down expansion var in handle_dollar()
...
Declare the variable in the scope it is used rather than the entire
function scope so it's obvious it is only used there.
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2009-06-01 14:16:43 -04:00
Mike Frysinger
dc3bc40578
hush: add support for special vars in braces
...
Some people like to use ${?} rather than $?, so make sure we support all
the special single char vars that use this form.
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2009-06-01 14:16:43 -04:00
Mike Frysinger
ff64fb9e31
hush_test: filter test output to avoid C lib differences
...
The getopt function in some C libraries wraps the option in single quotes
while others do not. Avoid the issue by running sed on the output and
strip all quotes.
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2009-06-01 14:16:43 -04:00
Mike Frysinger
f524b6c87f
lineedit: fix warning about unused label when VI editing is disabled
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2009-06-01 14:16:43 -04:00
Denys Vlasenko
28a105d867
nc, hush: cosmetic cleanups, no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-01 11:26:30 +02:00
Denys Vlasenko
4b7db4f2ca
read_key: drop optimization where we read 3 bytes at once
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-05-29 10:39:06 +02:00
Denys Vlasenko
171932d7ca
hust: trivial simplification in builtin_type
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-05-28 17:07:22 +02:00
Denys Vlasenko
e640cb4ad1
hush: fix bug 353 (wrong handling of \x in assignments)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-05-28 16:49:11 +02:00
Denys Vlasenko
5d7cca2090
hush: optimize type builtin a bit more
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-05-28 09:58:43 +02:00
Denys Vlasenko
dd6b211921
hush: optimize type builtin a bit
...
function old new delta
builtin_type 130 125 -5
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-05-28 09:45:50 +02:00
Mike Frysinger
b9f2bb36ea
only build common libarchive objs when needed
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2009-05-28 00:47:14 -04:00
Denys Vlasenko
f3cbfc0e2c
modprobe: fix more bugs in modprobe -r
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-05-28 03:54:29 +02:00
Denys Vlasenko
398c659970
cpio.tests: fix false positive
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-05-28 02:03:29 +02:00
Mike Frysinger
93cadc2fdd
hush: implement type
...
Implement support for the POSIX `type` command. Only POSIX stuff is
supported here, no bash extensions like -p or -P.
In the process, split the $PATH searching code out of builtin_source() and
into its own find_in_path() function so we don't duplicate it.
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2009-05-27 17:06:25 -04:00
Denys Vlasenko
673e945052
hush: remove outdated TODO and superfluous macro; fix compile breakage
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-05-27 14:39:35 +02:00
David Krakov
29ec116037
POSIX conformance documentation for busybox
...
Attached a start for POSIX conformance documentation for busybox (see
TODO file and discussion last week).
A table of all options as defined by POSIX and as implemented by
busybox (see for a FreeBSD example
http://people.freebsd.org/~schweikh/posix-utilities.html ).
Only the tools that are stand-alone applets are documented (not ash
built-ins as 'read'), as there are multiple shells.
When there are two versions (echo) the stand-alone version was
checked. I think this may be the wrong way to go, as most users will
probably use the built-in version - but which shell?
The table was auto-generated by running, for each POSIX utility,
latest git allyesconfig* "busybox <tool> --help" and parsing the
output, and comparing that to tool options extracted from its man page
at http://www.opengroup.org/onlinepubs/9699919799/ .
This means that it the usage string is not correct, the table is also
wrong. I noticed that for 'kill', for example, the usage string does
not mention the -s, -q, -o options.
For each option is set whether it exists in busybox and if it is, is
it compliant to the standard. Of course, checking compliance can only
be done manually - a process which will probably take some time (see
'cat' for example).
I didn't post the auto-generation script (python, ugly) because the
table will now change manually; I can post it if there is anyone
interested.
As for the tools not implemented by busybox at all, I think most of
them are indeed fairly esotetic. Some I was suprised to see missing
are link, file, newgrp, unlink.
* Well, almost allyesconfig - but nothing very POSIX-y was disabled.
Signed-off-by: David Krakov <krakov@gmail.org >
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2009-05-26 19:42:34 -04:00
Denys Vlasenko
68759edb6e
hush: tweak comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-05-26 14:39:41 +02:00
Denys Vlasenko
e2df5f46d0
hush: rename last_waitpid_was_0 to we_have_children
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-05-26 14:34:10 +02:00
Denys Vlasenko
140def848c
modprobe: fix modprobe -r. closes bug 315
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-05-26 12:48:34 +02:00
Denys Vlasenko
8d7be232a3
hush: fix SIGCHLD counting code, but keep it disabled for now.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-05-25 16:38:32 +02:00
Denys Vlasenko
bf2af9acb2
flash_lock, flash_unlock: new applets
...
By Thierry Reding (thierry.reding AT avionic-design.de)
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-05-25 04:15:37 +02:00
Denys Vlasenko
4f26c97b9a
make compound.tests executable
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-05-23 17:00:13 +02:00
Denys Vlasenko
e9bda90e54
hush: fix problems with case in subshells and with "case esac"
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-05-23 16:50:07 +02:00
Mike Frysinger
342a63d659
hush_test: add some pathological compound list tests
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2009-05-21 18:35:37 -04:00
Mike Frysinger
12bcc76e9b
hush_test: test for subshell function syntax
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2009-05-21 18:35:08 -04:00
Mike Frysinger
7b424fe738
hush_test: add subshelled case tests
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2009-05-21 18:09:24 -04:00
Mike Frysinger
cc9205bda7
hush_test: update test output to match new getopt() output
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2009-05-21 17:58:15 -04:00
Mike Frysinger
33f85eeac5
hush_test: ignore generated files
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2009-05-21 17:45:26 -04:00
Denys Vlasenko
2b132e5139
hdparm: fix a thinko in a previous commit
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-05-20 23:21:42 +02:00
Denys Vlasenko
d8aeba4eed
Merge branch 'master' of git+ssh://vda@busybox.net/var/lib/git/busybox
2009-05-20 21:50:29 +02:00
Denys Vlasenko
c706845539
hdparm: code shrink
...
function old new delta
parse_opts_0_INTMAX - 12 +12
parse_opts_0_1 - 12 +12
parse_opts_0_max - 9 +9
parse_opts 44 36 -8
process_dev 4679 4578 -101
hdparm_main 1061 854 -207
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 0/3 up/down: 33/-316) Total: -283 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-05-20 16:11:41 +02:00
Denys Vlasenko
6d335be211
hdparm: correct (t & 1) ? '0' : '5' thinko; wrap 80+ col lines
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-05-20 14:48:03 +02:00
Denys Vlasenko
73f3799236
Merge branch 'master' of git+ssh://vda@busybox.net/var/lib/git/busybox
2009-05-20 14:10:50 +02:00
Denys Vlasenko
e18255d1da
Merge branch 'master' of git+ssh://vda@busybox.net/var/lib/git/busybox
2009-05-20 12:20:48 +02:00
Mike Frysinger
38478a600f
hush: fix build failure when jobs are disabled
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
Reported-by: Thomas Chou <thomas@wytron.com.tw >
2009-05-20 04:48:06 -04:00
Denys Vlasenko
0149f02a72
appletlib.c: prevent applet list overflowing screen
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-05-19 18:01:42 +02:00
Denys Vlasenko
5e61115ea4
scriptreplay: new applet. +423 bytes
...
Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-05-19 17:36:16 +02:00
Denys Vlasenko
5a49d284a6
add platform tweaks
...
login: consider platforms having no domainname field in the utsname struct
include/platform.h: define IUCLC to 0 on platforms where it is not defined
Signed-off-by: Luca Favatella <slackydeb@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-05-19 13:18:45 +02:00
Denys Vlasenko
e424423a7b
awk: put at least one NUL between $n. Hopefully closes 337.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-05-18 23:50:03 +02:00
Denys Vlasenko
167cd709df
gzip: fix gzip with many files corrupting some files after first
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-05-18 13:08:57 +02:00
Denys Vlasenko
16bda3bd1f
depmod: fix handling of .gz modules
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-05-18 13:08:04 +02:00
Denys Vlasenko
c396fe6306
lineedit: small fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-05-17 19:28:14 +02:00
Denys Vlasenko
020f40693a
line editing: add an option to emit ESC [ 6 n and use results
...
This makes line editing able to recognize case when
cursor was not at the beginning of the line. It may also
be adapted later to find out display size (serial line users
would love it).
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-05-17 16:44:54 +02:00
Denys Vlasenko
071ede1e5d
xmalloc_[open_]read[_close]: do not ignore xrealloc return value
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-05-15 23:23:23 +02:00
Denys Vlasenko
c15f40c3e7
lineedit: use read_key to recognize ESC sequence.
...
This fixes several vi mode bugs and prepares for further fixes.
function old new delta
read_line_input 3287 5511 +2224
remember_in_history - 499 +499
lineedit_read_key - 70 +70
read_key 321 332 +11
input_tab 2823 - -2823
------------------------------------------------------------------------------
(add/remove: 2/1 grow/shrink: 2/0 up/down: 2804/-2823) Total: -19 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-05-15 03:27:53 +02:00
Denys Vlasenko
1b0a93edb9
adduser/addgroup: make system id range configurable.
...
By Tito (farmatito AT tiscali.it).
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-05-14 00:23:34 +02:00
Denys Vlasenko
810b7161dc
mount: save 80 bytes by forced de-inlining
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-05-13 23:48:59 +02:00
Denys Vlasenko
e71dd7c1db
mount: document when kernel started accepting string as NFS options
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-05-13 16:32:32 +02:00
Mike Frysinger
7a5814c74c
split website off into dedicated git repo
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2009-05-13 01:48:00 -04:00
Denys Vlasenko
318a8e5ed5
TODO: add some
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-05-13 02:18:43 +02:00
Bernhard Reutner-Fischer
845142e106
Adjust names, link contributing info in main index
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2009-05-11 22:51:49 +02:00
Denys Vlasenko
f427c80d02
sysctl: stop abusing parser->line
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-05-10 23:41:29 +02:00
Denys Vlasenko
c8ab67cad8
tftp: do not risk invoking Sorcerer's Apprentice syndrome
...
examples/udhcp/simple.script: fix incorrect test for $1
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-05-10 23:27:43 +02:00
Bernhard Reutner-Fischer
8082ea1000
test commit
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2009-05-08 18:22:52 +02:00
Bernhard Reutner-Fischer
b5d5245f46
Revert "test commit"
...
This reverts commit 8606aba04b .
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2009-05-08 18:19:58 +02:00
Bernhard Reutner-Fischer
8606aba04b
test commit
2009-05-08 18:18:42 +02:00
Mike Frysinger
af61b2a5ad
LICENSE: update address of the FSF
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2009-05-06 05:28:53 -04:00
Mike Frysinger
1e12ae9059
modprobe: add comment about expected modules.dep format
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2009-05-06 05:24:41 -04:00
Mike Frysinger
2b6497ba84
depmod.pl: updates and fixes galore
...
The helper script needs updating to match latest busybox modprobe behavior
in that all dependencies need to be listed, not just the immediate ones.
Along the way, fix symbol prefixed ports, optimize the output, and add
some more depmod compatible options.
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2009-05-05 20:14:12 -04:00
Mike Frysinger
00ffaeab80
modprobe: add more useful debug points
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2009-05-05 20:13:45 -04:00
Mike Frysinger
3322351724
add .gitignore files
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2009-05-05 09:05:30 -04:00
Mike Frysinger
4f239b1bb4
libunarchive: fix build failure with !FEATURE_TAR_UNAME_GNAME
...
We can't use C if(...) with ENABLE_FEATURE_TAR_UNAME_GNAME because it
relies on conditional members in the file_header_t structure:
archival/libunarchive/data_extract_all.c: In function ‘data_extract_all’:
archival/libunarchive/data_extract_all.c:123: error: ‘file_header_t’ has no member named ‘uname’
archival/libunarchive/data_extract_all.c:124: error: ‘file_header_t’ has no member named ‘uname’
archival/libunarchive/data_extract_all.c:127: error: ‘file_header_t’ has no member named ‘gname’
archival/libunarchive/data_extract_all.c:128: error: ‘file_header_t’ has no member named ‘gname’
make[1]: *** [archival/libunarchive/data_extract_all.o] Error 1
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2009-05-05 07:00:27 -04:00
Denys Vlasenko
76f5e38c82
mdev: revert last wrong commit
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-05-04 21:59:05 +02:00
root
6245202e7f
hush: small fix for unset -f on NOMMU.
...
Signed-off-by: root <root@localhost.localdomain >
2009-05-04 12:00:19 +02:00
Bernhard Reutner-Fischer
62851171db
fix debug message
...
Print the mime-type only after it has been set.
Add possible TODOs: use TCP_CORK, parse_config()
2009-05-04 09:57:25 +02:00
Denys Vlasenko
acdc49c073
hush: add more complex case to leak testcase, fix found breakage
...
function old new delta
unset_local_var_len - 167 +167
run_list 2350 2457 +107
set_vars_and_save_old - 87 +87
free_pipe 207 227 +20
builtin_unset 220 229 +9
builtin_exit 49 47 -2
free_strings_and_unset 53 - -53
set_vars_all_and_save_old 87 - -87
unset_local_var 168 - -168
------------------------------------------------------------------------------
(add/remove: 2/3 grow/shrink: 3/1 up/down: 390/-310) Total: 80 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-05-04 01:58:10 +02:00
Denys Vlasenko
cb6ff25afe
hush: fix bug where in "var=val func" var's value is not visible in func
...
function old new delta
unset_local_var - 168 +168
set_vars_all_and_save_old - 87 +87
get_ptr_to_local_var - 77 +77
free_strings_and_unset - 53 +53
builtin_export 266 274 +8
get_local_var_value 31 33 +2
putenv_all 27 - -27
free_strings_and_unsetenv 53 - -53
get_local_var 68 - -68
run_list 2475 2350 -125
builtin_unset 380 220 -160
------------------------------------------------------------------------------
(add/remove: 4/3 grow/shrink: 2/2 up/down: 395/-433) Total: -38 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-05-04 00:14:30 +02:00
Denys Vlasenko
e19e1935a3
hush: fix \<newline> handling
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-05-03 02:15:18 +02:00
Denys Vlasenko
b1cfc45376
hush: fix handling of unterminated subshell: (<eof>. Fixes bug 229.
...
function old new delta
syntax_error_unexpected_ch 31 41 +10
parse_stream 2184 2191 +7
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-05-02 17:18:34 +02:00
Denys Vlasenko
aa0a12d549
mdev: do not exit if user:group parse failed. closes bug 309.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-05-02 16:33:10 +02:00
Denys Vlasenko
1dd6cf8677
hush: fix multiple redirections of the same fd (bug 227)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-05-02 14:17:31 +02:00
Denys Vlasenko
54e0843e7d
hush: make . cmd search $PATH
...
function old new delta
builtin_source 128 249 +121
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-05-02 02:34:19 +02:00
Denys Vlasenko
48a29defca
httpd: speed up httpd.conf at the cost of 49 bytes of code
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-05-02 00:50:38 +02:00
Denys Vlasenko
9c35a1cfb6
ifplugd: fix warnings
2009-05-01 09:04:25 +02:00
Denys Vlasenko
44d1989997
des encrypt: fix goof with NUL byte added at the end as '.'
2009-05-01 03:41:25 +02:00
Denys Vlasenko
05ae400830
mdev: fix a case where we mangle device_path string and then use it.
2009-05-01 03:09:54 +02:00
Denys Vlasenko
47aaa2bee6
Make it clearer that usually people should _NOT_
...
select FEATURE_UNIX_LOCAL.
2009-05-01 03:00:04 +02:00
Denys Vlasenko
690ad2426e
git commit test
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-04-30 21:24:24 +02:00
Denis Vlasenko
1fd3b38fd1
*: bb_error_msg's messages should not be capitalized
2009-04-29 12:02:57 +00:00
Denis Vlasenko
052ad9a568
lzop: new applet. Busyboxed by Alain Knaff. +7700 bytes.
2009-04-29 12:01:51 +00:00
Denis Vlasenko
c8653f62f2
hush: make it possible to have interactive shell on non-ctty.
...
init=/bin/hush: shows prompt, history works, etc.
function old new delta
hush_main 888 925 +37
block_signals 139 152 +13
builtin_fg_bg 284 293 +9
checkjobs_and_fg_shell 35 41 +6
sigexit 65 66 +1
reset_traps_to_defaults 165 164 -1
parse_stream 2200 2184 -16
run_list 2502 2475 -27
getpgid 35 - -35
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 5/3 up/down: 66/-79) Total: -13 bytes
2009-04-27 23:29:14 +00:00
Denis Vlasenko
42e4af3119
make leak test more robust by unsetting all vars
2009-04-26 23:25:36 +00:00
Denis Vlasenko
28e67966f3
hush: make getopt32 usable in builtins. use it in unset.
...
more uses are expected in the future.
function old new delta
getopt32 1356 1393 +37
builtin_export 256 266 +10
builtin_unset 418 380 -38
2009-04-26 23:22:40 +00:00
Denis Vlasenko
572930027d
hush: nommu fix for function passing
2009-04-26 20:06:14 +00:00
Denis Vlasenko
5b7589eb27
hush: fix SEGV in % expansion
...
function old new delta
expand_variables 2203 2217 +14
2009-04-26 11:25:19 +00:00
Denis Vlasenko
80e57eb7d5
ifplugd: tiny shrink
2009-04-26 01:43:36 +00:00
Denis Vlasenko
f4e4563fe7
ifplugd: add copyright
2009-04-26 01:17:44 +00:00
Denis Vlasenko
71c165780a
ifplugd: new applet by Maksym Kryzhanovskyy (xmaks AT email.cz)
...
+3k code and 0.5k in messages. Most of the bloat due to compat :(
2009-04-26 01:08:51 +00:00
Denis Vlasenko
5bf59c104a
shrink if FEATURE_SHADOWPASSWDS is off
2009-04-25 13:26:10 +00:00
Denis Vlasenko
f6b4685691
add FEATURE_UNIX_LOCAL. By Ingo van Lil (inguin AT gmx.de)
2009-04-25 13:16:53 +00:00
Denis Vlasenko
9ac3dc764a
unlzma: speedup, by Pascal Bellard (pascal.bellard AT ads-lu.com)
...
LZMA_FAST off: 10% faster and:
function old new delta
rc_is_bit_1 - 92 +92
rc_do_normalize 45 81 +36
rc_update_bit_1 25 - -25
rc_update_bit_0 30 - -30
rc_is_bit_0_helper 38 - -38
rc_get_bit 60 17 -43
rc_read 48 - -48
unpack_lzma_stream 1768 1517 -251
------------------------------------------------------------------------------
(add/remove: 1/4 grow/shrink: 1/2 up/down: 128/-435) Total: -307 bytes
LZMA_FAST on: 14% faster and:
unpack_lzma_stream 2301 2737 +436
rc_get_bit 106 - -106
2009-04-25 12:19:35 +00:00
Mike Frysinger
6fb5f01c0b
we need to daemonize *before* opening the watchdog device
2009-04-25 06:16:37 +00:00
Mike Frysinger
26cf2831d7
do not tell people they can enter "help" if help has actually been disabled
2009-04-24 06:40:30 +00:00
Mike Frysinger
67c1c7b456
use get_local_var_value() rather than getenv() when working with PS1/PS2/HOME, respect the PS2 env var, and make sure that the prompt changes whenever PS1/PS2 changes so we dont have to re-exec the shell to get a changed prompt
2009-04-24 06:26:18 +00:00
Denis Vlasenko
eb4e5ecc32
inetd: constify data
2009-04-22 23:25:48 +00:00
Denis Vlasenko
c2931aa2df
adduser/addgroup: support specifying uid/gid, add system
...
account creation mode. By Tito.
function old new delta
adduser_main 650 726 +76
addgroup_main 341 402 +61
addgroup_longopts - 16 +16
adduser_longopts 97 103 +6
packed_usage 26161 26163 +2
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 4/0 up/down: 161/0) Total: 161 bytes
2009-04-22 21:35:52 +00:00
Denis Vlasenko
c8d7109f60
httpd: fix small bug in parser. it crept in during cleanup
2009-04-22 14:16:59 +00:00
Denis Vlasenko
00643ca520
httpd: allow empty lines in conf file
2009-04-22 13:52:22 +00:00
Denis Vlasenko
1cf4a0eb81
httpd: simplify insane conf file parser
...
function old new delta
bb_simplify_abs_path_inplace - 98 +98
parse_expr 824 832 +8
passwd_main 1025 1027 +2
evalvar 1374 1376 +2
parse_command 1463 1460 -3
bb_simplify_path 137 55 -82
parse_conf 1572 1422 -150
------------------------------------------------------------------------------
(add/remove: 3/2 grow/shrink: 3/3 up/down: 126/-251) Total: -125 bytes
2009-04-22 13:49:16 +00:00
Denis Vlasenko
574c316e5a
syslogd: added comment, no code changes
2009-04-22 02:53:02 +00:00
Denis Vlasenko
b029154a2a
httpd: improve help text
2009-04-22 00:26:39 +00:00
Denis Vlasenko
8ed1945a91
nc: free lsa in server mode, we might be up for a long time
2009-04-21 23:51:43 +00:00
Denis Vlasenko
a771e7c005
*: remove check for errors on getsockaddr in cases we know they can't happen
...
libbb: make get_sock_lsa use only one getsockaddr syscall, not two
function old new delta
get_sock_lsa 72 101 +29
do_iplink 1151 1137 -14
arping_main 1585 1569 -16
dolisten 789 755 -34
xrtnl_open 161 94 -67
2009-04-21 23:48:38 +00:00
Denis Vlasenko
e6b10ef0a7
switch_root: move misplaced comment
2009-04-21 20:52:58 +00:00
Denis Vlasenko
f9d4fc3cf8
switch_root: improve behavior on error; improve help text
...
*: make "can't execute '%s'" message uniform
2009-04-21 20:40:51 +00:00
Denis Vlasenko
950bd72966
hush: speed up set_local_var
...
function old new delta
set_local_var 265 290 +25
2009-04-21 11:23:56 +00:00
Denis Vlasenko
5e34ff29bc
*: mass renaming of USE_XXXX to IF_XXXX
...
and SKIP_XXXX to IF_NOT_XXXX - the second one was especially
badly named. It was not skipping anything!
2009-04-21 11:09:40 +00:00
Denis Vlasenko
8b814b4a34
tar: support for tar --numeric-owner. By Natanael Copa.
...
function old new delta
tar_longopts 221 237 +16
data_extract_all 692 705 +13
tar_main 690 702 +12
2009-04-21 00:52:21 +00:00
Denis Vlasenko
76478b8091
udhcpc: fix truncation of last char in client hostnames
2009-04-21 00:41:57 +00:00
Denis Vlasenko
0ad8234474
switch_root: print errno on failure
2009-04-21 00:29:17 +00:00
Denis Vlasenko
1b47bbdfa4
tweak example udhcp script
2009-04-21 00:17:00 +00:00
Denis Vlasenko
ad4bd0548a
hush: export -n support
...
function old new delta
builtin_export 206 256 +50
set_local_var 248 265 +17
expand_variables 2204 2203 -1
2009-04-20 22:04:21 +00:00
Denis Vlasenko
d40fa397e4
hush: add two testcases
2009-04-20 10:52:31 +00:00
Denis Vlasenko
e41fdbc279
watchdog: enable it before setting timeout
...
function old new delta
watchdog_main 239 259 +20
static.enable - 4 +4
2009-04-20 09:26:17 +00:00
Denis Vlasenko
8c64e033c0
hush: fix stdin of backgrounded pipe
...
function old new delta
run_list 2450 2502 +52
2009-04-20 00:34:01 +00:00
Denis Vlasenko
11c17f75a7
mdev: enlarge inline documentation
2009-04-19 23:38:08 +00:00
Denis Vlasenko
dcd78c4d0f
hush: fix "export not_yet_defined_var", fix parsing of "cmd | }"
...
corner case; improve hush_leaktool.sh;
fix some false positives in testsuite
function old new delta
builtin_export 191 206 +15
parse_stream 2196 2200 +4
2009-04-19 23:07:51 +00:00
Denis Vlasenko
3798db58cf
mdev: support $ENVVAR=regex
2009-04-19 21:37:07 +00:00
Denis Vlasenko
f66fe9af89
another stab at fixing out-of-tree build
2009-04-19 14:12:50 +00:00
Denis Vlasenko
9f8d938172
same as previous, but -100 bytes
2009-04-19 14:03:11 +00:00
Denis Vlasenko
bf25fbccb9
hush: fix handling of } which is not a closing one in { cmd; }
...
function old new delta
parse_stream 2176 2302 +126
builtin_unset 381 387 +6
2009-04-19 13:57:51 +00:00
Denis Vlasenko
a29c935442
hopefully fix out-of-tree build broken by 26139
2009-04-19 12:15:51 +00:00
Denis Vlasenko
c7cc5a9432
mdev: Rob's #if forest removal
...
*: remove superfluous conts in "f(type *const param)"
2009-04-19 01:27:20 +00:00
Mike Frysinger
885b6f29ae
fix build errors when function support is turned off
2009-04-18 21:04:25 +00:00
Denis Vlasenko
6008d8a3cc
hush: fix thinko in error msg
2009-04-18 13:05:10 +00:00
Denis Vlasenko
38e626df4d
hush: fix "trap -- handler SIGs..."; escape handlers in "trap" output
2009-04-18 12:58:19 +00:00
Denis Vlasenko
6a07d1fb5c
acpid: prevent creation of zombies
2009-04-18 11:35:16 +00:00
Denis Vlasenko
730106767e
hush: fix thinko in unset_func
2009-04-18 11:25:18 +00:00
Denis Vlasenko
40e84374ec
hush: implement unset -f; beautify the handling of signal-killed pipe
...
four TODOs are gone
function old new delta
builtin_unset 271 364 +93
checkjobs 394 428 +34
builtin_exit 49 47 -2
2009-04-18 11:23:38 +00:00
Denis Vlasenko
eb85849b50
hush: deal with umask TODO (symbolic modes)
...
function old new delta
builtin_umask 79 125 +46
2009-04-18 02:06:54 +00:00
Denis Vlasenko
6b9e05392b
hush: implement proper SIGHUP handling
...
function old new delta
check_and_run_traps 164 229 +65
insert_bg_job 376 366 -10
hush_main 937 927 -10
2009-04-18 01:23:21 +00:00
Denis Vlasenko
7b9e5c57ae
builtin_return's parameter is not unused
2009-04-17 23:53:15 +00:00
Denis Vlasenko
3d40d8e655
hush: return builtin by Bayram Kurumahmut (kbayram AT ubicom.com)
...
~+200 bytes
2009-04-17 23:44:18 +00:00
Denis Vlasenko
3be2308676
fix move_to_unaligned32
2009-04-17 22:20:44 +00:00
Denis Vlasenko
66cb86e489
build system: remove some unnecessary rebuilds
2009-04-17 21:56:02 +00:00
Denis Vlasenko
270b1c3f68
hush: set $n properly for "source" builtin
...
function old new delta
restore_G_args - 78 +78
save_and_replace_G_args - 64 +64
builtin_source 72 107 +35
run_list 2549 2367 -182
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 1/1 up/down: 177/-182) Total: -5 bytes
2009-04-17 18:54:50 +00:00
Denis Vlasenko
4ea187fd62
hush: fix non-interactive response to pipe being stopped.
...
function old new delta
checkjobs 380 394 +14
2009-04-17 14:35:43 +00:00
Denis Vlasenko
e4bd4f2cc8
hush: unblock TERM, INT, HUP in child shells too.
2009-04-17 13:52:51 +00:00
Denis Vlasenko
f8c1f02d2f
hush: disallow "{echo hi; }" (require whitespace)
...
and "{ echo hi }" (require semicolon or &)
function old new delta
parse_stream 2098 2176 +78
done_command 98 84 -14
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 78/-14) Total: 64 bytes
2009-04-17 11:55:42 +00:00
Denis Vlasenko
5ff9629b8f
mdev: add large comment, fix a buglet with subsystem and /sys/block
2009-04-17 00:01:04 +00:00
Denis Vlasenko
184f4ff432
disable FLASH_ERASEALL in defconfig
2009-04-16 23:05:59 +00:00
Denis Vlasenko
3161b61199
mdev: set mode, needed when device node already exists.
2009-04-16 22:42:01 +00:00
Denis Vlasenko
6dda5dec23
mdev: change subsystem syntax from /subsystem to subsystem/devname
2009-04-16 21:42:12 +00:00
Denis Vlasenko
ea4f0847c3
update example udhcpc script
2009-04-16 20:04:09 +00:00
Denis Vlasenko
fa4ca7889e
hush: add a TODO
2009-04-16 12:00:15 +00:00
Denis Vlasenko
bb929517a8
hush: fix "if { echo foo; } then { echo bar; } fi" parsing
...
function old new delta
done_word 728 793 +65
parse_stream 2084 2098 +14
2009-04-16 10:59:40 +00:00
Denis Vlasenko
74a931ac9e
hush: stop ignoring ^Z in child shells
2009-04-15 23:29:44 +00:00
Denis Vlasenko
c4ada79343
hush: remove old disabled ^Z handling
2009-04-15 23:29:00 +00:00
Denis Vlasenko
41ddecd9ed
hush: fix heredoc_huge.tests broken in last commits
2009-04-15 21:58:14 +00:00
Denis Vlasenko
c376db332c
hush: remove TODO comment itself :)
2009-04-15 21:49:48 +00:00
Denis Vlasenko
27014ed5cb
hush: deal with a TODO: move argv_from_re_execing out of globals
...
function old new delta
generate_stream_from_string 156 165 +9
setup_heredoc 312 320 +8
re_execute_shell 387 391 +4
pseudo_exec_argv 129 133 +4
run_pipe 1790 1783 -7
clean_up_after_re_execute 30 - -30
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 4/1 up/down: 25/-37) Total: -12 bytes
2009-04-15 21:48:23 +00:00
Denis Vlasenko
c3587223c7
Start 1.15.x development
2009-04-15 13:04:52 +00:00