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