Denys Vlasenko
28dd64a0e1
libarchive: open_zipped() does not need to check extensions for e.g. gzip
...
We only need to check for signature-less extensions,
currently only .lzma. The rest can be happily autodetected.
This fixes "zcat FILE_WITHOUT_GZ_EXT" case, among others.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
(cherry picked from commit 7c47b560a8 )
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2014-10-21 15:11:54 -04:00
Denys Vlasenko
5698ff9323
lzop: add overflow check
...
See CVE-2014-4607
http://www.openwall.com/lists/oss-security/2014/06/26/20
function old new delta
lzo1x_decompress_safe 1010 1031 +21
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
(cherry picked from commit a9dc7c2f59 )
2014-10-21 08:41:37 -04:00
Denys Vlasenko
d9e0c438e1
Apply post-1.22.0 patches, bump version to 1.22.1
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2014-01-20 03:41:48 +01:00
Denys Vlasenko
a2dd4ee0e8
Bump version to 1.22.0
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2014-01-01 00:42:11 +01:00
Denys Vlasenko
7625811d25
testsuite: remove forgotten debug hack
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-12-31 23:25:46 +01:00
Denys Vlasenko
198b02f7dd
fix failures found by randomconfig builds
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-12-31 23:22:36 +01:00
Denys Vlasenko
61be8e46a8
testsuite: disable tests for no longer supported bbox-specific date formats
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-12-31 18:57:39 +01:00
Denys Vlasenko
e83e1c50f2
adduser: check whether run with no USERNAME. Closes 6728
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-12-20 20:45:02 +01:00
Denys Vlasenko
e85e260e47
testsuite: fix false positives for du
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-12-20 02:55:16 +01:00
Daniel Borca
c9d87bed8e
build system: fix make gconfig
...
Was getting "undefined reference to symbol 'dlsym@@GLIBC_2.2.5'".
Signed-off-by: Daniel Borca <dborca@yahoo.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-12-19 04:43:24 +01:00
David A. Wheeler
80a068d741
sed: accept s///i as a synonym for s///I ("ignore case")
...
Signed-off-by: David A. Wheeler <dwheeler@dwheeler.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-12-18 16:23:49 +01:00
Michael Tokarev
e9355c4326
hostname: do not use gethostbyname() for "hostname -s"
...
There's no reason to call gethostbyname() on the value returned
by uname() when asked just for a short name of a host. This may
also be wrong, when uname is set to one value, but in /etc/hosts
(or elsewhere) the "canonical" name is different. This is often
the case for localhost entry in /etc/hosts:
127.0.0.1 localhost myname
With this content of /etc/hosts, and uname being set to myname,
busybox hostname -s will return localhost, while regular
hostname utility returns myname.
Fix this by not calling gethostbyname() for the simple
'hostname -s' use.
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-12-17 19:13:45 +01:00
Lauri Kasanen
4967a41ba1
wget: user-friendly fallback to http
...
GNU wget: wget google.com // ok
bb before: wget google.com // wget: not an http or ftp url
function old new delta
parse_url 317 339 +22
Signed-off-by: Lauri Kasanen <curaga@operamail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-12-17 19:09:43 +01:00
Denys Vlasenko
4b26f82c78
kill[all[5]]: code shrink
...
function old new delta
kill_main 992 947 -45
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-12-16 17:45:44 +01:00
Uros Vampl
3ac1e0d753
killall5: return 2 if no processes got killed
...
function old new delta
kill_main 943 992 +49
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-12-16 17:44:58 +01:00
Michael Tokarev
9f4f60183b
do not fail build if MAXSYMLINKS isn't defined
...
This is needed for, eg, hurd, which is known to have no constraints.
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-12-16 03:41:30 +01:00
Michael Tokarev
22bb81fa85
expand: use printable_string instead of hard-coding implementation
...
function old new delta
expand_main 709 690 -19
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-12-16 03:38:24 +01:00
Denys Vlasenko
0b3a38b9f5
ntpd: speed up resyncing if our clock is seriously off
...
function old new delta
recv_and_process_peer_pkt 892 922 +30
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-12-08 16:11:04 +01:00
Denys Vlasenko
777be10ebe
ntpd: do not invalidate datapoints after step
...
Used to set p->filter_datapoint[i].d_dispersion = MAXDISP
and clear reachable bits, but this proved to be too agressive:
after step (tested with suspinding laptop for ~30 secs),
this caused all previous data to be considered invalid,
making us needing to collect full ~8 datapoins per peer
after step in order to start trusting them.
In turn, this was making poll interval decrease even after
step was done. (Poll interval decreases already before step
in this scenario, because we see large offsets and end up with
no good peer to select).
function old new delta
reset_peer_stats 157 139 -18
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-12-07 17:29:03 +01:00
Denys Vlasenko
6c46eed6e9
ntpd: comment out "spike detection" code
...
function old new delta
update_local_clock 982 835 -147
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-12-04 17:12:11 +01:00
Denys Vlasenko
a14958c69d
ntpd: promote log level 3 to production
...
Without it, peer selection logic is hard to debug
function old new delta
update_local_clock 861 982 +121
select_and_cluster 962 1065 +103
common_ping_main 1788 1821 +33
huft_build 1287 1296 +9
chpst_main 708 704 -4
INET6_resolve 127 119 -8
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/2 up/down: 266/-12) Total: 254 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-12-04 16:32:09 +01:00
Denys Vlasenko
cb1dc1d1d1
ntpd: let user know if spike was detected
...
function old new delta
update_local_clock 861 943 +82
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-12-04 13:19:04 +01:00
Denys Vlasenko
327f550669
Use unsigned printf/scanf conversion where more appropriate
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-29 16:45:45 +01:00
Denys Vlasenko
9b2a9f0210
fix assorted unused code and wrong format specs found by cppchekc (bug 6716)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-29 16:43:33 +01:00
Denys Vlasenko
1a7256ac38
chpst: fix a bug where -U USER was using wrong USER (one from -u USER)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-29 16:39:28 +01:00
Daniel Borca
72745632a1
ping: try SOCK_DGRAM if no root privileges
...
Signed-off-by: Daniel Borca <dborca@yahoo.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-28 12:50:25 +01:00
Daniel Borca
df0d2cd837
dpkg-deb: cosmetic correction to usage text
...
Signed-off-by: Daniel Borca <dborca@yahoo.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-28 12:38:25 +01:00
Denys Vlasenko
deb0769b26
sed: code shrink
...
function old new delta
get_next_line 246 250 +4
sed_main 671 662 -9
add_input_file 47 - -47
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 1/1 up/down: 4/-56) Total: -52 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-28 12:08:51 +01:00
Denys Vlasenko
259b3c047a
sed: open input files sequentially to avoid EMFILE
...
Currently, sed pre-opens all files, which may cause EMFILE errors
on systems with low ulimit -n. Change sed to open one file at a time.
function old new delta
get_next_line 177 235 +58
sed_main 682 652 -30
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 58/-30) Total: 28 bytes
Based on the patch by Daniel Borca <dborca@yahoo.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-28 03:14:16 +01:00
Denys Vlasenko
8bd810bd27
hush: typo fixes in comments
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-28 01:50:01 +01:00
Daniel Borca
d9fc4d8f92
platform: strchrnul is missing if __APPLE__
...
Signed-off-by: Daniel Borca <dborca@yahoo.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-27 00:27:46 +01:00
Denys Vlasenko
195c436f84
build system: use od -b instead of od -t x1
...
od -t is not available in non-CONFIG_DESKTOPed busybox od
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-26 14:56:29 +01:00
Bogdan Purcareata
760fc6debc
init: halt on SIGPWR too
...
Most init processes implement a handler for SIGPWR that gracefully
stops all child processes when shutting down a machine. Some other
technologies rely on this signal - e.g. Busybox powered LXC
containers.
This patch makes busybox init halt when receiving SIGPWR.
Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-26 13:54:48 +01:00
Denys Vlasenko
cffe28ef87
libbb: add sketch of tentative 'better' passwd/group API
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-26 13:46:18 +01:00
Denys Vlasenko
4d8ad381ab
devfsd: remove static variable
...
function old new delta
static.msg 4 - -4
get_uid_gid 114 107 -7
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 0/1 up/down: 0/-11) Total: -11 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-26 12:12:27 +01:00
Denys Vlasenko
924a179cb7
build system: do not generate MAX_APPLET_NAME_LEN (unused)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-26 12:03:24 +01:00
Denys Vlasenko
26ad256bd0
logread: don't call shmdt() before exit, kernel does it for us.
...
function old new delta
logread_main 472 466 -6
interrupted 20 9 -11
error_exit 20 - -20
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 0/2 up/down: 0/-37) Total: -37 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-26 12:02:18 +01:00
Denys Vlasenko
71f6c1aa43
logread: flush output. closes 6710
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-26 11:44:27 +01:00
Denys Vlasenko
bd0e221620
awk: fix a bug in argc counting in recent change
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-21 15:09:55 +01:00
Denys Vlasenko
2635369a92
rfkill: use new-style config/kbuild/applet
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-20 14:21:29 +01:00
Denys Vlasenko
0545e3b69a
tar: prevent empty file to be treated as valid tarball
...
function old new delta
tar_main 879 895 +16
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-19 17:17:48 +01:00
Denys Vlasenko
dd1d8ab506
fix a copy/paste error in last tar testcase name
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-19 16:56:26 +01:00
Denys Vlasenko
1cbc642bed
tar: add a testcase for previous commit
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-19 14:52:02 +01:00
Denys Vlasenko
ebfa9b5aa1
tar: fix exitcode check for MMU-spawned unpacking helpers
...
Testcase: tar xvzf EMPTY_FILE
function old new delta
open_transformer 102 106 +4
get_header_tar 1781 1785 +4
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-19 14:44:04 +01:00
Denys Vlasenko
8b59b2c13e
libbb: move nuke_str() from passwd into libbb
...
function old new delta
nuke_str - 15 +15
ask_and_check_password_extended 215 206 -9
init_main 781 771 -10
nuke_str 27 - -27
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 0/2 up/down: 15/-46) Total: -31 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-19 13:36:45 +01:00
Denys Vlasenko
6ef7729112
comment tweak
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-19 13:16:44 +01:00
Denys Vlasenko
9c1c605b1a
sulogin: use common password-checking routine.
...
This needed some extensions correct_passwd() function,
which got renamed ask_and_check_password() to better describe what it does.
function old new delta
ask_and_check_password_extended - 215 +215
ask_and_check_password - 12 +12
vlock_main 394 397 +3
sulogin_main 494 326 -168
correct_password 207 - -207
------------------------------------------------------------------------------
(add/remove: 2/1 grow/shrink: 1/1 up/down: 230/-375) Total: -145 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-19 13:09:06 +01:00
Denys Vlasenko
f6beef63c6
archival/*: move "config:" snippets into .c files
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-14 11:39:00 +01:00
Denys Vlasenko
ac21687309
archival/*: move "applet:" snippets into .c files, part 2
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-14 11:38:18 +01:00
Denys Vlasenko
36184a487d
archival/*: move "applet:" snippets into .c files
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-14 09:54:24 +01:00
Denys Vlasenko
66620fa626
archival/*: move "kbuild:" snippets into .c files
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-14 09:53:52 +01:00
Denys Vlasenko
73225b6d6e
switch editors/* to embedded-in-source kbuild system
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-13 12:45:33 +01:00
Sven-Göran Bergh
f200f732f4
awk: optionally support -e AWK_PROG
...
function old new delta
awk_main 959 978 +19
Signed-off-by: Sven-Göran Bergh <sgb@systemasis.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-12 14:18:25 +01:00
Denys Vlasenko
cd0936be36
fstrim: use new-style config/kbuild/applet snippets; trim help text
...
function old new delta
packed_usage 29546 29520 -26
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-12 12:09:14 +01:00
Jeremy Kerr
d3092c99ae
udhcp: add PXELINUX config file option (code 209) definition
...
This change adds a definition for DHCP option 209. RFC 5071 defines code
209 as a configuration file for a PXE bootloader; this change uses
the string "pxeconffile" as its text identifier.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-12 11:18:26 +01:00
Denys Vlasenko
087843a65b
fix "warning: ISO C90 forbids mixed declarations and code"
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-12 11:16:30 +01:00
Michael Tokarev
afa63b2dcd
fix bashisms in testsuite/
...
These places use ${var/search/replace}, $((n++) and
`type -p' constructs which are not-so-standard.
Replace with equivalent constructs.
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru >
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2013-11-10 22:06:06 +01:00
Bernhard Reutner-Fischer
5e63776212
fstrim: Needs to fire at the mp, not bd
...
It's a filesystem thing from this perspective.
+1b
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2013-11-10 21:47:02 +01:00
Bernhard Reutner-Fischer
b1489f97e0
fstrim: Indicate failure on error
...
+14b
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2013-11-10 00:02:43 +01:00
Bernhard Reutner-Fischer
140f4e3511
fstrim: -17b
...
Also, use the name of the block device we found, not necessarily the one
we got from the user:
fstrim -v /
/dev/sdj: 4711 bytes were trimmed
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2013-11-09 23:41:34 +01:00
Malek Degachi
1d39e33d46
fstrim: New applet
...
fstrim applet is a port from util-linux.
"Trimming" your NAND/eMMC storage will restore the write performance
back to normal after having slow down issues on sequential write and
random write due to usage over time.
Good reading on subject:
http://forum.xda-developers.com/showthread.php?t=1971852
(with long options and CLEAN_UP turned on)
function old new delta
.rodata 148494 148791 +297
fstrim_main - 283 +283
fstrim_sfx - 128 +128
packed_usage 28826 28903 +77
applet_main 2760 2768 +8
applet_names 2343 2350 +7
applet_nameofs 690 692 +2
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 5/0 up/down: 802/0) Total: 802 bytes
Signed-off-by: Malek Degachi <malek-degachi@laposte.net >
Cc: Eugene San (eugenesan) <eugenesan@gmail.com >
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2013-11-09 22:14:33 +01:00
Bernhard Reutner-Fischer
80f8cdf04a
ash: Set SHLVL in ASH_BASH_COMPAT
...
function old new delta
ash_main 1456 1505 +49
.rodata 148488 148494 +6
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/0 up/down: 55/0) Total: 55 bytes
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2013-11-08 14:30:20 +01:00
Bernhard Reutner-Fischer
200c1c46f4
ash: Use setvar2 some more
...
(add/remove: 0/0 grow/shrink: 10/15 up/down: 13/-27) Total: -14 bytes
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2013-11-08 14:12:13 +01:00
Bernhard Reutner-Fischer
b541d1fcbd
swaponoff: shrink
...
function old new delta
.rodata 148469 148468 -1
swap_on_off_main 381 379 -2
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-3) Total: -3 bytes
text data bss dec hex filename
803030 4090 9504 816624 c75f0 busybox_old
803027 4090 9504 816621 c75ed busybox_unstripped
2013-11-08 09:05:25 +01:00
Denys Vlasenko
8d3efaf35e
udhcpc: allow zero server-id. Closes 6614.
...
function old new delta
bcast_or_ucast - 47 +47
udhcp_send_kernel_packet 271 295 +24
udhcpc_main 2696 2705 +9
udhcp_send_raw_packet 456 459 +3
send_release 90 76 -14
send_renew 105 77 -28
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 3/2 up/down: 83/-42) Total: 41 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-03 19:20:54 +01:00
Yuan-Hsiang Lee
b21bc80c76
init: fix illegal memory access when max message length is reached
...
Signed-off-by: Yuan-Hsiang Lee <yhlee@ubnt.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-03 00:13:16 +01:00
Denys Vlasenko
18b461925c
bootchartd: warn if .config looks wrong
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-03 00:07:31 +01:00
Denys Vlasenko
17f4aca556
Makefile.custom: make "make release" delete .gitignore files too
...
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-11-02 22:06:36 +01:00
Denys Vlasenko
c44539fcd3
sed: fix "sed clusternewline" testcase
...
function old new delta
process_files 2197 2226 +29
flush_append 47 54 +7
get_next_line 184 189 +5
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 41/0) Total: 41 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-10-30 14:25:22 +01:00
Denys Vlasenko
a82e32d9ce
sed: document -E in help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-10-30 13:00:00 +01:00
Denys Vlasenko
9d46a7a9a4
sed: fix memory leak in 'r FILE' command
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-10-30 10:22:47 +01:00
David A. Wheeler
af0cdeedc6
sed: accept -E as a synonym for -r
...
Signed-off-by: David A. Wheeler <dwheeler@dwheeler.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-10-29 00:52:48 +01:00
Johannes Stezenbach
2d576e2a22
udhcpc: make DHCP packets to have at least 300 DHCP bytes
...
Commit b8b72f02 removed all padding from DHCP packets
to fix operation with buggy servers which can't handle
maximum sized packets. But it introduced a regression
with buggy routers which drop DHCP packets smaller
than 300 bytes (i.e. 342 byte ethernet packets).
Add back some padding to work around.
function old new delta
udhcp_send_kernel_packet 268 292 +24
udhcp_send_raw_packet 462 473 +11
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/0 up/down: 35/0) Total: 35 bytes
Signed-off-by: Johannes Stezenbach <js@sig21.net >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-10-28 23:27:37 +01:00
Thomas Petazzoni
af4f0e48ec
libbb: use <poll.h> instead of <sys/poll.h>
...
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-10-16 19:59:45 +02:00
Bartosz Golaszewski
28a209466f
bloat-o-meter: add usage info
...
Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-10-16 19:18:05 +02:00
Bartosz Golaszewski
64938011f3
tail compat: fix header printing for tail -f
...
Makes tail -f for multiple files display the header only if another (ie. not
currently displayed) file changed.
Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-10-16 15:02:50 +02:00
Guilherme Maciel Ferreira
840ef17f63
wget: if FEATURE_CLEAN_UP, free(ptr_to_globals)
...
Signed-off-by: Guilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-10-16 14:43:30 +02:00
Denys Vlasenko
5117eff6f9
Fix some compiler warnings emitted by gcc-4.8.0
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-10-16 14:21:20 +02:00
Denys Vlasenko
eba5faec67
ether-wake: shorten help text, reduce packet buffer size
...
function old new delta
ether_wake_main 726 727 +1
packed_usage 29468 29434 -34
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-10-14 19:04:20 +02:00
Lauri Kasanen
d074b416f8
wget: add support for connect timeout
...
function old new delta
open_socket 33 64 +31
wget_main 2182 2194 +12
Signed-off-by: Lauri Kasanen <curaga@operamail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-10-12 21:47:07 +02:00
Denys Vlasenko
730e4d8b52
init: better --help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-10-12 04:52:22 +02:00
Denys Vlasenko
7985bc109e
awk: fix length(array)
...
function old new delta
evaluate 3526 3548 +22
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-10-12 04:51:54 +02:00
Ryan Mallon
1d30b3f1f6
wall,crontab: use xopen_as_uid_gid()
...
This fixes a narrow security race in crontab.
function old new delta
xopen_as_uid_gid - 80 +80
seteuid - 64 +64
setegid - 64 +64
setreuid - 37 +37
xseteuid - 22 +22
xsetegid - 22 +22
crontab_main 590 577 -13
setfsuid 33 - -33
setfsgid 33 - -33
wall_main 138 102 -36
open_as_user 109 - -109
text data bss dec hex filename
893539 497 7568 901604 dc1e4 busybox_old
893618 497 7568 901683 dc233 busybox_unstripped
Signed-off-by: Ryan Mallon <rmallon@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-10-08 14:53:29 +02:00
Ryan Mallon
5906a5c26c
libbb: Add xsetegid(), xseteuid(), xopen_as_uid_gid() functions
...
Signed-off-by: Ryan Mallon <rmallon@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-10-08 14:52:49 +02:00
Denys Vlasenko
932e233a49
bunzip2: fix off-by-one check
...
stage3-armv7a_hardfp-20130209.tar.bz2, 149189948 bytes long,
md5sum b29ce23312e14eb15a143377d4a38473, was failing to unpack.
It so happened that this file has a run which exactly fills
the 90k buffer. The check was "size >= bufsize", apparently
it has to be ">".
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-10-06 22:53:14 +02:00
Denys Vlasenko
cd256e1c40
wall: access FILE under real user's credentials
...
While at it, move applet/config/kbuild bits into wall.c.
(This way, it's more visible that applet is suid'ed).
function old new delta
wall_main 87 138 +51
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-10-06 15:14:25 +02:00
Mike Frysinger
3eab2b7675
trylink: only prefix libs with -l
...
If our pkg-config queries pass back a flag like -pthread, the trylink
script will expand that to -l-pthread. So change trylink to only add
the -l prefix to a value that doesn't have a - prefix already.
Reported-by: thaehaid@incognitomail.org
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2013-09-28 18:40:07 -04:00
Denys Vlasenko
054f3eb784
loadkmap: explain what happens with K_ALLOCATED key value
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-09-19 17:56:59 +02:00
Denys Vlasenko
a6ed6a3148
httpd: make sire pfd[TO_CGI].revents is cleared before poll()
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-09-18 12:08:41 +02:00
Denys Vlasenko
d7ea34ee71
Documentation update
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-09-17 16:24:01 +02:00
Denys Vlasenko
32ed30d96b
dumpkmap: code shrink
...
function old new delta
dumpkmap_main 223 160 -63
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-09-17 14:16:25 +02:00
Denys Vlasenko
fbe250db76
httpd: treat errors from stdin correctly.
...
Fron bug report:
If a CGI or proxied connection is rudely aborted (SIG_{KILL,BUS,SEGV})
then httpd will spin madly the poll loop in:
networking/httpd.c:1080
cgi_io_loop_and_exit()
Upon investigation I found that pfd[0].revents == 0x0018 (POLLHUP|POLLERR),
which leads to empty read, but the pfd[0].fd (STDIN_FILENO) is left open,
and in the FD list given to poll() which immediately returns to once
again inform the loop of (POLLHUP|POLLERR) condition of pfd[0].fd.
This continues until pfd[FROM_CGI].revents != 0
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-09-11 14:59:21 +02:00
Denys Vlasenko
b5352078a7
touch: add conditional support for -h
...
Based on a patch by Andy <andy.padavan@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-09-11 11:58:33 +02:00
Denys Vlasenko
a613aa1b4c
ar: better comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-09-10 16:27:08 +02:00
Peter Korsgaard
2a053a2430
ar: read_num(): fix reading fields using the entire width
...
ar fields are fixed length text strings (padded with spaces). Ensure
bb_strtou doesn't read past the field in case the full width is used.
The fields are only read once, so the simplest/smallest solution to me
seems to be to just pass the length to read_num() and then zero terminate
the string before passing it to bb_strtou. This does mean that the fields
MUST be read in reverse order, so some minor reshuffling was needed.
Bloat-o-meter:
function old new delta
get_header_ar 394 414 +20
read_num 29 36 +7
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/0 up/down: 27/0) Total: 27 bytes
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-09-10 16:22:12 +02:00
Denys Vlasenko
dc57294485
top: fix breakage introduced by previous commit
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-09-06 12:59:48 +02:00
Denys Vlasenko
a407cf74cc
Make smart_ulltoa return pointer to end (allows for code shink in callers)
...
function old new delta
smart_ulltoa5 405 408 +3
smart_ulltoa4 273 276 +3
list_table 1113 1114 +1
scale 36 34 -2
put_lu 55 53 -2
ulltoa6_and_space 19 14 -5
powertop_main 1470 1461 -9
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-09-06 12:53:14 +02:00
John Spencer
d6ae4fb446
man: find posix man pages
...
Add the 0p/1p/3p sections to the search.
Signed-off-by: John Spencer <maillist-busybox@barfooze.de >
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2013-08-25 17:38:25 -04:00
Jody Bruchon
deebdf59b5
fdisk: fix GPT size math errors
...
Signed-off-by: Jody Bruchon <jody@jodybruchon.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-20 17:42:06 +02:00
Denys Vlasenko
1b9ac21166
lineedit: use unicode_strwidth instead of unicode_strlen
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-20 16:13:05 +02:00
Denys Vlasenko
0ff0b320a2
dd: code shrink
...
function old new delta
dd_main 1475 1469 -6
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-20 12:49:28 +02:00
Denys Vlasenko
1b57fe108f
dd: code shrink
...
function old new delta
dd_main 1487 1475 -12
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-20 12:45:05 +02:00
Denys Vlasenko
f3114a3bd0
dd: code shrink
...
function old new delta
write_and_stats 78 99 +21
dd_main 1496 1487 -9
full_write_or_warn 42 - -42
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 1/1 up/down: 21/-51) Total: -30 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-20 12:40:29 +02:00
Denys Vlasenko
90e9cfd218
dd: remove FIXME comment which is fixed now. No code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-20 12:27:19 +02:00
Denys Vlasenko
4502bb1f21
dd: code shrink
...
function old new delta
dd_main 1001 961 -40
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-20 12:08:46 +02:00
Denys Vlasenko
5b9910f0a4
dd: fail if swab is attempted on odd-sized block
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-20 02:50:49 +02:00
Denys Vlasenko
e66a56de23
lineedit: fix multi-line PS1 handling: calculate PS1 length from last \n
...
function old new delta
parse_and_put_prompt 755 774 +19
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-19 16:45:04 +02:00
Denys Vlasenko
7a18043a96
lineedit: improve Unicode handling (still buggy though)
...
function old new delta
unicode_strlen - 31 +31
read_line_input 3876 3879 +3
lineedit_read_key 255 246 -9
parse_and_put_prompt 785 755 -30
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/2 up/down: 34/-39) Total: -5 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-19 16:44:05 +02:00
Denys Vlasenko
8395bd3f52
dd: fix example in a comment. No code changes.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-19 10:30:55 +02:00
Denys Vlasenko
b941316ae5
dd: support conv=swab
...
function old new delta
dd_main 1482 1520 +38
static.conv_words 28 33 +5
packed_usage 29377 29375 -2
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-19 09:01:39 +02:00
Denys Vlasenko
4b1896cd2c
dd: do not reuse local variables for unrelated values.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-19 09:00:08 +02:00
Denys Vlasenko
ec2bef11a7
iplink: comment out include <net/if_packet.h>
...
iplink.c includes net/if_packet.h, which (on GLIBC)
only defines struct sockaddr_pkt. this struct is not
used anywhere in the code, and removing the #include
makes compilation succeed with musl libc.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-16 12:20:25 +02:00
Paulius Zaleckas
9f07af6156
init: don't srop unterminated processes' entries during inittab reload
...
This feature was removed in 72c99af
It is useful when process is removed from inittab and later added
back, but never terminated. It prevents init from spawning duplicate.
function old new delta
check_delayed_sigs 176 182 +6
Signed-off-by: Paulius Zaleckas <paulius.zaleckas@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-16 12:01:58 +02:00
Denys Vlasenko
d2e07bc16c
init: don't use fixed size buffer for command
...
We store init actions forever. 256 bytes per action means that
a typical inittab of ~10 commands uses 2.5k just to remember
command strings - which are usually _much_ shorter than 256 bytes.
At a cost of a bit more code, it's possible to allocate
only actually needed amount.
function old new delta
init_exec 224 248 +24
new_init_action 140 142 +2
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-16 11:48:48 +02:00
SASAKI Suguru
73fbe9dc86
tar: fix tar -T to add entries in the exact order as the input list
...
This fixes tar to order files in tarball correctly in this case:
$ touch 1 2 3; echo -e '1\n2\n3' | tar -T- -c | tar t
1
2
3
Signed-off-by: SASAKI Suguru <suguru@sonik.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-15 12:19:29 +02:00
Denys Vlasenko
fc364ba9e3
fix build error with musl libc due to if_slip.h
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-15 09:54:51 +02:00
Nicolas Dichtel
6761d7da83
networking: fix potential overflow in ife_print6()
...
devname is used by fscanf to store a string specified by '%20s'.
Extract from the man for the '%s' specifier:
Matches a sequence of non-white-space characters; the next pointer must be a
pointer to character array that is long enough to hold the input sequence and
the terminating null byte ('\0'), which is added automatically. The input
string stops at white space or at the maximum field width, whichever occurs
first.
Hence, the right length is 20 + 1 for the '\0'.
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-14 17:43:05 +02:00
Denys Vlasenko
9ae6d79307
udhcpc: tweak help text more
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-08 12:45:45 +02:00
Denys Vlasenko
456687fff1
udhcpc: tweak help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-08 12:33:18 +02:00
Tito Ragusa
8c7fcbd752
swapon: support "pri=NNN" in fstab
...
function old new delta
swap_on_off_main 244 365 +121
Signed-off-by: Tito Ragusa <farmatito@tiscali.it >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-08 10:21:27 +02:00
Denys Vlasenko
a5e6c6cd3b
setsid: code shrink, expanded comments
...
function old new delta
setsid_main 56 53 -3
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-07 18:49:51 +02:00
Denys Vlasenko
543efd7b4b
libbb: code shrink
...
function old new delta
xmalloc_ttyname 46 42 -4
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-06 00:41:06 +02:00
Denys Vlasenko
aadb485bd0
udhcpc: tweak help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-05 02:21:36 +02:00
Cédric Cabessa
adc30b4cf9
syslogd: use _PATH_LOG when available
...
Signed-off-by: Cédric Cabessa <ccabessa@genymobile.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-05 02:09:16 +02:00
Paul B. Henson
985345d002
ubi_tools: fix typo in strcpy
...
Signed-off-by: Paul B. Henson <henson@acm.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-04 21:07:20 +02:00
Tito Ragusa
da331d779c
ifplugd: use a larger netlink buffer
...
function old new delta
check_existence_through_netlink 310 321 +11
Signed-off-by: Tito Ragusa <farmatito@tiscali.it >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-04 18:10:26 +02:00
Denys Vlasenko
cc1c9ca6f8
less: support "less 1<>TTY"
...
function old new delta
less_main 2466 2507 +41
xmalloc_ttyname 46 42 -4
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-04 17:41:19 +02:00
Sven-Göran Bergh
9369634167
volume_id: add f2fs detection
...
function old new delta
volume_id_probe_f2fs - 98 +98
Signed-off-by: Sven-Göran Bergh <sgb@systemasis.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-08-01 11:05:08 +02:00
Bernhard Reutner-Fischer
a060a1ad96
awk: Fix handling of functions with empty body
...
ammend b79a0fef99 to properly
handle functions defined in another scope.
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2013-07-31 21:51:14 +02:00
Sven-Göran Bergh
e418b2e7bb
volume_id: nilfs config description.
...
Config description for nilfs added.
No code change.
Signed-off-by: Sven-Göran Bergh <sgb@systemasis.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-31 18:30:34 +02:00
Sven-Göran Bergh
15d0a860e9
volume_id: Adopt to new config style.
...
Config instructions for util-linux/volume_id are moved into the
source files according to the new config feature.
No code change.
Signed-off-by: Sven-Göran Bergh <sgb@systemasis.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-31 15:57:59 +02:00
Sven-Göran Bergh
3b45801dc6
volume_id: Adopt to new kbuild style.
...
Kbuild instructions for util-linux/volume_id are moved into the
source files according to the new build feature.
No code change.
Signed-off-by: Sven-Göran Bergh <sgb@systemasis.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-31 15:45:20 +02:00
Denys Vlasenko
982e87f2fb
Whitespace fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-30 11:52:58 +02:00
Denys Vlasenko
bfa6ed1bf4
catv: code shrink
...
catv_main 250 227 -23
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-30 11:41:58 +02:00
Bartosz Golaszewski
79c618c411
Refactor catv. Move visible() from stty to libbb.
...
Fixes the following TODO:
stty's visible() function and catv's guts are identical. Merge them into
an appropriate libbb function.
Also makes catv behave exactly like coreutils' cat -v e.g. it'll print 'M-^I'
instead of 'M- '.
function old new delta
visible - 70 +70
do_display 431 379 -52
catv_main 306 250 -56
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/2 up/down: 70/-108) Total: -38 bytes
Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-30 06:29:42 +02:00
Denys Vlasenko
d0bc708cb5
unpackers: by users' request, print compression percentage if -v and DESKTOP
...
function old new delta
bbunpack 634 731 +97
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-30 05:41:11 +02:00
Denys Vlasenko
05965cbb75
nc: remove unnecessary "errno = 0"
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-29 14:18:32 +02:00
Denys Vlasenko
2ead5316b4
iplink: fix build error (IFLA_VLAN_PROTOCOL defined before include)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-28 23:24:55 +02:00
Denys Vlasenko
2641426187
logread: intercept all fatal signals, not just SIGINT
...
function old new delta
interrupted 27 20 -7
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-28 23:17:00 +02:00
Denys Vlasenko
fd3ac96c0f
nc: remove some dead code
...
function old new delta
readwrite 887 841 -46
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-28 22:24:51 +02:00
Denys Vlasenko
ffeeb7a96c
nc: exit when both stdin and network are closed.
...
function old new delta
nc_main 1051 1042 -9
readwrite 943 887 -56
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-28 22:23:12 +02:00
Denys Vlasenko
ca54b662e7
nc: use symbolic SHUT_WR instead of literal 1
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-28 21:08:37 +02:00
Denys Vlasenko
ad546ec606
Update docs/tcp.txt
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-27 14:35:51 +02:00
Bernhard Reutner-Fischer
9078633fee
buildsys: Add helper to list suid applets
...
Add a helper script that lists all applets that
- do or may require SUID provileges (busybox.cfg.suid)
- do not require SUID provileges (busybox.cfg.nosuid)
Some setups prefer to build two busybox binaries, one that is suid which
contains all applets that do or may require suid privileges, and a
second one for all the rest (which drops suid). To ease splitting these
two binaries, generate a list of CONFIG_ items for the suid binary.
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2013-07-26 13:39:46 +02:00
Denys Vlasenko
7801148a81
Add notes about TCP programming quirks.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-25 14:00:37 +02:00
Bartosz Golaszewski
688a7e3f04
date: accept 'yyyy-mm-dd HH' and 'yyyy-mm-dd' date formats
...
function old new delta
parse_datestr 794 885 +91
Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-25 05:10:01 +02:00
Bartosz Golaszewski
c19be75d57
networking: code shrink
...
function old new delta
in_ether - 124 +124
hexchar2int 42 - -42
ifconfig_main 1237 1106 -131
ether_input 141 - -141
------------------------------------------------------------------------------
(add/remove: 2/2 grow/shrink: 0/1 up/down: 124/-314) Total: -190 bytes
Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-25 04:39:04 +02:00
Denys Vlasenko
b855460adc
awk.tests: add test for recent large integer fix
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-22 11:49:06 +02:00
Denys Vlasenko
b0e9b72915
sed: fix matching of newlines by $
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-21 22:09:44 +02:00
Denys Vlasenko
26cd90c7fd
unzip: survive lack of CDF on non-streaming zip files
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-21 02:31:08 +02:00
Denys Vlasenko
1390a010b6
awk: use "long long" as integer type, not "int"
...
Testcase:
awk "BEGIN{n=(2^31)-1; print n, int(n), n%1, ++n, int(n), n%1}"
2147483647 2147483647 0 2147483648 2147483648 0
(last three values weren't showing right)
function old new delta
evaluate 3444 3458 +14
fmt_num 221 230 +9
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-20 21:23:01 +02:00
Denys Vlasenko
5e87e8aebb
unzip: increase PEEK_FROM_END from 16k to 64k
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-20 15:20:46 +02:00
Patrick McHardy
a7ecbed56b
ip link: add VLAN support
...
function old new delta
do_add_or_delete - 1073 +1073
get_u16 - 62 +62
static.protocols - 16 +16
do_iplink 1235 1232 -3
do_change 495 - -495
------------------------------------------------------------------------------
(add/remove: 3/1 grow/shrink: 0/1 up/down: 1151/-498) Total: 653 bytes
Signed-off-by: Patrick McHardy <kaber@trash.net >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-15 05:16:13 +02:00
Denys Vlasenko
9b58fe9c0b
ip: code shrink
...
function old new delta
do_ipaddr 78 81 +3
do_iprule 140 139 -1
do_iptunnel 283 278 -5
iprule_modify 851 841 -10
ipaddr_modify 1293 1236 -57
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/4 up/down: 3/-73) Total: -70 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-15 05:15:46 +02:00
Denys Vlasenko
25ce3ee9f3
typo fix in comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-14 01:23:06 +02:00
Denys Vlasenko
c72b43c2f0
Commonalize typical [b,]k,m suffix struct
...
function old new delta
bkm_suffixes - 32 +32
static.km_suffixes 24 - -24
suffixes 32 - -32
static.bkm 32 - -32
head_tail_suffixes 32 - -32
------------------------------------------------------------------------------
(add/remove: 2/6 grow/shrink: 0/0 up/down: 72/-160) Total: -88 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-13 23:49:45 +02:00
Bernhard Reutner-Fischer
0dacb68e1a
chrt: remove warning for _POSIX_PRIORITY_SCHEDULING
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2013-07-08 11:20:13 +02:00
Denys Vlasenko
e95738f635
typo fix in comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-08 03:13:08 +02:00
Denys Vlasenko
d87fcd4888
tail: code shrink
...
function old new delta
tail_main 1548 1613 +65
tail_read 136 34 -102
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 65/-102) Total: -37 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-08 02:39:51 +02:00
Denys Vlasenko
40ab27a225
sed: remove now-redundant backslash-newline handling
...
4b0bb9e0fd added this code in 2007,
then in a2215b98f7 more general fix
was added.
function old new delta
add_cmd_block 98 58 -40
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-08 02:07:16 +02:00
Denys Vlasenko
e93d15613e
sed: document where we are more liberal then GNU
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-08 01:43:40 +02:00
Denys Vlasenko
d8f6d8c627
Call setlocale("") , not "C", if we want to set the default one
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-07 14:41:58 +02:00
Denys Vlasenko
2301d127a2
unicode: check $LC_CTYPE too to detect Unicode mode
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-05 22:00:57 +02:00
Cristian Ionescu-Idbohrn
4f9fc1e5f5
foo*sum: Correct syntax error
...
coreutils/md5_sha1_sum.c:156:3: error: expected '}' before 'else'
Signed-off-by: Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com >
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2013-07-04 11:33:42 +02:00
Denys Vlasenko
6651e42609
tail: track file size only in -f mode
...
This eliminates extra fstat and lseek calls on every read
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-02 20:09:15 +02:00
Denys Vlasenko
cd8eece88e
foo*sum: report I/O errors, don't merely exit with 1.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-02 19:11:01 +02:00
Denys Vlasenko
3e7ecb179b
unicode: check $LC_ALL to detect Unicode mode, not only $LANG
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-02 17:30:23 +02:00
Denys Vlasenko
ea267d518f
wget: do not abort if "_" is encountered in a HTTP header
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-07-01 15:05:09 +02:00
Denys Vlasenko
1bf560e9c3
cryptpw: do not segfault on EOF. Closes 6350
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-06-30 21:28:55 +02:00
Rich Felker
16614e9bab
*: change execl sentinels from NULL to (char*)0
...
Signed-off-by: Rich Felker <dalias@aerifal.cx >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-06-30 13:45:17 +02:00
Denys Vlasenko
e9b3fcc3e4
ubi_tools: enhance -s option to allow size multiplier to match mtd-utils
...
Based on patch by Paul B. Henson <henson@acm.org >
function old new delta
static.size_suffixes - 32 +32
ubi_tools_main 1141 1148 +7
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-06-30 02:47:45 +02:00
Denys Vlasenko
f798ba9717
ubi_tools: add forgotten argv++
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-06-30 02:46:44 +02:00
Denys Vlasenko
65bdf0b737
ubi_tools: extend supported volume size to 64 bits; shrink code
...
function old new delta
get_num_from_file - 90 +90
packed_usage 29395 29377 -18
ubi_tools_main 1349 1141 -208
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/2 up/down: 90/-226) Total: -136 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-06-30 02:38:18 +02:00
Paul B. Henson
f86404f773
ubimkvol: add -m option to create volume of maximum size
...
Signed-off-by: Paul B. Henson <henson@acm.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-06-30 02:37:05 +02:00
Denys Vlasenko
173aa78bcf
pstree: fix theoretically unsafe code
...
In practice, p->comm is never long enough to trigger the bug, but still.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-06-28 01:59:25 +02:00
Denys Vlasenko
26a7e2ecbf
ping: code shrink
...
function old new delta
unpack_tail 262 243 -19
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-06-28 01:33:47 +02:00
Denys Vlasenko
59f46676a9
Move create_icmp[6]_socket to its only user, and simplify it
...
function old new delta
run_applet_and_exit 711 714 +3
sendping_tail 239 236 -3
common_ping_main 1798 1770 -28
create_icmp_socket 65 - -65
create_icmp6_socket 65 - -65
------------------------------------------------------------------------------
(add/remove: 0/4 grow/shrink: 1/2 up/down: 3/-161) Total: -158 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-06-28 00:30:46 +02:00
Denys Vlasenko
4928e9f7d0
losetup: assorted fixes. Closes 6314
...
"losetup -d" was not complaining that LOOPDEV is missing.
"losetup -a" was listing only up to /dev/loop9.
"losetup -f" looped forever if llop0 was taken, and never tried
anything after /dev/loop9.
"-o" with other options (say, -r) had no effect.
function old new delta
losetup_main 376 419 +43
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-06-27 03:45:16 +02:00
Thomas De Schampheleire
879f008a8f
lsof: correct check for symbolic link
...
Busybox lsof used the d_type field of a 'struct dirent' to verify whether the
entry is a symbolic link. This field, however, is not portable. On at least
one board [1] I have seen, that field is 0, and the check fails even though
the entry is a link.
The explicit check for a symbolic link is really only needed to skip the
default directory entries '.' and '..'. The directory /proc/<pid>/fd/
should not contain anything else but these two and symbolic links.
With these assumptions, this patch replaces the explicit link check with a
basic check for '.' and '..' (and any hidden file). In the unlikely case that
there are other file types, xmalloc_readlink() will return NULL, and we can
skip the entry.
[1] A MIPS-based board with glibc 2.9, Linux 2.6.32.27.
Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-06-27 03:44:46 +02:00
Denys Vlasenko
d66eb9042d
nslookup: set default DNS server again. Hopefully helps with 675
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-06-27 01:09:51 +02:00
Denys Vlasenko
1f5e81f8f8
md5/sha512: a better fix for strict aliasing warnings
...
The locations *are* well-aligned for direct stores
on any architecture.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-06-27 01:03:19 +02:00
Mike Frysinger
f6205c6ab7
md5/sha512: fix strict aliasing warnings
...
If the target can tolerate these issues, then gcc is smart enough
to generate the same code (x86_64 produces the same code). If the
target can't, then it needs the memcpy anyways.
libbb/hash_md5_sha.c: In function 'common64_end':
libbb/hash_md5_sha.c:87:4: warning:
dereferencing type-punned pointer will break strict-aliasing rules
*(uint64_t *) (&ctx->wbuffer[64 - 8]) = t;
libbb/hash_md5_sha.c: In function 'sha512_end':
libbb/hash_md5_sha.c:886:4: warning:
dereferencing type-punned pointer will break strict-aliasing rules
*(uint64_t *) (&ctx->wbuffer[128 - 8]) = t;
libbb/hash_md5_sha.c:889:4: warning:
dereferencing type-punned pointer will break strict-aliasing rules
*(uint64_t *) (&ctx->wbuffer[128 - 16]) = t;
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2013-06-19 11:49:15 -04:00
Mike Frysinger
fea2588021
pstree: stop truncating thread names
...
This also fixes a minor buffer overflow when displaying threads as
add_proc() only expects COMM_LEN bytes, but we give it one more than
that.
Reported-by: Dag Wieers <dag@wieers.com >
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2013-06-19 11:29:57 -04:00
Denys Vlasenko
5a7e3376b7
ntpd: set offset to 0.0 in "usync" event
...
function old new delta
ntpd_main 1030 1026 -4
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-05-23 16:06:59 +02:00
Denys Vlasenko
07c5987498
ntpd: set G.last_script_run even if script isn't configured
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-05-22 18:18:51 +02:00
Denys Vlasenko
5ffdd1d981
ntpd: make "unsync" code actually work.
...
While at it: don't run "periodic" if interrupted by a signal.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-05-22 18:16:34 +02:00
Denys Vlasenko
d99ef636f6
ntpd: drop delay outliers; run "unsync" handler if no replies for some time
...
function old new delta
ntpd_main 960 1029 +69
recv_and_process_peer_pkt 834 892 +58
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/0 up/down: 127/0) Total: 127 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-05-22 17:48:19 +02:00
Jonathan Liu
b6dc13c2d3
sulogin: allow system maintenance login if root password is empty
...
The current password checking is unable to distinguish between the user
entering an empty password or pressing Control-D. As a result, an empty
password always results in normal startup.
We modify bb_ask to return NULL if Control-D is pressed without entering
a password. The sulogin applet is then modified to only proceed to
normal startup if bb_ask returns NULL. This covers EOF with no password,
interrupt by timeout and ^C.
Signed-off-by: Jonathan Liu <net147@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-05-21 17:01:55 +02:00
Denys Vlasenko
9cb1e2f86b
sulogin: correct lying comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-05-21 16:47:36 +02:00
Denys Vlasenko
f958425451
init: remove special-case code for machines with less tham 1 MB of RAM.
...
function old new delta
init_main 920 781 -139
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-05-21 16:36:51 +02:00
Denys Vlasenko
ae0cf2a9d7
stty: disable CIBAUD leak check - it is not necessary on Linux
...
function old new delta
stty_main 1233 1196 -37
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-05-17 20:08:12 +02:00
Denys Vlasenko
e9581b673c
stty: code shrink
...
function old new delta
set_mode 759 725 -34
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-05-17 18:06:49 +02:00
Denys Vlasenko
b443a3780d
udhcp: code shrink
...
function old new delta
attach_option 416 413 -3
allocate_tempopt_if_needed 74 - -74
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-05-17 15:19:47 +02:00
Denys Vlasenko
c133fa66f3
udhcpc: fix a problem with binary-encoded options #2
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-05-17 15:13:38 +02:00
Denys Vlasenko
6db5f679a2
find:: get rid of nested function (it's a gcc-ism)
...
function old new delta
alloc_action - 80 +80
parse_params 1459 1445 -14
static.alloc_action 98 - -98
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 0/1 up/down: 80/-112) Total: -32 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-05-16 18:36:42 +02:00
James Hogan
5fc0585c01
grep: fix grep -x to not set REG_NOSUB
...
When -F isn't specified (and !ENABLE_EXTRA_COMPAT), grep -x uses
regexec's regmatch_t output to determine if the match was the entire
line. However it also set the REG_NOSUB flag which makes it ignore the
regmatch_t argument.
Add an exception to the setting of REG_NOSUB for OPT_x and add some test
cases to test the behaviour of -x.
Signed-off-by: James Hogan <james.hogan@imgtec.com >
Cc: Natanael Copa <ncopa@alpinelinux.org >
Cc: Denys Vlasenko <vda.linux@googlemail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-05-16 14:47:05 +02:00
Denys Vlasenko
aa94130f74
volume_id_internal.h: drop unoptimized byteswap routines
...
function old new delta
volume_id_probe_hfs_hfsplus 802 627 -175
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-05-15 09:36:40 +02:00
Bartosz Golaszewski
414db791d0
grep: don't bail out on first mismatch if '-w' option is set
...
Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-05-15 09:20:40 +02:00
Denys Vlasenko
e0a6ab698f
Fix build failures caused by not compiling open_transformer.c ( #2 )
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-05-15 03:23:30 +02:00
Denys Vlasenko
6782f48ccb
find: support -HLP
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-05-14 17:20:35 +02:00
Nikolaus Voss
c3cf1e30a3
mdev: use $DEVNAME in uevent sysfs file for device node name
...
516530c932 uses $DEVNAME variable
for device node name. This is fine, but only works for hotplugging,
"mdev -s" will behave differently when DEVNAME and basename(path)
differ.
This patch extracts the DEVNAME from the uevent sysfs file in
make_device(), thus works for hot- and coldplugging; so using
the environment DEVNAME on hotplug events is no longer necessary.
Signed-off-by: Nikolaus Voss <n.voss@weinmann.de >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-05-13 03:55:11 +02:00
Denys Vlasenko
ff463a885d
hush: fix build failure if FEATURE_EDITING=y && !HUSH_INTERACTIVE
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-05-12 02:45:23 +02:00
Denys Vlasenko
abbc478f1c
Fix build failures caused by not compiling open_transformer.c
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-05-12 02:34:38 +02:00
Denys Vlasenko
f76fd17d74
telnet: code shrink
...
function old new delta
telnet_main 1519 1515 -4
con_escape 296 285 -11
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-05-12 02:13:24 +02:00
Oliver Metz
041baf2720
volume_id: fix ntfs attribute search
...
len is declared as uint32_t but le16_to_cpu macro is used
Signed-off-by: Oliver Metz <oliver.metz@gmx.de >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-05-09 07:45:51 +02:00
Denys Vlasenko
264f37363d
vi: make regexp search case-insensitive if ":set ignorecase" is active
...
Reported by Dan Moinescu <dan@moinescu.net >.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-04-21 15:51:41 +02:00
Flemming Madsen
d96ffda62e
ash,hush: history builtin
...
function old new delta
show_history - 39 +39
builtin_history - 16 +16
historycmd - 13 +13
bltins1 312 324 +12
builtintab 336 344 +8
popstring 134 140 +6
hush_main 1048 1046 -2
ash_main 1398 1396 -2
size_from_HISTFILESIZE 44 40 -4
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 3/3 up/down: 94/-8) Total: 86 bytes
Signed-off-by: Flemming Madsen <busybox@themadsens.dk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-04-07 18:47:24 +02:00
Denys Vlasenko
3beab83e4f
hush: fix for "while false && true; do echo BUG; break; done". closes 6170
...
function old new delta
run_list 959 941 -18
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-04-07 18:16:58 +02:00
Denys Vlasenko
d35cbad0ef
mdev: call index_in_strings on $ACTION only after we checked it for NULL
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-04-02 14:37:06 +02:00
Denys Vlasenko
2df1c64f38
examples/mdev.conf.change_blockdev.sh: update
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-04-02 13:26:24 +02:00
Denys Vlasenko
e306c11367
examples: add mdev example for Android phone
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-30 16:23:12 +01:00
Denys Vlasenko
2c0508b4fa
examples/inittab: fix a few incorrect statements about init
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-29 14:35:44 +01:00
Denys Vlasenko
8172d054db
lineedit: \W on "/bin" should show "bin", not "/bin"
...
function old new delta
parse_and_put_prompt 793 785 -8
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-29 13:21:53 +01:00
Denys Vlasenko
1d14569a66
lineedit: implement \T \t \A \@ prompts escapes, fix \W escape, drop \!
...
function old new delta
parse_and_put_prompt 742 793 +51
read_line_input 3836 3826 -10
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-29 13:10:23 +01:00
Denys Vlasenko
8f2cb7ab26
libbb: introduce and use strftime_[YYYYMMDD]HHMMSS()
...
function old new delta
strftime_fmt - 53 +53
strftime_YYYYMMDDHHMMSS - 12 +12
strftime_HHMMSS - 12 +12
human_time 44 43 -1
fmtstr_t 9 - -9
step_time 361 345 -16
watch_main 261 232 -29
------------------------------------------------------------------------------
(add/remove: 3/1 grow/shrink: 0/3 up/down: 77/-55) Total: 22 bytes
text data bss dec hex filename
919203 932 17692 937827 e4f63 busybox_old
919209 932 17692 937833 e4f69 busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-29 12:30:33 +01:00
Denys Vlasenko
6c852bfcad
lineedit: add handling of \H in prompt
...
Based on the patch by Arnaud Rébillout <rebillout@syscom.ch >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-28 13:20:12 +01:00
Denys Vlasenko
2c24806bf4
hexdump: need to use xstrtoull for off_t
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-27 15:18:32 +01:00
Denys Vlasenko
ef6747e290
hexdump: don't unconditionally limit the usable address range
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-27 15:15:33 +01:00
Denys Vlasenko
80a38ca11c
man: install to /usr/bin, not /sbin
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-27 14:30:18 +01:00
Denys Vlasenko
85daa67bc2
httpd: don't allow tabs and multiple spaces in request string
...
HTTP standard doesn't allow it and no sane clients should ever use it.
function old new delta
handle_incoming_and_exit 2795 2785 -10
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-25 23:27:00 +01:00
Bernhard Reutner-Fischer
c608731e78
setserial: Fix typo: s/baund_rate/baud_rate/g
...
as noted by Christoph Handel opensource at macht-blau.org
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2013-03-22 17:04:51 +01:00
Denys Vlasenko
a42f530e03
sendmail: code shrink on top of previous patches
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-18 18:47:16 +01:00
Aaro Koskinen
e82bfef839
sendmail: don't add multiple To: headers
...
When adding To: header, add only a single header. If there are multiple
addresses, make it multiline.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-18 18:46:31 +01:00
Aaro Koskinen
4a732220e9
sendmail: don't add To: header if it already exists
...
If the message we are sending already has To: header, don't add a new one.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-18 18:45:15 +01:00
Aaro Koskinen
236f222cde
sendmail: support long header fields for recipients
...
Support long header fields in To:, Cc: and Bcc: headers.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-18 18:45:15 +01:00
Aaro Koskinen
a8ba0a0d0c
sendmail: support address lists
...
Headers To:, Cc: and Bcc: may have a list of comma-separated
addresses. Add support for that. Commas inside double quotes are ignored.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-18 18:45:14 +01:00
Aaro Koskinen
06ad964ae6
sendmail: support addresses inside angle brackets
...
When we extract addresses from the e-mail, try to first check for an
address inside angle brackets.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-18 18:45:14 +01:00
Aaro Koskinen
95e99e5271
sendmail: don't mangle e-mail headers
...
Leave the original To: and Cc: headers untouched, when we try to extract
addresses from them.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-18 18:45:13 +01:00
Aaro Koskinen
14285d14a5
sendmail: avoid sending mail to wrong addresses
...
If we get an address we cannot parse properly, we currently just strip
the unknown characters and still try to send it. This is considered
harmful as the resulting address may still be valid but different from
what the user originally intended.
Instead, skip sending to an address we cannot fully understand and
print the characters what we have scanned so far. Leading and trailing
whitespace is allowed and silently stripped.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-18 18:45:13 +01:00
Denys Vlasenko
7c6f2d4207
mkfs_minix: use get_volume_size_in_bytes instead of local version
...
Hopefully this also closes 4730
function old new delta
valid_offset 55 - -55
mkfs_minix_main 2925 2674 -251
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 0/1 up/down: 0/-306) Total: -306 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-18 02:26:58 +01:00
Denys Vlasenko
4424dfd69b
mdev: fix build failure
...
The error was "error: 'struct globals' has no member named 'parser'"
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-17 23:01:17 +01:00
Denys Vlasenko
c56d12505b
nc: fix build failure ("subscripted value is neither array nor pointer")
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-17 22:59:51 +01:00
Denys Vlasenko
091f831424
ash: add comment about failures in source builtin. No code changes.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-17 14:25:22 +01:00
Denys Vlasenko
88b532d59a
hush: source builtin should override $N only if it has args
...
function old new delta
builtin_source 174 184 +10
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-17 14:11:04 +01:00
Stefan Hellermann
4ef1439c59
ash: read $HOME/.profile instead of $(pwd)/.profile
...
ash --login should read ~/.profile instead of .profile in the current
directory. I noticed it while trying to figure out why /root/.profile
is only read sometimes.
function old new delta
ash_main 1374 1398 +24
Signed-off-by: Stefan Hellermann <stefan@the2masters.de >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-15 02:45:50 +01:00
Stefan Hellermann
aeb717aa5e
ash: move code to allow setting $HOME in /etc/profile
...
move HISTFILE=$HOME/.ash_history below reading /etc/profile,
so that /etc/profile can set $HOME. HOME can be unset when
directly invoking ash --login from init without going through
getty.
Signed-off-by: Stefan Hellermann <stefan@the2masters.de >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-15 02:37:51 +01:00
Denys Vlasenko
9e7c002182
vi: code shrink
...
function old new delta
status_line_bold_errno - 32 +32
colon 2891 2873 -18
file_insert 354 313 -41
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/2 up/down: 32/-59) Total: -27 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-15 02:17:29 +01:00
Ron Yorston
cb5aa725df
vi: fix adjustment of buffer on partial file read
...
The second argument to text_hole_delete was incorrect: it should
be a pointer to the end of the hole.
Signed-off-by: Ron Yorston <rmy@tigress.co.uk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-15 02:10:07 +01:00
Denys Vlasenko
257a77568a
sysklogd: trim help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-15 01:50:35 +01:00
Guilherme Maciel Ferreira
4a600f8777
traceroute: free some memory allocated by xzalloc()
...
Signed-off-by: Guilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-15 01:23:48 +01:00
Alexander Shiyan
45dc96c8a6
flash_eraseall: implement -N
...
Signed-off-by: Alexander Shiyan <shc_work@mail.ru >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-15 00:42:39 +01:00
Alexander Shiyan
0d61dcd641
nanddump: fix build if nandwrite isn't enabled
...
Signed-off-by: Alexander Shiyan <shc_work@mail.ru >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-15 00:27:41 +01:00
Denys Vlasenko
af4a07a244
ping[6]: accept and ignore -n. Code shrink
...
function old new delta
print_stats_and_exit 270 232 -38
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-15 00:11:35 +01:00
Denys Vlasenko
7b5d5c1bdb
udhcpd: also add -I ADDR to help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-14 02:18:52 +01:00
Denys Vlasenko
e3f5b73ad0
udhcpd: add -I LOCAL_ADDR option
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-13 22:27:37 +01:00
Bernhard Reutner-Fischer
b79a0fef99
awk: Fix handling of functions with empty body
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2013-03-13 09:47:07 +01:00
Mandeep Singh Baines
7991d45446
losetup: fix util-linux compatibility
...
Added -a support. Also made sure -f works as follows:
losetup [-r] [-o offset] {-f|loopdev} file
Removed support for 'losetup -r' with no arguments.
Signed-off-by: Mandeep Singh Baines <msb@chromium.org >
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2013-03-12 16:31:25 -04:00
Mike Frysinger
1b49c25e0a
readlink: note that our -f is really -e
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2013-03-12 11:38:03 -04:00
Mike Frysinger
af9e70b8cb
readlink: uClibc supports automatic allocation too now
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2013-03-12 11:14:24 -04:00
Mike Frysinger
445e7543e8
platform: use KERNEL_VERSION to simplify uClibc version checking
...
This makes reading the logic (as well as adding new code) a lot simpler,
and fixes one or two cases that were broken due to incorrect sub-version
tests.
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2013-03-12 11:13:22 -04:00
Mike Frysinger
bca5c556c4
udhcpc: use readlink rather than realpath
...
The realpath utility requires all paths exist when canonicalizing
symlinks. If /etc/resolv.conf points to a tmpfs, then it might
not exist initially. Use `readlink -f` so that we follow all
symlinks that are available.
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2013-03-12 10:48:09 -04:00
Denys Vlasenko
9bbf6b98c4
hostid: do not output sign-extended host id. Closes 6056
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-04 03:04:38 +01:00
Mike Frysinger
93b51819cf
archival: note implicit dependencies between lzop & bbunzip
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2013-03-03 00:48:53 -05:00
Denys Vlasenko
507f6ea6d2
decompress_unlzma: move function, no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-01 14:48:10 +01:00
Denys Vlasenko
a2d04e0702
decompress_unlzma: 10% speedup in "small" code
...
text data bss dec hex filename
1796 0 0 1796 704 decompress_unlzma.o
1801 0 0 1801 709 decompress_unlzma.o
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-01 14:43:07 +01:00
Denys Vlasenko
c09fd27c0a
decompress_unlzma: make "fast" version a bit smaller
...
It is not slower. In fact it seems a tiny bit faster too.
text data bss dec hex filename
2827 0 0 2827 b0b decompress_unlzma.o
2797 0 0 2797 aed decompress_unlzma.o
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-01 14:37:58 +01:00
Denys Vlasenko
2fe5fed2df
lzop: fiq -q and OPTION_DECOMPRESS mismatch
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-03-01 08:25:45 +01:00
Mike Frysinger
08e28e806d
bbunzip: fix order of flags vs bit defines
...
Too much code shuffling.
Reported-by: Mandeep Singh Baines <msb@chromium.org >
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2013-02-28 21:28:21 -05:00
Mike Frysinger
920c1baab7
bbunzip: ignore the -q flag with the decompressors
...
The -q flag is used in shell scripts for suppressing output.
Have our applets swallow the flag for compatibility.
Reported-by: Mandeep Singh Baines <msb@chromium.org >
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2013-02-28 17:21:50 -05:00
Denys Vlasenko
fb03663619
ifupdown: support "source" stanza in /etc/network/interfaces
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-28 19:01:28 +01:00
Denys Vlasenko
41655438c6
zcat: fix "zcat FILE" trying to do detection twice
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-28 18:37:04 +01:00
Denys Vlasenko
8e96efa323
zcat: if seamless uncompressors are defined, autodetect file's format
...
function old new delta
bbunpack 526 622 +96
packed_usage 29335 29341 +6
gunzip_main 64 67 +3
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-28 18:06:09 +01:00
Denys Vlasenko
f2d8478e56
fix error message on failure to oen /dev/null; fix zcat's help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-28 18:05:01 +01:00
Denys Vlasenko
577235dee8
code shrink in check_errors_in_children()
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-28 16:38:25 +01:00
Denys Vlasenko
7794c21daf
pgrep: fix a "missing closing paren" build error
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-28 15:51:55 +01:00
Denys Vlasenko
216e952fb8
ifplugd: make -k send SIGINT, not SIGQUIT
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-28 12:50:09 +01:00
Bernhard Walle
47f8558eee
pgrep: fix -x option
...
Because when -x is used (exact match), then we cannot compile the
regular expression with REG_NOSUB. The manual page regcomp(3) states
in section "Byte offsets":
Unless REG_NOSUB was set for the compilation of the pattern
buffer, it is possible to obtain substring match addressing
information.
The problem was detected on an ARM system with glibc 2.16.
Signed-off-by: Bernhard Walle <bernhard@bwalle.de >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-28 12:42:38 +01:00
Denys Vlasenko
ed954b6855
Fix config help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-28 12:39:27 +01:00
Denys Vlasenko
efd0698f74
make --help return exitcode 0. Closes 5612
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-28 12:34:18 +01:00
Peter Korsgaard
5d1c599d76
run-parts: fix unicode creep in --help
...
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-28 12:25:49 +01:00
Denys Vlasenko
de6f148006
nc_bloaty: support -ll and -lk. Closes 2245
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-28 12:20:06 +01:00
Denys Vlasenko
a14f319805
nc: don't redirect stderr to network in -e PROG mode
...
This in incompatible with nc-1.10, but makes a lot of sense.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-28 11:09:14 +01:00
Thomas De Schampheleire
bc0ffc0e97
nameif: fix use-after-free in ENABLE_FEATURE_CLEAN_UP code
...
Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-28 10:31:54 +01:00
Denys Vlasenko
1e43a381b2
run-parts: stop providing incompatible short options
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-28 10:22:49 +01:00
Peter Korsgaard
0496e824a5
run-parts: add --exit-on-error | -e support
...
The "big" run-parts supports a handy --exit-on-error to stop execution on
errors, so lets support it as well.
Upstream doesn't have a short option for it, but I've used '-e' for busybox.
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-28 09:59:23 +01:00
Leonid Lisovskiy
f59d563399
xz: fix put_unaligned_{l,b}e32
...
Signed-off-by: Leonid Lisovskiy <lly.dev@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-27 18:32:58 +01:00
Shawn J. Goff
46031da862
lineedit: initialize delptr
...
In vi mode, the 'p' and 'P' commands caused a segfault when nothing had
been put in the buffer yet because the delptr was not initialized.
Signed-off-by: Shawn J. Goff <shawn7400@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-27 18:30:05 +01:00
Lasse Collin
380c8a0763
xz: support concatenated .xz streams
...
function old new delta
xz_dec_reset - 77 +77
unpack_xz_stream 2402 2397 -5
Signed-off-by: Lasse Collin <lasse.collin@tukaani.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-27 17:26:40 +01:00
Lasse Collin
433757413f
xz: mention xzminidec.c in README
...
Signed-off-by: Lasse Collin <lasse.collin@tukaani.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-27 16:41:36 +01:00
Lasse Collin
c3045edec2
xz: fix incorrect XZ_BUF_ERROR
...
xz_dec_run() could incorrectly return XZ_BUF_ERROR if
all of the following was true:
- The caller knows how many bytes of output to expect
and only provides that much output space.
- When the last output bytes are decoded, the
caller-provided input buffer ends right before
the LZMA2 end of payload marker. So LZMA2 won't
provide more output anymore, but it won't know it
yet and thus won't return XZ_STREAM_END yet.
- A BCJ filter is in use and it hasn't left any
unfiltered bytes in the temp buffer. This can happen
with any BCJ filter, but in practice it's more likely
with filters other than the x86 BCJ.
This fixes <https://bugzilla.redhat.com/show_bug.cgi?id=735408 >
where Squashfs thinks that a valid file system is corrupt.
Thanks to Jindrich Novy for telling me that such a bug report
exists, Phillip Lougher for providing excellent debug info,
and other people on #fedora-ppc.
This also fixes a similar bug in single-call mode where the
uncompressed size of a XZ Block using BCJ + LZMA2 was 0 bytes
and caller provided no output space. Many empty .xz files
don't contain any Blocks and thus don't trigger this bug.
This also tweaks a closely related detail: xz_dec_bcj_run()
could call xz_dec_lzma2_run() to decode into temp buffer when
it was known to be useless. This was harmless although it
wasted a minuscule number of CPU cycles.
Signed-off-by: Lasse Collin <lasse.collin@tukaani.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-27 16:39:56 +01:00
Lasse Collin
a1ae2b75a7
xz: fix decoding of LZMA2 streams having no uncompressed data.
...
No .xz encoder creates files with empty LZMA2 streams,
but such files would still be valid and decompressors
must accept them.
Note that empty .xz files are a different thing than
empty LZMA2 streams. This bug didn't affect typical .xz
files that had no uncompressed data.
Signed-off-by: Lasse Collin <lasse.collin@tukaani.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-27 16:38:06 +01:00
Lasse Collin
efb800439f
cz: add C++ support to xz.h
...
Signed-off-by: Lasse Collin <lasse.collin@tukaani.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-27 16:37:18 +01:00
Lasse Collin
aada3126a7
xz: remove an empty line from xz_dec_lzma2.c
...
Signed-off-by: Lasse Collin <lasse.collin@tukaani.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-27 16:36:17 +01:00
Lasse Collin
b967e42b77
xz: make bcj_x86_test_msbyte() an inline function
...
Signed-off-by: Lasse Collin <lasse.collin@tukaani.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-27 16:34:06 +01:00
Lasse Collin
18714d8460
xz: add a comment about using uint32_t as vli_type
...
Signed-off-by: Lasse Collin <lasse.collin@tukaani.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-27 16:32:03 +01:00
Lasse Collin
9056fcecbf
xz: avoid "NOTE:" in xz.h
...
Signed-off-by: Lasse Collin <lasse.collin@tukaani.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-27 16:28:33 +01:00
Lasse Collin
3a7b2417f9
xz: update README
...
Signed-off-by: Lasse Collin <lasse.collin@tukaani.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-27 16:26:03 +01:00
Lasse Collin
04f296b28a
xz: omit explicit \0 from HEADER_MAGIC
...
Signed-off-by: Lasse Collin <lasse.collin@tukaani.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-27 16:23:24 +01:00
Denys Vlasenko
e3e321682c
Fix move_to_unaligned16
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-27 15:49:38 +01:00
Denys Vlasenko
5bce135e36
mdev: improve $SEQ handling; improve debug logging
...
Sequential run of concurrent mdev's was too simplistic:
they waited for /dev/mdev.seq to match. This could sometimes
cause cumulative loss of time on the order of a second.
Added SIGCHLD signaling from exiting mdev to all other mdev's.
Added debugging required to see that code actually works as intended.
Example of /dev/mdev.log (with "woken up" elevated from dbg lvl 3 to 2):
mdev[1023]: first seq written
^^^^ seq, not pid
mdev[1023]: 35.022395 ACTION:add SUBSYSTEM:module DEVNAME:(null) DEVPATH:/module/lib80211
mdev[1023]: rule matched, line -1
^^^^^^^ means "default rule"
mdev[1023]: 35.022676 exiting
^^^^^^^^^ second,usec timestamp
mdev[1024]: 35.069691 ACTION:add SUBSYSTEM:vc DEVNAME:vcs9 DEVPATH:/devices/virtual/vc/vcs9
mdev[1024]: dev 7,9
mdev[1025]: 35.069889 waiting for '1024'
mdev[1026]: 35.069946 waiting for '1024'
mdev[1027]: 35.070151 waiting for '1024'
mdev[1024]: rule matched, line -1
mdev[1024]: mknod vcs9 (7,9) 20660 0:0
mdev[1024]: 35.070346 exiting
mdev[1025]: woken up
mdev[1026]: woken up
mdev[1025]: 35.071213 ACTION:add SUBSYSTEM:vc DEVNAME:vcsa9 DEVPATH:/devices/virtual/vc/vcsa9
^^^^^^^^^ took only a millisecond to start running after prev mdev exited
mdev[1025]: dev 7,137
mdev[1027]: woken up
mdev[1025]: rule matched, line -1
mdev[1025]: mknod vcsa9 (7,137) 20660 0:0
mdev[1025]: 35.072109 exiting
function old new delta
mdev_main 849 1372 +523
curtime - 59 +59
dirAction 87 134 +47
static.ts - 8 +8
keywords 19 12 -7
make_device 2189 2119 -70
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-27 10:51:41 +01:00
Mike Frysinger
9fed24c031
udhcpc: tweak math shell style with the metric var
...
Some shells (like dash) are lame and omit the POSIX increment/decrement
feature (because it is listed as optional). Tweak the shell script to
work in all POSIX variants.
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2013-02-27 01:05:34 -05:00
Mike Frysinger
39b8fb41c5
udhcpc: support resolv.conf symlinks
...
Often it is desirable to have /etc/ be on read-only storage (well, the
whole rootfs) but have things like /etc/resolv.conf be symlinks to a
writable location. Tweak the simple script to support that.
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2013-02-27 01:01:43 -05:00
Denys Vlasenko
40b97fb31e
mdev: add environment variable match
...
function old new delta
make_device 1998 2189 +191
clean_up_cur_rule 61 96 +35
dirAction 75 87 +12
mdev_main 838 849 +11
packed_usage 29272 29273 +1
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 5/0 up/down: 250/0) Total: 250 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-26 00:40:46 +01:00
Denys Vlasenko
1961aea305
move endofname() to libbb
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-26 00:36:53 +01:00
Denys Vlasenko
3305c008ed
tail: make help text for -n +N syntax more correct
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-25 07:24:44 +01:00
Denys Vlasenko
40c6da433f
head: support -n -NUM and -c -NUM
...
function old new delta
head_main 406 832 +426
packed_usage 29234 29252 +18
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/0 up/down: 444/0) Total: 444 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-25 01:26:09 +01:00
Denys Vlasenko
af0255f496
head,tail: use common suffix struct. simplify help text.
...
function old new delta
head_tail_suffixes - 32 +32
head_main 415 406 -9
packed_usage 29252 29234 -18
tail_suffixes 32 - -32
head_suffixes 32 - -32
------------------------------------------------------------------------------
(add/remove: 2/2 grow/shrink: 0/2 up/down: 32/-91) Total: -59 bytes
text data bss dec hex filename
890474 497 7584 898555 db5fb busybox_old
890415 497 7584 898496 db5c0 busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-25 01:24:32 +01:00
Denys Vlasenko
8e6a1ea825
rpm: unmap rpm file before working with next one
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-20 16:01:48 +01:00
Denys Vlasenko
d4d4f3528e
rpm: stop using statics; move main() to the end of the source file
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-20 16:01:10 +01:00
Denys Vlasenko
2aec773688
rpm: use "create+rename" method of replacing existing files
...
Users were reporting getting errors like
"ls: error while loading shared libraries: libc.so.6: ELF load command past end of file"
while rpm was unpacking glibc tarball.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-20 15:58:42 +01:00
Denys Vlasenko
10f5f9b10d
rpm: make -ql display more compatible; improve help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-20 15:57:39 +01:00
Aaro Koskinen
cf5731bcbd
fdisk_sun: fix partition alignment
...
When the display unit is sectors, the partition alignment will convert
the partition start to a wrong unit (it should always be in sectors). Fix
this.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-11 00:22:59 +01:00
Aaro Koskinen
1bd5ca2f53
fdisk_sun: fix corrupted partition data with blank disk
...
After creating Sun disk label for the first time for a blank disk,
the partition table appears corrupted because current_label_type will
never get set to a proper type. Fix this by calling check_sun_label()
after BusyBox has created the label.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-11 00:22:48 +01:00
Denys Vlasenko
272d85cc85
vasprintf: return -1 on strdup failure
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-10 23:03:38 +01:00
Denys Vlasenko
b5fc51198b
vasprintf: do not use xmalloc, it will deadlock on OOM
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-07 16:06:54 +01:00
Denys Vlasenko
ba76b7a40b
mdev: chdir back to /dev after trying to read firmware
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-04 23:35:27 +01:00
Denys Vlasenko
06af569f44
arp: code shrink
...
function old new delta
packed_usage 29257 29252 -5
arp_main 1487 1471 -16
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-04 16:18:58 +01:00
Kuleshov Aleksey
a8816dafc4
arp: fix -H/-t handling.
...
While at it, shrank code.
function old new delta
arp_main 1558 1487 -71
Signed-off-by: Kuleshov Aleksey <rndfax@yandex.ru >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-02-04 15:14:20 +01:00
Denys Vlasenko
6e29d07417
mdev: extend debug logging output
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-30 16:51:22 +01:00
Denys Vlasenko
04ac6e03c3
udhcpc6: fix port numbers used if !FEATURE_UDHCP_PORT
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-28 15:25:35 +01:00
Kang Kai
03b614739b
testsuite/du/du-k-works: fix false positive
...
Signed-off-by: Kang Kai <kai.kang@windriver.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-28 14:02:51 +01:00
Denys Vlasenko
6be6f3bfec
flashcp: trivial code shrink
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-28 12:26:29 +01:00
Denys Vlasenko
17d4436424
ps: seconds_since_boot: uint64_t -> ulong
...
Even if long is 32-bit, 4 billion second uptime isn't likely :)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-26 14:21:15 +01:00
Denys Vlasenko
ee3bc70cea
getopt: improve help text; code shrink
...
function old new delta
generate_output 356 351 -5
packed_usage 29271 29257 -14
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-24 11:36:00 +01:00
Denys Vlasenko
243e733001
flashcp: pad output to BUFSIZE. Hopefully closes 5882
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-23 11:41:22 +01:00
Denys Vlasenko
bf99807657
unzip: add missing fflush; code shrink
...
function old new delta
my_fgets80 - 41 +41
unzip_main 2291 2242 -49
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-22 11:16:08 +01:00
Denys Vlasenko
9b7ebfe644
mount: whitespace fix. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-22 11:00:45 +01:00
Denys Vlasenko
778794d1dd
*: reuse more strings
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-22 10:13:52 +01:00
Denys Vlasenko
6aab061d2d
ps: fix sscanf format specifier (%l); make uptime unsigned
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-22 10:07:23 +01:00
Denys Vlasenko
f474dfa681
Start 1.22.0 development cycle
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-21 08:56:21 +01:00
Denys Vlasenko
64406a92a0
Bump version to 1.21.0
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-21 08:51:23 +01:00
Denys Vlasenko
0cfba07fcd
fix testsuite false positive
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-21 08:28:37 +01:00
Denys Vlasenko
4609f477c7
mdev: fix mode of dir1 in =dir1/dir2/file rule
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-21 01:22:12 +01:00
Denys Vlasenko
31dc8603ee
ifconfig: do not accept "ifconfig eth0 up 1.2.3.4/17" (ip with mask). Closes 5786
...
function old new delta
ifconfig_main 1221 1237 +16
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-20 18:10:12 +01:00
Denys Vlasenko
2f5b5beb28
grep: fix grep -Fw not respecting the -w option. Closes 5792
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-20 16:57:19 +01:00
Denys Vlasenko
81fa999540
syslogd: do not segfault on parse error when using default config. Closes 5762
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-20 16:05:41 +01:00
Denys Vlasenko
2cfcc9e9d7
sha3: code shrink
...
function old new delta
sha3_hash 155 101 -54
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-20 00:38:09 +01:00
Peter Korsgaard
9980707efc
syslogd: convert dummy functions to statics and get rid of IF_FEATURE_* checks
...
As suggested by Mike. No bloat-o-meter difference, but a bit nicer to look at.
We cannot convert the call to log_to_shmem() as it checks for G.shbuf outside
the function, and G.shbuf is only available when IPC support is enabled.
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-18 19:46:47 +01:00
Denys Vlasenko
9daf33fc52
dc: code shrink
...
function old new delta
stack_machine 103 101 -2
operators 176 168 -8
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-18 13:30:13 +01:00
Denys Vlasenko
7c4b13e019
ash: revert wrong "fix" for an apparent memory leak. Closes 5822
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-17 13:02:27 +01:00
Denys Vlasenko
5d78355d5a
code shrink
...
function old new delta
applet_name_compare 36 31 -5
find_applet_by_name 43 25 -18
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-17 11:02:43 +01:00
Denys Vlasenko
5ca853e5da
fix a typo in config help text. Closes 5714
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-17 10:24:51 +01:00
Bernhard Reutner-Fischer
20c5e5a626
mount: fix -o user=foo mishandling, fix unc= generation, add prefixpath=
...
function old new delta
singlemount 1019 1049 +30
packed_usage 29252 29257 +5
parse_mount_options 230 232 +2
mount_option_str 337 338 +1
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/0 up/down: 38/0) Total: 38 bytes
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-17 02:30:35 +01:00
Denys Vlasenko
e4f0f26bad
sha3: s/sha3_process_block76/sha3_process_block72/
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-16 12:23:23 +01:00
Denys Vlasenko
5368fe541c
sha3: rename KeccakF->sha3_process_block76.
...
This brings the naming more in line with other hashes.
Pulled most statics and constants into it.
Also noticed that two byte arrays are 1 element too big.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-16 02:20:31 +01:00
Martin Santesson
406ea15e2c
mount: add unc option to CIFS mount (needed for Linux 3.4+)
...
unc option for CIFS mount is mandatory after CIFS option parsing
was rewritten in Linux 3.4
Signed-off-by: Martin Santesson <martinsn@axis.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-16 00:47:19 +01:00
Denys Vlasenko
970aa6b5bd
sha3: cache ctx->bytes_queued
...
function old new delta
sha3_hash 171 155 -16
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-15 22:19:24 +01:00
Denys Vlasenko
8fb3ab528e
sha3: remove two "small code" codepaths: I can't reproduce code size win on them anymore
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-15 22:07:48 +01:00
Denys Vlasenko
8e7312e12f
sha3: tweak choice of a fast code path for 64-bit
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-15 21:50:41 +01:00
Denys Vlasenko
5b7f50f372
sha3: cosmetic tweaks to various names, comments. No logic changes.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-15 19:52:30 +01:00
Denys Vlasenko
ac4100e103
sha3: code shrink
...
function old new delta
KeccakF 1053 1078 +25
KeccakF_RoundConstants 192 48 -144
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-15 16:27:39 +01:00
Denys Vlasenko
a55df27936
sha3: code shrink
...
function old new delta
KeccakF 1064 1053 -11
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-15 15:22:30 +01:00
Denys Vlasenko
07a54e21dd
sha3: another speedup for SHA3_SMALL=0 case
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-15 14:47:05 +01:00
Denys Vlasenko
6830ade6aa
whitespace fixes. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-15 13:58:01 +01:00
Denys Vlasenko
30a8652fbf
sha3: make size/speed optimization decision configurable
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-15 01:12:26 +01:00
Denys Vlasenko
60cb48ca50
whitespace cleanup. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-14 15:57:44 +01:00
Lauri Kasanen
b8173b603f
sha3sum: new applet
...
function old new delta
KeccakF - 496 +496
KeccakF_RoundConstants - 192 +192
sha3_hash - 171 +171
sha3_end - 40 +40
hash_file 274 299 +25
KeccakF_RotationConstants - 25 +25
KeccakF_PiLane - 25 +25
packed_usage 29213 29232 +19
sha3_begin - 18 +18
KeccakF_Mod5 - 10 +10
applet_names 2445 2453 +8
applet_main 1420 1424 +4
applet_nameofs 710 712 +2
------------------------------------------------------------------------------
(add/remove: 8/0 grow/shrink: 9/7 up/down: 1049/-54) Total: ~995 bytes
Signed-off-by: Lauri Kasanen <curaga@operamail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-14 05:20:50 +01:00
Paul Marks
b7841cf7b9
ntpd: fix incorrect m_status field in outgoing packets. Closes 5120
...
When using busybox ntpd with an NTPv3 client and NTPv4 server (or vice
versa), the version numbers can be incorrectly ORed together, yielding
the bogus value of "NTPv7". This makes ntpd unusable with clients
such as Chrony and Windows "Internet Time".
This patch avoids the version mangling, by copying only the Leap
Indicator bits from the server's status field.
Signed-off-by: Paul Marks <paul@pmarks.net >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-14 02:39:10 +01:00
Denys Vlasenko
90801dadfa
Remove redundant 'config FEATURE_VOLUMEID_SQUASHFS'
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-14 02:24:27 +01:00
Sven-Göran Bergh
6928d9f049
volume_id: add squashfs detection
...
function old new delta
volume_id_probe_squashfs - 74 +74
fs1 12 16 +4
Signed-off-by: Sven-Göran Bergh <sgb@systemasis.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-14 02:21:41 +01:00
Denys Vlasenko
6967578728
whitespace fixes. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-14 01:34:48 +01:00
Sven-Göran Bergh
5218515508
volume_id: uuid_format small code shrink
...
function old new delta
volume_id_set_uuid 318 300 -18
Signed-off-by: Sven-Göran Bergh <sgb@systemasis.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-14 00:52:03 +01:00
Sven-Göran Bergh
07b419dbcb
volume_id: display hfs[+] 128-bit UUID properly
...
Signed-off-by: Sven-Göran Bergh <sgb@systemasis.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-14 00:37:00 +01:00
Sven-Göran Bergh
a58f7b7d2f
blkid: add type display for hfsplus
...
Signed-off-by: Sven-Göran Bergh <sgb@systemasis.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2013-01-14 00:35:31 +01:00
Peter Korsgaard
cd776cf967
syslogd: add option to log to Linux kernel printk buffer
...
Why invent our own shared memory circular buffer when the kernel has a
perfectly fine one already?
This can be used as a smaller/simpler alternative to the syslogd IPC support
(as IPC shmem/klogd/logread aren't needed), while also allowing centralised
logging of everything (kernel messages, userspace bootup and syslog)
when used together with ttyprintk.
Notice that kernel 3.5+ is needed to store syslog facility in printk buffer,
otherwise only the priority is stored.
bloat-o-meter compared to IPC+klogd+logread:
function old new delta
get_linux_version_code - 84 +84
lbb_prepare 25 90 +65
applet_nameofs 6 - -6
static.stdout@@GLIBC_2 8 - -8
applet_names 23 9 -14
bb_msg_standard_output 16 - -16
init_sem 18 - -18
xatoull_range 19 - -19
overlapping_strcpy 21 - -21
init_data 56 32 -24
applet_main 24 - -24
main 124 99 -25
full_write2_str 26 - -26
error_exit 26 - -26
bb_basename 30 - -30
sem_up 32 - -32
interrupted 35 - -35
fflush_stdout_and_exit 38 - -38
bb_banner 46 - -46
find_applet_by_name 59 - -59
bb_signals_recursive_norestart 90 - -90
run_applet_no_and_exit 104 - -104
timestamp_and_log 651 523 -128
syslogd_main 798 581 -217
xstrtoull_range_sfx 267 - -267
run_applet_and_exit 432 - -432
klogd_main 490 - -490
logread_main 508 - -508
.rodata 1870 937 -933
bb_common_bufsiz1 8193 - -8193
------------------------------------------------------------------------------
(add/remove: 2/26 grow/shrink: 1/6 up/down: 149/-11829) Total: -11680 bytes
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk >
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2013-01-06 13:30:50 -05:00
Peter Korsgaard
d189b598b4
klogd: handle multi-char log levels
...
Since Linux 3.5 (7ff9554bb5: printk: convert byte-buffer to variable-length
record buffer), klog buffer can now contain log lines with multi-char
loglevel indicators (<[0-9]+>) - So use strtoul to parse it.
function old new delta
klogd_main 490 525 +35
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/0 up/down: 35/0) Total: 35 bytes
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk >
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2013-01-05 21:03:19 -05:00
Peter Korsgaard
3917fa32dc
dmesg: handle multi-char log levels
...
Since Linux 3.5 (7ff9554bb5: printk: convert byte-buffer to variable-length
record buffer), klog buffer can now contain log lines with multi-char
loglevel indicators (<[0-9]+>) - So we can no longer just skip 3 bytes.
Instead skip past the terminating '>' like util-linux does.
function old new delta
dmesg_main 266 280 +13
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/0 up/down: 13/0) Total: 13 bytes
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk >
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2013-01-05 21:02:14 -05:00
Lauri Hintsala
fb499c5752
powertop: fix error message
...
Application tries to use timer_stats module instead of cpufreq_stats.
Error message is printed if opening of the file /proc/timer_stats fails.
Signed-off-by: Lauri Hintsala <lauri.hintsala@bluegiga.com >
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2013-01-04 17:45:44 -05:00
Mike Frysinger
a38f9faa9f
ifenslave: fix missing close paren
...
Reported-by: David J Cozatt <ygdrasil@comcast.net >
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2012-12-26 17:12:26 -05:00
Anthony G. Basile
12677acf0a
CONFIG_PID_FILE_PATH: new configuration option for pidfile paths
...
We set a default path for the directory where pidfiles are create
when FEATURE_PIDFILE is selected. The default has no effect on
applets which must specify a pidfile path on the command line to
run, and it can be overridden by applets which optionally allow
the user to specify the pidfile path.
We also add pidfile write/remove support for klogd, ntpd and watchdog.
For syslogd, we add a missing remove_pidfile() for better cleanup
on daemon exit.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org >
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2012-12-19 15:53:33 -05:00
Denys Vlasenko
393c395ca5
du: document incompatibility with standard tool
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-12-14 17:14:11 +01:00
Denys Vlasenko
4d5955e9ec
decompress_uncompress: comment out a bigger chunk of debug code
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-12-05 11:08:30 +01:00
Denys Vlasenko
a8461173ba
decompress_uncompress: comment out debug printout on corrupted data
...
99% plus of all people who'll get corrupted archive wouldn't bother
debugging it. The rest can uncomment the code.
function old new delta
unpack_Z_stream 1304 1234 -70
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-12-05 01:06:05 +01:00
Denys Vlasenko
c71547ccfc
decompress_uncompress: move 'code' variable into loop - sole user
...
Apparently, gcc does this optimization itself, since generated code is the same.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-12-05 01:04:54 +01:00
Jon Tollefson
4ba6c5d3ba
ash: fix a memory leak
...
The script which triggers the leak:
while true
do
while true
do
break;
done</dev/null
done
Signed-off-by: Jon Tollefson <kniht@linux.vnet.ibm.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-11-13 19:26:53 +01:00
S-G Bergh
e4b9451413
volume_id: add exFAT detection
...
function old new delta
volume_id_probe_exfat - 294 +294
Signed-off-by: S-G Bergh <sgb@systemasis.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-11-13 14:40:37 +01:00
Denys Vlasenko
3f21044f20
ifupdown: code shrink
...
function old new delta
execute 571 548 -23
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-11-09 17:16:40 +01:00
Denys Vlasenko
a803bfa0f0
ifupdown: remove unused errno assignments
...
function old new delta
execute 607 571 -36
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-11-05 14:18:36 +01:00
Denys Vlasenko
11181335f9
ifupdown: simple code shrink
...
function old new delta
execute 631 607 -24
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-11-05 13:22:56 +01:00
S-G Bergh
d2d5049c1d
blkid: show filesystem when both label and UUID are missing, but type is known
...
Signed-off-by: S-G Bergh <sgb@systemasis.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-11-05 13:16:07 +01:00
Mike Frysinger
5694afd72a
build system: use pkg-config to look up selinux libs
...
Newer versions of libselinux has started linking against more libs.
Rather than continuing hardcoding things, switch to using pkg-config
to query for its dependencies.
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2012-10-20 15:01:26 -04:00
Timo Teräs
67dc7b21ca
fbsplash: fix regression from e4fa7b7
...
commit e4fa7b7 (limit progress bar flicker) made the progress bar
counter unsigned causing i < 0 to never come true.
Signed-off-by: Timo Teräs <timo.teras@iki.fi >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-10-17 19:39:34 +02:00
Baruch Siach
3aeb870b22
nanddump: invert the meaning of the -o parameter to match upstream
...
Signed-off-by: Baruch Siach <baruch@tkos.co.il >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-10-15 14:32:23 +02:00
Baruch Siach
98f6b2d399
nanddump: skip bad blocks when instructed to do so
...
Signed-off-by: Baruch Siach <baruch@tkos.co.il >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-10-15 14:25:26 +02:00
Baruch Siach
da0200a1e5
nanddump: use the right operator of logic AND
...
Signed-off-by: Baruch Siach <baruch@tkos.co.il >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-10-15 14:21:45 +02:00
Ron Yorston
eab343e7e1
mktemp: fix mktemp -u temp.XXXXXX returning garbage when TMPDIR is set
...
Use mktemp instead of tempnam for compatibility with real mktemp.
Don't let mktemp fail silently, print some simple error messages.
Don't ignore -q.
Signed-off-by: Tito Ragusa <farmatito@tiscali.it >
Signed-off-by: Ron Yorston <rmy@tigress.co.uk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-10-08 11:47:22 +02:00
Tito Ragusa
8dc6d1a813
adduser: make it accept "adduser USER GROUP" form
...
Signed-off-by: Tito Ragusa <farmatito@tiscali.it >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-10-08 11:18:08 +02:00
Denys Vlasenko
fd77ea505e
mark get_shell_name FAST_FUNC
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-10-03 09:42:21 +02:00
Denys Vlasenko
32711c4141
top/ps: argv0:"gdm-session-worker [pam/gdm-password]" == comm:"gdm-session-wor"
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-10-02 11:31:37 +02:00
Denys Vlasenko
d527588882
ash: implement export -n
...
function old new delta
exportcmd 129 175 +46
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-10-01 13:41:17 +02:00
Nicolas Thill
f47ce07b26
brctl: fix description and usage
...
brctl uncorrectly displays the "showmacs" command as being supported while
it is not, remove it from the usage and Config.src file.
Signed-off-by: Nicolas Thill <nico@openwrt.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-29 16:43:33 +02:00
Felix Fietkau
1c7a58dfb8
udhcpc[6]: allow discover_retries == 0 (infinite)
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-27 16:22:24 +02:00
Manuel Zerpies
d109798882
flashcp: remove unused variable opts
...
Signed-off-by: Manuel Zerpies <manuel.f.zerpies@ww.stud.uni-erlangen.de >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-27 16:06:34 +02:00
Denys Vlasenko
b2320370be
lineedit: in !EDITING config, return -1 on fgets error
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-27 16:03:49 +02:00
Denys Vlasenko
9371043698
fix unsafe bb_perror_msg(filename) calls
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-27 15:35:10 +02:00
Denys Vlasenko
225cc1327a
scripts/kconfig/mconf: work on systems w/o SIGWINCH
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-27 15:26:40 +02:00
Denys Vlasenko
c4f2d997a4
libbb: correctness/size tweaks in signal-related helpers
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-27 13:20:34 +02:00
Denys Vlasenko
73a1990897
top: do not touch stdin if -b
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-26 16:58:25 +02:00
Denys Vlasenko
06a98e32ae
modprobe_small: make rmmod to NOT remove dependencies. Closes 5162
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-25 20:37:38 +02:00
Denys Vlasenko
0b4980c252
ash: trivial fixes for compile failures
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-25 12:49:29 +02:00
Denys Vlasenko
ffe03f04cb
top: fix build failure in !USE_TERMIOS case
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-25 12:48:46 +02:00
Denys Vlasenko
42be921d48
ps: fix build failure in !DESKTOP case
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-25 12:48:10 +02:00
Denys Vlasenko
2fb8d0dee9
top: implement scrolling up/down (_very_ useful)
...
function old new delta
handle_input 494 564 +70
top_main 928 947 +19
display_topmem_process_list 363 381 +18
display_process_list 1442 1453 +11
clearmems 38 28 -10
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/1 up/down: 118/-10) Total: 108 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-21 13:04:37 +02:00
Alexey Froloff
3c62bbae94
ushcpc: gracefully handle packets with CHECKSUM_PARTIAL
...
function old new delta
udhcp_recv_raw_packet 415 579 +164
change_listen_mode 317 370 +53
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/0 up/down: 217/0) Total: 217 bytes
Signed-off-by: Alexey Froloff <raorn@raorn.name >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-17 16:02:44 +02:00
Denys Vlasenko
0ffd63ca9a
telnet: convert Enter -> CR LF in line mode too
...
function old new delta
handle_net_output 87 98 +11
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-17 11:54:35 +02:00
Denys Vlasenko
57f07bfcb2
telnet: shrink literal string size
...
text data bss dec hex filename
888483 497 7584 896564 dae34 busybox_old
888450 497 7584 896531 dae13 busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-17 11:53:09 +02:00
Denys Vlasenko
aca464ddac
telnet: convert CR -> CR LF, not CR -> CR NUL when sending data to server
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-13 13:00:49 +02:00
Linus Walleij
6d463de46b
fbsplash: support non-RGB565 pixels in 16-bit mode
...
function old new delta
fbsplash_main 953 989 +36
fb_pixel_value 80 110 +30
Signed-off-by: Linus Walleij <triad@df.lth.se >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-06 16:52:31 +02:00
Denys Vlasenko
2dc1a97272
find: make -mindepth N -xdev correctly stop on mountpoints
...
function old new delta
fileAction 153 193 +40
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-06 15:24:11 +02:00
Denys Vlasenko
9e71e3cea5
ash: fix "read -s" + ^C. Closes 5504
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-06 13:28:10 +02:00
Denys Vlasenko
50157f3dec
top: fix "last CPU" parsing
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-06 12:43:22 +02:00
Joshua Kahlenberg
c439851438
sysctl: implement -q
...
function old new delta
packed_usage 29208 29223 +15
sysctl_act_recursive 605 598 -7
sysctl_main 233 222 -11
Signed-off-by: Joshua Kahlenberg <jbkberg@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-05 18:15:12 +02:00
walter harms
d1d794fd48
refactor correct_password.c to avoid one if
...
Signed-off-by: walter harms <wharms@bfs.de >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-04 12:26:20 +02:00
Denys Vlasenko
9b80b903c7
build system: stop .eh_frame generation
...
From Rich Felker:
By default, modern GCC generates DWARF2 debug/unwind tables in the
.eh_frame section of the object files/binaries. This adds significant
bloat (as much as 15%) to the size of the busybox binary, including
the portion mapped/loaded into memory at runtime (possibly a big issue
for NOMMU targets), and the section is not strippable with the strip
command due to being part of the loaded program text.
I've since done some further checking - both testing and asking the
GCC developers about it - and it seems the solution is to add to the
CFLAGS -fno-unwind-tables and -fno-asynchronous-unwind-tables. If
debugging is disabled, this will prevent GCC from outputting DWARF2
tables entirely. But since busybox builds with -g by default, the
interesting case is what happens then. I originally thought these
options would break debugging, but they don't; instead, they tell GCC
to output the DWARF2 tables in the .debug_frame section instead of
the newish .eh_frame section (used for exception handling). With these
options added, busybox_unstripped is still fully debuggable, and the
final busybox binary loses the 15% bloat factor from the DWARF2
tables.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-04 11:46:44 +02:00
Denys Vlasenko
b7812ce0f7
wget: reorder fread and poll: poll only if fread returns EAGAIN. Closes 5426
...
function old new delta
retrieve_file_data 451 427 -24
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-03 12:49:30 +02:00
Denys Vlasenko
168f87c531
httpd_indexcgi.c: fix compile failure
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-03 12:20:10 +02:00
Denys Vlasenko
5f10fdf1dd
Fix compile failure in ll_proto.c
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-03 11:41:30 +02:00
Sven-Göran Bergh
c5a9fa2d2a
blkid: add support for nilfs2
...
function old new delta
volume_id_probe_nilfs - 99 +99
fs2 52 56 +4
Signed-off-by: Sven-Göran Bergh <svengbergh-busybox@yahoo.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-02 15:34:39 +02:00
Denys Vlasenko
8019b3a7ae
volume_id: code shrink
...
function old new delta
volume_id_set_unicode16 200 173 -27
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-02 15:33:47 +02:00
Sven-Göran Bergh
11f2c0d4f8
blkid: add type display for btrfs
...
Signed-off-by: Sven-Göran Bergh <svengbergh-busybox@yahoo.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-02 14:56:25 +02:00
Denys Vlasenko
405dafffbb
ll_proto.c: code shrink
...
text data bss dec hex filename
762 0 0 762 2fa ll_proto.o.old
526 0 0 526 20e ll_proto.o
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-02 14:29:45 +02:00
Denys Vlasenko
a0fd4a789c
style fixes, no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-02 14:29:14 +02:00
Denys Vlasenko
41f7885f06
getty: tweak style, no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-09-02 13:57:49 +02:00
Denys Vlasenko
9c55143bbf
wget: try reading after poll timeout - stdio may have buffered data. Closes 5426
...
function old new delta
retrieve_file_data 436 451 +15
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-08-16 16:52:27 +02:00
Denys Vlasenko
45c35e9de0
getty: add commented-out extended error diagnostic
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-08-16 13:29:25 +02:00
Denys Vlasenko
dba7094d62
login: increase login name size limit from 32 to 64
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-08-15 17:06:37 +02:00
Denys Vlasenko
6567edd10b
udhcp[cd]: fix binding to network aliases. Closes 5432, 5438
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-08-10 00:27:22 +02:00
Cliff Frey
4919565c15
lineedit: fix Alt-D when cursor==0
...
Signed-off-by: Cliff Frey <cliff@meraki.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-08-07 17:59:40 +02:00
Denys Vlasenko
2ffd710656
platform.h: disable ALIGNn macros for s390[x]
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-08-06 17:17:15 +02:00
Mike Frysinger
ca81a93722
disable format security warnings
...
We pass strings to printf directly a lot. Some distros enable some flags
in their gcc by default like -Wformat-security. With these two things, we
end up with a lot of build warnings like so:
loginutils/chpasswd.c:42:3: warning: format not a string literal and
no format arguments [-Wformat-security]
But we don't care. Our focus is first and foremost on size, so adding a
lot of dummy calls like:
- printf(some_constant_string);
+ printf("%s", some_constant_string);
is pointless bloat.
Disable this warning flag if the compiler supports it.
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2012-08-04 16:14:24 -04:00
Denys Vlasenko
293c94564c
udhcpc: make -O <numeric_opt> work. Closes 5402
...
function old new delta
udhcpc_main 2642 2685 +43
udhcp_recv_raw_packet 414 415 +1
d6_recv_raw_packet 248 249 +1
udhcpc6_main 2430 2413 -17
add_client_options 239 213 -26
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/2 up/down: 45/-43) Total: 2 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-07-27 13:25:07 +02:00
Bradley M. Kuhn
0e941d5427
Simplify copyright/license notice that appears in the binary.
...
Existing copyright notice for binary would need to be longer to achieve
optimal accuracy. This compromise punts to the source for full notices,
but does note the years of the copyrights and that there are many authors,
all licensing under GPLv2.
Signed-off-by: Bradley M. Kuhn <bkuhn@ebb.org >
Signed-off-by: Tony Sebro <tony@sfconservancy.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-07-26 13:17:06 +02:00
Denys Vlasenko
5cfb818181
Add yet another missing ALIGN2 on a global declaration.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-07-26 12:58:41 +02:00
Denys Vlasenko
71045cc819
dhcpd: write lease file on exit
...
function old new delta
udhcpd_main 1431 1403 -28
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-07-24 17:21:26 +02:00
Aurelien Jarno
d3a42391b1
*: declare strings with ALIGN1, as appropriate
...
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-07-24 16:28:34 +02:00
Michael Tokarev
32f774cd34
*: declare strings with ALIGN1, as appropriate
...
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-07-24 15:56:37 +02:00
Yao Zhao
e565383fd5
testsuite: make mkfs.minix test not fail spuriously on big endian
...
Signed-off-by: Yao Zhao <yao.zhao@windriver.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-07-24 13:58:12 +02:00
Mimi Li
37a79c092e
sed: allow 'w' cmd to use two address form
...
function old new delta
add_cmd 1101 1094 -7
Signed-off-by: Mimi Li <felloak@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-07-24 13:20:12 +02:00
Denys Vlasenko
dbed6c4b46
tftpd: fix -u USER to work with chroot. Closes 5348
...
function old new delta
tftpd_main 546 568 +22
tftp_protocol 1844 1839 -5
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-07-18 17:32:32 +02:00
Denys Vlasenko
df8066a78c
awk: fix FS assignment behavior. Closes 5108
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-07-11 01:27:15 +02:00
Denys Vlasenko
e1db338a51
ftpd: free allocated string on error path
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-07-11 00:26:24 +02:00
Denys Vlasenko
3bb858765e
ftpd: fix MDTM's month value. Closes 5336
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-07-11 00:16:08 +02:00
Denys Vlasenko
566a313a7f
ash: add a comment about VEXPORT
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-07-07 21:40:35 +02:00
Linus Walleij
b5c7220e7b
fbset: respect rgba configuration lines in fb.modes
...
The fbset utility would not respect "rgba" config entries in
the fb.modes file such as this (for the ARM Integrator/CP):
mode "640x480-60-clcd"
# D: 25.175 MHz, H: 31.469 kHz, V: 59.94 Hz
geometry 640 480 640 480 16
timings 39722 48 16 33 10 96 2
rgba 5/10,5/5,5/0,1/15
endmode
This is important especially for this ARGB5551 device which
is hopeless to configure otherwise. I noticed this lacking
feature after the TI "fbtest" program managed to set up the
the colormode correctly.
Signed-off-by: Linus Walleij <triad@df.lth.se >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-07-07 19:58:15 +02:00
Eric Martin
5345b8db8b
acpid: add missing lid switch definition
...
This patch adds a missing LID0 switch definition.
Without it, closing the notebook lid is not detected by acpid.
Signed-off-by: Eric Martin <eric.martin@gmx.net >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-07-07 19:06:50 +02:00
Mike Frysinger
c5fe9f7b72
include sys/resource.h where needed
...
We use functions from sys/resource.h in misc applets, but don't include
the header. This breaks building with newer glibc versions, so add the
include where needed.
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2012-07-05 23:19:09 -04:00
Denys Vlasenko
9ad8979ff1
mount: support strictatime option. Closes 5240
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-26 16:09:00 +02:00
Denys Vlasenko
ea664dde87
awk: make -F STR interpret escape sequences. Closes 5126
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-22 18:41:01 +02:00
Denys Vlasenko
440a509849
dpkg: fix creation of .list files (were empty since b768aeb). Closes 5324
...
While at it, fix filename order and free the list of names.
function old new delta
llist_rev - 21 +21
get_header_tar 1733 1741 +8
unpack_package 587 585 -2
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/1 up/down: 29/-2) Total: 27 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-22 16:27:21 +02:00
Denys Vlasenko
d52c9510fd
trivial small speed optimization
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-22 15:54:05 +02:00
Denys Vlasenko
6ebb2b6b24
mount: do not pass "comment=ANYTHING" option to kernel. Closes 5240
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-22 15:17:18 +02:00
Denys Vlasenko
a396ade9f8
mount: undo recent breakage when mount flags were made unsigned
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-22 15:06:27 +02:00
Denys Vlasenko
c9a13116a4
mount: fix the wrongly stored fs creation time
...
This bug made our ext2 images non-mountable by ext4 driver.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-21 16:50:46 +02:00
Denys Vlasenko
9ee4266490
mount: set up RO loop device if mount -o ro. Closes 4784
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-21 12:08:56 +02:00
Denys Vlasenko
1d7ad7a022
tweak help texts
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-21 09:45:11 +02:00
Denys Vlasenko
2bc495e4c4
adduser: install to /usr, not /, like all other similar tools
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-20 20:35:58 +02:00
Denys Vlasenko
dac8e79a19
Move several applets to different install dir:
...
Moved to [/usr]/sbin:
addgroup, adduser, delgroup, deluser,
arping, chat, ether-wake, fdformat, ifplugd,
ip, ipaddr, iplink, iproute, iprule, iptunnel,
killall5, readahead, rtcwake, tftpd, add-shell, remove-shell, powertop.
Moved to /bin for /usr/bin: kbd_mode.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-20 20:24:57 +02:00
Denys Vlasenko
e3e0d2b812
tweak help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-19 12:46:59 +02:00
Bernhard Walle
9b78e14dfb
build system: fix build of kconfig on Darwin
...
Of course busybox cannot be used on Darwin (Mac OS X), but it can be
cross-compiled for Linux there. Cross-compilation still requires kconfig
to be built as native host tool.
Signed-off-by: Bernhard Walle <bernhard@bwalle.de >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-18 01:51:26 +02:00
Denys Vlasenko
aacd448601
wget: fix wget-supports--P testsuite failure. Closes 4940
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-17 20:21:30 +02:00
Pierre Carrier
e0a6004ce8
config: do not refer to HTTPS for wget
...
Signed-off-by: Pierre Carrier <pierre@spotify.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-17 19:59:53 +02:00
Denys Vlasenko
6144124aac
wget: make -c _not_ truncate the file
...
function old new delta
retrieve_file_data 396 436 +40
reset_beg_range_to_zero 52 45 -7
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-17 19:52:25 +02:00
Denys Vlasenko
c5b01016e6
unzip: make options parsing more robust on getopt w/o gnu extensions
...
Also, code shrank:
function old new delta
static.extn 15 10 -5
packed_usage 29231 29217 -14
unzip_main 2388 2291 -97
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-116) Total: -116 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-15 16:43:26 +02:00
Denys Vlasenko
604499e5a9
Merge branch 'master' of git+ssh://busybox.net/var/lib/git/busybox
2012-06-14 17:30:04 +02:00
Denys Vlasenko
bf146b8610
wget: correctly handle failure to -c (continue)
...
function old new delta
reset_beg_range_to_zero - 52 +52
wget_main 2168 2189 +21
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-13 17:31:07 +02:00
Vladimir Dronnikov
f5abc78579
wget: add dummy --no-cache
...
function old new delta
static.wget_longopts 155 166 +11
packed_usage 29259 29231 -28
Signed-off-by: Vladimir Dronnikov <dronnikov@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-13 17:29:41 +02:00
Michael Tokarev
ac42e3de90
ps: use separate get_uptime() and make it work on non-linux too
...
Create get_uptime() function in procps/ps.c, and use it rather than
relying on linux-specific sysinfo() inline.
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-13 02:52:28 +02:00
Matt Reimer
6979325592
nanddump: make dumping read-only partitions work
...
Make dumping read-only partitions work by opening the device
O_RDONLY; otherwise the open() will fail with -EPERM.
Signed-off-by: Matt Reimer <mreimer@sdgsystems.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-13 02:39:22 +02:00
Tanguy Pruvot
772f17a843
modinfo: match more standard module fields and fix version field
...
Previously, -F version could match the srcversion= string.
before :
~ # modinfo -F version tiwlan_drv
version: 6.1.2012.05.29
version: 533BB7E5866E52F63B9ACCB
version: 0x%x, oui=0x%x, 0x%x, 0x%x
version: 0x%x
~ # modinfo tiwlan_drv
filename: tiwlan_drv.ko
author: Texas Instruments Inc - Retouched by CyanogenDefy
license: GPL
vermagic: 2.6.32.9 preempt mod_unload ARMv7
parm: g_sdio_debug_level:debug level
depends:
now :
~ # modinfo -F version tiwlan_drv
version: 6.1.2012.05.29
~ # modinfo tiwlan_drv
filename: tiwlan_drv.ko
license: GPL
author: Texas Instruments Inc - Retouched by CyanogenDefy
version: 6.1.2012.05.29
srcversion: 533BB7E5866E52F63B9ACCB
depends:
uts_release: 2.6.32.9-g306944c
vermagic: 2.6.32.9 preempt mod_unload ARMv7
parm: g_sdio_debug_level:debug level
This patch also add support for the old "-n" and some other helpers
Change-Id: Icb4e9ca513cbce46b075a6f038799a7a19fb7e22
Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-12 16:26:03 +02:00
Denys Vlasenko
ac164dd2a7
volume_id/ext: use common bb_e2fs_defs.h for ext2/3/4 constants and structs
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-12 15:00:35 +02:00
Pascal Bellard
70fc8c17e2
su: do not change to home dir unless -l
...
Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-12 13:21:02 +02:00
Denys Vlasenko
588e284f53
remove FEATURE_VI_OPTIMIZE_CURSOR from example config
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-12 01:48:45 +02:00
Denys Vlasenko
39f82d4309
rdate: code shrink
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-11 14:57:29 +02:00
Denys Vlasenko
0ccae4d8b3
Add comments in keyboard escape sequences table
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-11 14:40:17 +02:00
Denys Vlasenko
d3dff879f0
vi: save/restore screen upon invocation
...
function old new delta
vi_main 253 273 +20
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-11 13:53:26 +02:00
Denys Vlasenko
04b52892ed
vi: nuke FEATURE_VI_OPTIMIZE_CURSOR
...
It is not Unicode safe, it is not saving much of I/O, and it's large:
function old new delta
vi_main 255 253 -2
go_bottom_and_clear_to_eol 28 26 -2
do_cmd 4194 4182 -12
show_status_line 388 374 -14
strncat 39 - -39
__GI_strncat 39 - -39
refresh 774 724 -50
place_cursor 276 83 -193
------------------------------------------------------------------------------
(add/remove: 0/3 grow/shrink: 0/6 up/down: 0/-351) Total: -351 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-11 13:51:38 +02:00
Denys Vlasenko
4125a6b630
ntpd: on time step, kill all outstanding replies from other peers
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-11 11:41:46 +02:00
Tanguy Pruvot
0a393cf7da
testsuite: some more awk tests related to conditions
...
Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-11 10:33:45 +02:00
Denys Vlasenko
93c32f2dd2
rdate: code shrink
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-11 02:06:11 +02:00
Denys Vlasenko
605f2641d8
vi: do not set autoindent by default
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-11 01:53:33 +02:00
Tias Guns
c9677ed83c
libbb: add missing_syscalls.c: for now, only Android syscalls
...
Signed-off-by: Tias Guns <tias@ulyssis.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-10 14:40:30 +02:00
Tias Guns
bd01f22986
android: some sensible defconfig changes
...
- no /usr
- no skip rootfs
- use /system/lib/modules
And for niceties:
- show usage
- have installer
- long opts
- verbose cp
- ls --color support
- bbconfig
Also adds lsof (new in 1.20.0)
Signed-off-by: Tias Guns <tias@ulyssis.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-10 14:29:15 +02:00
Tias Guns
3645195377
platform.h: Android tweaks: ioprio defines, BB_ADDITIONAL_PATH
...
Signed-off-by: Tias Guns <tias@ulyssis.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-10 14:26:32 +02:00
Tias Guns
a1ec841913
android: fix 'stat', ifdef S_TYPEIS* in coreutiles/stat.c
...
patch modified from 'BusyBox Patch V1.0 (Vitaly Greck)'
https://code.google.com/p/busybox-android/downloads/detail?name=patch_busybox
Signed-off-by: Tias Guns <tias@ulyssis.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-10 14:20:42 +02:00
Tias Guns
64f763b42a
inetd: fix build failure in Android
...
Signed-off-by: Tias Guns <tias@ulyssis.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-10 14:19:01 +02:00
Denys Vlasenko
49b8e72012
brctl: fix build failure by s/strtotimeval/bb_strtotimeval/ (android has strtotimeval)
...
Signed-off-by: Tias Guns <tias@ulyssis.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-10 14:16:16 +02:00
Denys Vlasenko
52de9c7141
lpr: don't send 0-byte print jobs (compat)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-10 13:47:17 +02:00
Etienne Le Sueur
cfc212cdff
tar: fix 256-bit encoded number decoding
...
Signed-off-by: Etienne Le Sueur <elesueur@vmware.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-09 08:37:05 +02:00
Denys Vlasenko
f451b2cfe0
ash: fix a bug in >${varexp} handling. Closes 5282
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-09 02:06:57 +02:00
Denys Vlasenko
37ca36a711
sed: yet another fix on top of zero length match code
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-08 10:25:31 +02:00
Denys Vlasenko
ba1d561d76
man: fix handling of gzipped manpages
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-08 10:22:05 +02:00
Denys Vlasenko
84406e459b
sed: fix breakage added by zero length match code
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-07 16:34:57 +02:00
Denys Vlasenko
c35545a100
sed: code shrink
...
function old new delta
process_files 2181 2173 -8
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-04 14:45:09 +02:00
Denys Vlasenko
21f6fbf545
sed: fix zero chars match/replace
...
function old new delta
process_files 2099 2181 +82
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-04 14:44:47 +02:00
Denys Vlasenko
21f620f6e5
ifplugd: tweak help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-03 10:26:16 +02:00
Denys Vlasenko
085b293338
udhcpc[6]: show select timeout in log
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-06-02 23:53:53 +02:00
Natanael Copa
02112d8ae3
unzip: ignore chmod errors
...
This makes unzip to FAT filesystems not exit with error.
This is similar to how the "normal" unzip works.
Signed-off-by: Natanael Copa <natanael.copa@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-05-28 01:29:15 +02:00
Boris Reisig
dfc2473b9e
tar: support -J, --xz explicit compression option
...
function old new delta
tar_main 868 881 +13
tar_longopts 285 290 +5
packed_usage 29267 29270 +3
Signed-off-by: Boris Reisig <boris@boris.ca >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-05-24 09:01:55 +02:00
Anthony G. Basile
6e9284db78
build system: fix build failure when only gunzip is selected
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-05-20 12:56:17 +02:00
Christoph Lohmann
25cb5aae2b
mdev: tell kernel that we didn't find the firmware
...
function old new delta
mdev_main 797 801 +4
Signed-off-by: Christoph Lohmann <20h@r-36.net >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-05-19 23:39:45 +02:00
Denys Vlasenko
aaf827203d
Merge branch 'master' of git+ssh://vda@busybox.net/var/lib/git/busybox
2012-05-19 22:37:07 +02:00
Natanael Copa
0446104137
tar: implement --no-recursion
...
function old new delta
tar_longopts 259 274 +15
.rodata 5757 5772 +15
tar_main 1038 1052 +14
writeTarFile 362 353 -9
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/1 up/down: 44/-9) Total: 35 bytes
text data bss dec hex filename
81457 1706 8344 91507 16573 busybox_old
81477 1706 8344 91527 16587 busybox_unstripped
Signed-off-by: Natanael Copa <natanael.copa@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-05-18 16:34:30 +02:00
Denys Vlasenko
b6beada5a1
mdev: remove undocumented subsystem/devname matching hack
...
It was colliding with matching of devnames with slashes.
We need a more generic way to examine env.vars in rules anyway.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-05-18 15:11:16 +02:00
Denys Vlasenko
ea57f51819
mdev: when found, print major,minor into mdev.log
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-05-18 11:39:57 +02:00
Denys Vlasenko
8d11854678
tweak help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-05-18 04:47:18 +02:00
Denys Vlasenko
516530c932
mdev: add support for $DEVNAME and /dev/mdev.log debug aid
...
function old new delta
make_device 1843 2083 +240
mdev_main 712 804 +92
packed_usage 29236 29251 +15
keywords 288 19 -269
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/1 up/down: 347/-269) Total: 78 bytes
text data bss dec hex filename
887506 497 7584 895587 daa63 busybox_old
887982 497 7584 896063 dac3f busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-05-18 04:45:35 +02:00
Denys Vlasenko
7c8aa2b47c
typo fix in comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-05-18 02:53:11 +02:00
Denys Vlasenko
0133921726
volume_id/ext: detect ext4 too
...
function old new delta
volume_id_probe_ext 108 132 +24
Signed-off-by: Dees Troy<dees_troy@teamw.in >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-05-18 02:51:27 +02:00
Denys Vlasenko
be1cfeea2e
find: if DESKTOP=y, support -wholename (synonym for -path)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-05-17 12:25:25 +02:00
Denys Vlasenko
4a6a56c778
examples/mdev_fat.conf: small addition
...
I needed this to make Android's adb see my phone
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-05-16 03:03:54 +02:00
Denys Vlasenko
02b8b9b014
busybox: tweak help text and copyright year
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-05-14 23:52:57 +02:00
Denys Vlasenko
a5ee090e86
fix for spurious testsuite failure
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-05-10 19:26:37 +02:00
Simon B
f1f8fcaad5
mv: accept but ignore -v
...
function old new delta
mv_longopts 36 46 +10
Signed-off-by: Simon B <sburnet@hotmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-05-06 18:08:24 +02:00
Simon B
3698ed1ca1
mkdir,rmdir: accept and ignore -v, --verbose
...
function old new delta
static.rmdir_longopts 38 48 +10
mkdir_longopts 18 28 +10
Signed-off-by: Simon B <sburnet@hotmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-05-06 15:03:32 +02:00
Simon B
8c3439554a
sed: support long opts and -iSFX
...
function old new delta
static.sed_longopts - 67 +67
sed_main 618 682 +64
packed_usage 29179 29236 +57
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 2/0 up/down: 188/0) Total: 188 bytes
Signed-off-by: Simon B <sburnet@hotmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-05-06 14:01:41 +02:00
Simon B
44642d1ec1
ln: support -T and -v
...
function old new delta
ln_main 445 524 +79
packed_usage 29182 29179 -3
Signed-off-by: Simon B <sburnet@hotmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-05-06 13:18:35 +02:00
Andreas Oberritter
556ac3633c
get_linux_version_code: don't fail on Linux version strints like "3.0-foo"
...
Signed-off-by: Andreas Oberritter <obi@opendreambox.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-05-05 17:47:23 +02:00
Mike Frysinger
3da46c8163
udhcpc6: depend on ipv6
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2012-05-02 21:45:35 -04:00
Denys Vlasenko
d133144d41
fix build failure when compressed help is selected, but bz2 compression is not
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-29 14:28:12 +02:00
Ron Yorston
576b1d3c41
sendmail: use host rather than NIS domain name for HELO
...
According to RFC 5321 the argument to HELO "contains the fully-qualified
domain name of the SMTP client" or its IP address if no FQDN is available.
BusyBox sendmail uses the NIS domain name instead which, in many cases,
is likely to be the default "(none)". [vda: yes, I checked my machine
and its uts.domainname was indeed "(none)"]
Using the host name is more likely to satisfy the intent of the RFC while
allowing the otherwise unused safe_getdomainname function to be removed.
Signed-off-by: Ron Yorston <rmy@tigress.co.uk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-28 17:04:19 +02:00
Denys Vlasenko
0c62f20454
lpr: small code shrink
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-27 15:03:34 +02:00
Dennis Groenen
deee356a62
lineedit: histfile can get emptied when CONFIG_FEATURE_EDITING_SAVE_ON_EXIT=y
...
When CONFIG_FEATURE_EDITING_SAVE_ON_EXIT is set to y, the histfile
will get cleared if the total amount of history lines is less than MAX_HISTORY.
Only if the histfile is not empty _and_ the amount of lines currently
in memory are equal to or greater than MAX_HISTORY, history saving will
work as expected with this feature enabled.
Output from defconfig + CONFIG_FEATURE_EDITING_SAVE_ON_EXIT=y:
$ echo "foo" > ~/.ash_history
$ ./busybox ash
~/busybox/a $ echo "bar" > /dev/null
~/busybox/a $ exit
$ cat ~/.ash_history
$
Output with the patch applied and same config as above:
$ echo "foo" > ~/.ash_history
$ ./busybox ash
~/busybox/b $ echo "bar" > /dev/null
~/busybox/b $ exit
$ cat ~/.ash_history
foo
echo "bar" > /dev/null
exit
$
Signed-off-by: Dennis Groenen <tj.groenen at gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-26 11:19:38 +02:00
Denys Vlasenko
9d75370238
hush: remove sighandler_t definition hack, platform.h has it too
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-26 10:59:01 +02:00
Denys Vlasenko
eced0c78a5
getty: fix for NOCTTY killing us with SIGHUP
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-26 10:53:48 +02:00
Denys Vlasenko
b84dafb5e5
sed: slightly better fix for prev commit's problem
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-24 19:27:34 +02:00
Denys Vlasenko
e39afe1fbd
sed: fix handling of s/// which has empty matches
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-24 19:21:16 +02:00
Andreas Oberritter
3a9365e273
ifupdown: improve compatibility with Debian
...
Set environment variable 'PHASE'.
Treat post-up and pre-down as aliases for up and down.
Uses the same logic as ifupdown.nw from ifupdown-0.6.16.
Makes it possible to execute Debian's ifupdown script for
wpa-supplicant.
Signed-off-by: Andreas Oberritter <obi@opendreambox.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-23 22:08:39 +02:00
Denys Vlasenko
b9d494453d
Start 1.21.0 development cycle
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-22 03:47:39 +02:00
Denys Vlasenko
f5234398ef
Bump version to 1.20.0
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-22 03:38:31 +02:00
Denys Vlasenko
d2266d43bf
udhcpc: fix improper size calculation for OPTION_STRING_HOST
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-22 03:37:01 +02:00
Denys Vlasenko
c9665631d3
mdev: fix mode of creatred node if config file support is not configured
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-21 14:35:32 +02:00
Denys Vlasenko
df9196d824
Fix another build failure found with randconfig
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-20 18:59:14 +02:00
Denys Vlasenko
6dca172610
fix build breakage with gcc 4.2.1
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-20 18:24:09 +02:00
Denys Vlasenko
56443cdbdd
whitespace fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-20 15:07:22 +02:00
Denys Vlasenko
8cab66730a
fix build breakage found by randconfig
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-20 14:48:00 +02:00
Denys Vlasenko
b110e1fecb
who: fix typo in help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-18 14:38:15 +02:00
Denys Vlasenko
d778e6c6f8
hwclock: fix wrong comparison of time value (when it will overlow int)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-17 19:25:13 +02:00
Denys Vlasenko
6500d123d0
udhcp: make arpping code resistant to time jumps
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-17 17:10:31 +02:00
Denys Vlasenko
53772869bc
who,less: tweaked help text
...
function old new delta
packed_usage 29176 29173 -3
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-17 16:11:25 +02:00
Denys Vlasenko
75e1e7b3d5
mktemp: add support for -u
...
zlib-1.2.6 Makefile uses "mktemp -u".
function old new delta
___path_search - 266 +266
mktemp_main 165 250 +85
tempnam - 79 +79
packed_usage 29189 29176 -13
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 1/1 up/down: 430/-13) Total: 417 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-17 16:00:20 +02:00
Denys Vlasenko
176bc34475
Drop include/bb_linux_ext2_fs.h, use existing e2fsprogs/e2fs_defs.h
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-17 15:06:55 +02:00
Denys Vlasenko
86a03bee1d
umount: make -d always active, add -D to suppress it
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-17 13:07:28 +02:00
Denys Vlasenko
ee0d4cd8cb
Tweak INSTALL text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-17 12:28:13 +02:00
Denys Vlasenko
0b2b0f31a3
Create and use our own copy of linux/ext2_fs.h
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-13 16:39:18 +02:00
Denys Vlasenko
caf5768154
work around linux/ext2_fs.h breakage
...
See https://bugzilla.kernel.org/show_bug.cgi?id=42986
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-12 14:01:10 +02:00
Denys Vlasenko
14850308e9
killall5: don't do STOP/CONT dance if the signal we send is SIGSTOP or SIGCONT
...
function old new delta
kill_main 913 942 +29
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-03 08:16:05 +02:00
Rob Walker
7a4269329f
httpd: emit correct content length on range requests past the end. Closes 4952
...
Signed-off-by: Rob Walker <rwalker@codeaurora.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-03 08:09:28 +02:00
Denys Vlasenko
1d9e99b399
hostname: make -i not emit extra trailing space
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-01 16:52:21 +02:00
Denys Vlasenko
3e3a8d50b3
ntpd: fix build failure if !NTPD_SERVER. Closes 4994
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-01 16:31:04 +02:00
Sven Oliver Moll
1c12b67705
lsof: new applet
...
text data bss dec hex filename
221 0 0 221 dd lsof.o
Signed-off-by: Sven Oliver Moll <busybox@svol.li >
Signed-off-by: souf <souf_oued@yahoo.fr >
Signed-off-by: Tito Ragusa <farmatito@tiscali.it >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-04-01 16:23:23 +02:00
Bernhard Reutner-Fischer
25dbb0743e
bloat-o-meter: Remove unused code
...
The regex matching is way slower, so remove it since it was disabled
anyway.
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2012-03-30 19:50:39 +02:00
Bernhard Reutner-Fischer
b1b70969e0
bloat-o-meter: handle huge (hex) sizes.
...
dynamic symbols with size >99999 are printed in hex.
see print_vma(psym->st_size, DEC_5)
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2012-03-30 19:26:40 +02:00
Denys Vlasenko
0d6bbb0497
hush: remove unused member struct command::is_stopped
...
function old new delta
builtin_umask 133 132 -1
checkjobs 551 544 -7
builtin_fg_bg 291 267 -24
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-27 14:32:48 +02:00
Denys Vlasenko
ba88826c66
busybox: tweak help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-22 11:15:06 +01:00
Denys Vlasenko
cc1bb603e8
ftp{get,put}: tweak help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-19 12:22:57 +01:00
Denys Vlasenko
78a3b6739c
Fix one-applet build for tcpsvd
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-19 04:38:00 +01:00
Denys Vlasenko
5e896481eb
nc: support "-<other_opts>e PROG" form of -e option
...
function old new delta
nc_main 975 1033 +58
doexec 31 45 +14
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/0 up/down: 72/0) Total: 72 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-19 01:17:36 +01:00
Denys Vlasenko
7fe1e3f161
ubi_tools: add workaround for bad kernel headers. Closes 4838
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-11 18:04:14 +01:00
Denys Vlasenko
65457625a7
build system: remove bogus $(1) in last commit
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-11 12:17:20 +01:00
Denys Vlasenko
c528917195
build system: detect missing crypt and drop it from linking
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-10 16:30:00 +01:00
Denys Vlasenko
79bec06168
ntpd: make "reply from IP" messages more uniform
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-08 13:02:52 +01:00
Denys Vlasenko
07fcaab595
test: "test !" was accessing argv past NULL - fix it. Closes 4832
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-08 03:50:01 +01:00
Denys Vlasenko
d98dc92d6a
ntpd: drop offset averaging code
...
function old new delta
filter_datapoints 475 174 -301
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-08 03:27:49 +01:00
Denys Vlasenko
4e3beb2e1d
tftpd: chroot to DIR, not merely chdir. Closes 4874
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-08 00:28:52 +01:00
Denys Vlasenko
0687a5b496
libbb: make xchroot do a chdir("/") after chroot
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-08 00:28:24 +01:00
Denys Vlasenko
39c2cb2e93
build system: fix broken CONFIG_SYSROOT handling
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-08 00:20:01 +01:00
Rob Walker
bf6343796e
Add SYSROOT, EXTRA_{LDFLAGS,LDLIBS} config opts; sample Android NDK config
...
Signed-off-by: Rob Walker <rwalker@rwalker.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-07 12:25:53 +01:00
Denys Vlasenko
69d81a1c1b
printf: fix this case: printf "%b" '\0057usr\0057bin\n'
...
It was not accepting \0NNN. Standard printf tool does.
function old new delta
printf_main 869 886 +17
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-07 11:57:47 +01:00
Denys Vlasenko
d4acaf70c5
printf: trim help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-07 11:44:15 +01:00
Denys Vlasenko
8be49c3a80
ntpd: tweak log messages format
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-06 19:16:50 +01:00
Denys Vlasenko
bb8d7db597
testsuite: add a test that tar detects XZ-compressed data
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-06 16:57:01 +01:00
Denys Vlasenko
d29c946f93
fix trivial bug in unpack_gz_stream (wrong fd used in read)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-06 16:46:25 +01:00
Denys Vlasenko
b5d6ae9a33
Don't compile get_header_tar_FOO function if they are not needed
...
Now get_header_tar_gz, get_header_tar_bz2, get_header_tar_lzma
are only used if dpkg is built.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-06 16:34:23 +01:00
Denys Vlasenko
faac1d3e6e
tar,rpm2cpio: check that child decompressor did not error out
...
function old new delta
check_errors_in_children - 57 +57
tar_main 833 848 +15
get_header_tar 1720 1733 +13
rpm2cpio_main 147 140 -7
handle_SIGCHLD 41 - -41
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 2/1 up/down: 85/-48) Total: 37 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-06 16:33:42 +01:00
Denys Vlasenko
02c3c38420
Move seamless .Z support into unpack_gz_stream
...
unpack_gz_stream 566 643 +77
unpack_gunzip 123 12 -111
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-06 16:32:06 +01:00
Denys Vlasenko
8a6a2f9c9c
update seamless uncompression code
...
This change makes "tar tf hello_world.txz" work without
adding special-casing for ".txz" extension. It also removes
ever-growing magic checking code in rpm2cpio and get_header_tar -
we reuse one which lives in setup_unzip_on_fd.
function old new delta
unpack_gz_stream 7 566 +559
check_signature16 - 70 +70
setup_unzip_on_fd 99 142 +43
handle_SIGCHLD - 41 +41
unpack_bz2_stream 342 376 +34
unzip_main 2352 2385 +33
bbunpack 503 533 +30
open_transformer 74 102 +28
unpack_Z_stream 1278 1304 +26
unpack_gunzip 101 123 +22
init_transformer_aux_data - 18 +18
unpack_xz_stream 2388 2402 +14
open_zipped 131 141 +10
rpm_main 1358 1363 +5
get_header_tar_lzma 52 57 +5
get_header_tar_bz2 52 57 +5
unpack_lzma_stream 2698 2702 +4
hash_find 234 233 -1
get_header_tar 1759 1733 -26
get_header_tar_gz 92 57 -35
unpack_uncompress 51 12 -39
rpm2cpio_main 201 147 -54
unpack_unxz 67 12 -55
unpack_bz2_stream_prime 55 - -55
get_header_tar_Z 86 - -86
unpack_gz_stream_with_info 539 - -539
------------------------------------------------------------------------------
(add/remove: 3/3 grow/shrink: 14/6 up/down: 947/-890) Total: 57 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-06 16:27:48 +01:00
Denys Vlasenko
774bce8e8b
archival/libarchive/decompress_unzip.c -> decompress_gunzip.c. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-06 16:26:20 +01:00
Denys Vlasenko
59655077c5
preparatory cleanups for seamless uncompression improvements
...
unpack_gz_stream_with_info: fix buggy error check
man: fix possible accesses past the end of a string
move seamless uncompression helpers from read_printf.c to open_transformer.c
function old new delta
show_manpage 153 212 +59
unpack_gz_stream_with_info 520 539 +19
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-06 16:23:50 +01:00
Denys Vlasenko
17eedcad94
ssd: compat: match -x EXECUTABLE by /proc/pid/exe too
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-05 16:28:07 +01:00
Denys Vlasenko
11e61d5c71
uudecode: tweak help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-05 14:23:26 +01:00
Denys Vlasenko
fa737cebe7
uuencode: tweak help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-05 14:22:33 +01:00
Denys Vlasenko
547ee7926e
ntpd: fix a case when discipline_jitter = 0 if we step
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-05 10:18:00 +01:00
Denys Vlasenko
b3439d4727
cp: trim help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-05 10:09:18 +01:00
Denys Vlasenko
bb9254a3b2
du: trim help text a bit more
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-05 09:59:56 +01:00
Denys Vlasenko
81b6bf1852
du: remove stray whitespace in help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-05 09:52:19 +01:00
Denys Vlasenko
132b044f4b
ntpd: experimental code to correct frequency a bit more aggressively
...
function old new delta
update_local_clock 730 792 +62
recv_and_process_peer_pkt 850 835 -15
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-05 00:51:48 +01:00
Denys Vlasenko
e8cfc3f693
blkid: if parameters are given, do not scan /dev
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-03 15:09:07 +01:00
Denys Vlasenko
97e5281641
ntpd: fix the "are we a server" check in previous commit
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-03 13:50:31 +01:00
Denys Vlasenko
e8ce285395
ntpd: avoid printing messages between send and recv. good for fast networks
...
function old new delta
ntpd_main 887 929 +42
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-03 12:15:46 +01:00
Denys Vlasenko
b124c3491b
ntpd: log clock drift with three digits after decimal point
...
+15 bytes.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-02 15:51:43 +01:00
Denys Vlasenko
74584b8665
ntpd: log jitter on update too; increase assumed clock precision x2 - to 2ms
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-02 01:22:40 +01:00
Denys Vlasenko
03a99e3d5c
date: extend help text to explain compat date format. Closes 4820
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-03-01 08:36:07 +01:00
Yin Kangkai
3ac066c256
fbsplash: use line_length instead of xres * bytes_per_pixel
...
In some system (e.g. my "strange" device), line_length is not equal xres *
bytes_per_pixel, so we need to use line_length in scr_fix to mmap and draw
rectangle etc.
My "strange" device output this:
bytes_per_pixel: 4
xres: 600, yres: 1024
yoffset: 0, xoffset: 0, line_length: 2432
G.addr: b74da000
Signed-off-by: Yin Kangkai <kangkai.yin@intel.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-02-29 18:07:59 +01:00
Denys Vlasenko
62c006d508
libbb/procps.c: make fast_strtoul_10() stop on '\n' too
...
This time for real :)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-02-28 11:16:21 +01:00
Natanael Copa
cd09e81520
grep: support for -x, match whole line
...
Specified in POSIX.
http://pubs.opengroup.org/onlinepubs/009604499/utilities/grep.html
Signed-off-by: Natanael Copa <ncopa@alpinelinux.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-02-28 03:44:08 +01:00
Denys Vlasenko
0b170e6a09
libbb/procps.c: make fast_strtoul_10() stop on '\n' too
...
This is needed for parsing /proc data on linux 2.4
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-02-28 03:36:49 +01:00
Ian Wienand
694738f4eb
du: use long long for size field
...
du has issues with files reporting large block counts on
32-bit systems with 4 byte longs. From looking at the stat.c code, it
seems the preference is to use 'long long', rather than blkcnt_t.
function old new delta
du 420 444 +24
du_main 317 321 +4
print 43 41 -2
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 28/-2) Total: 26 bytes
Signed-off-by: Ian Wienand <ianw@vmware.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-02-28 03:10:31 +01:00
Denys Vlasenko
fc4ebd0d0b
ntpd: fix offset adjustment after step; better step printing
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-02-28 02:45:00 +01:00
Denys Vlasenko
16c52a5d7b
ntpd: increase OPT_qq constant to not collide with -L
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-02-23 14:28:47 +01:00
Denys Vlasenko
6111f967f5
tar: add support for PAX-encoded path=LONGFILENAME
...
function old new delta
get_header_tar 1478 1759 +281
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-02-23 13:45:18 +01:00
Timo Teras
af36ba206f
mkdir: fix permissions on 64-bit platforms
...
sizeof(long) != sizeof(mode_t), this causes the compare in
bb_make_directory of (long)-1 != (mode_t)-1 to fail and mess up
the permissions of final directory by doing chmod((mode_t) -1).
Signed-off-by: Timo Teras <timo.teras@iki.fi >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-02-23 03:22:25 +01:00
Natanael Copa
cfcb1dac83
ifupdown: support metric for static default gw
...
This is useful when you have multiple ISPs with failover. It allows
setting the priority of the static gateway and makes it possible
to specify multiple static gateways.
The ubuntu ifupdown supports it.
function old new delta
.rodata 116725 116797 +72
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/0 up/down: 72/0) Total: 72 bytes
text data bss dec hex filename
953343 7313 8984 969640 ecba8 busybox_old
953415 7313 8984 969712 ecbf0 busybox_unstripped
Signed-off-by: Natanael Copa <natanael.copa@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-02-19 17:25:55 +01:00
Denys Vlasenko
8cce1b3ad8
httpd: make byte ranges which start at 0 work too. Closes 4766
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-02-19 17:18:45 +01:00
Denys Vlasenko
b2d668872c
modprobe-small: add comment about aliased commands' help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-02-19 16:57:08 +01:00
Lauri Kasanen
5a5db93b0f
depmod: supply help text
...
Signed-off-by: Lauri Kasanen <curaga@operamail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-02-19 16:33:37 +01:00
Denys Vlasenko
817c230a0c
getopt: trim help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-02-09 18:39:16 +01:00
Pere Orga
d0222503ff
applets_sh/*: Add a few more examples of "shell applets"
...
Signed-off-by: Pere Orga <gotrunks@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-02-09 18:23:33 +01:00
Denys Vlasenko
594db1e62a
getopt: simple code shrink; expand help text
...
function old new delta
packed_usage 28978 29184 +206
getopt_main 656 632 -24
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-02-09 18:17:29 +01:00
Jonh Wendell
9106107a50
Make unix (local) sockets work without IPv6 enabled
...
The xsocket_type() function had an optional "family" argument
that was enabled only if IPv6 is enabled. In the case of the
function was called with a valid AF_UNIX argument, and IPv6 is
disabled, this argument was silently ignored.
This patch makes the "family" argument mandatory, while keeping
the old behavior i.e., if AF_UNSPEC is passed, we try first IPv6
(if it's enabled) and fallback to IPv4.
Also I changed all callers of xsocket_type() to reflect its new
interface.
Signed-off-by: Jonh Wendell <jonh.wendell@vexcorp.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-02-09 15:14:33 +01:00
Denys Vlasenko
638dbc34b3
mdev: add a comment. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-02-06 01:00:00 +01:00
Denys Vlasenko
bbf1e3c144
acpid: do not install handlers for fatal signals
...
For acpid, it's ok to die at once.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-02-05 15:08:08 +01:00
Aaro Koskinen
6e9d047c15
cttyhack: handle multiple consoles found in sysfs
...
If multiple consoles are found from the sysfs file, cttyhack fails:
cttyhack: can't open '/dev/tty0 ttyS0': No such file or directory
In such cases take the last one as the kernel will use that one for
/dev/console.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-02-04 21:55:01 +01:00
Denys Vlasenko
ef43beac63
httpd: fix sendfile of files larger than 2 Gb. Closes 4754
...
When built with "sendfile" support, httpd was unable to send large files
(>2 GB) in one single connection, terminating it before the full file
has been sent.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-02-04 21:37:17 +01:00
Denys Vlasenko
9ec3cd400a
tweak comment, no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-02-02 11:29:43 +01:00
Denys Vlasenko
35def51c97
httpd: fix MD5-encrypted-in-httpd.conf password logic
...
function old new delta
check_user_passwd 467 492 +25
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-02-01 02:42:54 +01:00
Felipe Contreras
428bd2d433
modprobe: accept -b even if blacklist functionality is disabled
...
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-01-31 14:55:15 +01:00
Dennis Groenen
c0657e0d0a
vi: add ":prev" command support
...
function old new delta
colon 2844 2891 +47
vi_main 243 255 +12
text_yank 54 56 +2
refresh 780 774 -6
Signed-off-by: Dennis Groenen <tj.groenen@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-01-31 14:12:38 +01:00
Denys Vlasenko
800a9a056a
vi: move mark[i] pointers if text[] moves after realloc
...
While at it, optimized :s/find/repl/ a bit
function old new delta
text_hole_make 120 150 +30
colon 2848 2844 -4
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-01-31 14:10:26 +01:00
Sergey Naumov
7eaa03709b
login: -f should not ask for password even with PAM
...
Signed-off-by: Sergey Naumov <sknaumov@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-01-30 12:52:56 +01:00
Denys Vlasenko
da2b2da6a7
init: add a segv debugging aid, disabled by default
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-01-30 12:15:22 +01:00
Paulius Zaleckas
1c7724bf2a
gen_build_files.sh: exclude hidden directories
...
I am using quilt to manage patches internally. Quilt creates dir .pc
and stores unmodified files there. Since I made change in one of
Config.src quilt made a copy in .pc/xxx.patch/xxx/Config.src. When
I run make it calls gen_build_files.sh and it generates
.pc/xxx.patch/xxx/Config.in. Now when I want to pop patch quilt
thinks I have made changes to original xxx/Config.in.
IMO the best solution is just to ignore hidden directories in
gen_build_files.sh. This also results in shorter build time in case
busybox is under git/svn versioning, since it avoids searching
many directories for Config.src.
Signed-off-by: Paulius Zaleckas <paulius.zaleckas@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-01-30 02:34:56 +01:00
Javier Viguera
e8758eaf4f
mdev: fix wrong sizeof
...
Signed-off-by: Javier Viguera <javier.viguera@digi.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-01-30 02:15:13 +01:00
Quentin Casasnovas
c158601d50
bootchartd: add process accounting feature
...
function old new delta
bootchartd_main 962 1088 +126
finalize 294 357 +63
acct - 33 +33
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 2/0 up/down: 222/0) Total: 222 bytes
Signed-off-by: Quentin Casasnovas <quentin.casasnovas@mathembedded.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-01-18 02:12:13 +01:00
Javier Viguera
ce4f39ac7c
find_mount_point: fix find_mount_point for char devices
...
This allows to find mount points of 'char' devices such as UBI volumes
which otherwise fail for example with 'df' command:
/ # df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 72091984 12360980 56068924 18% /
devtmpfs 115236 4 115232 0% /dev
tmpfs 28672 32 28640 0% /tmp
/dev/ubi0_0 360268 18348 341920 5% /tmp/mnt/userfs
/ # df /dev/ubi0_0
Filesystem 1K-blocks Used Available Use% Mounted on
devtmpfs 115236 4 115232 0% /dev
Signed-off-by: Javier Viguera <javier.viguera@digi.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-01-18 01:49:11 +01:00
Denys Vlasenko
fdd0b3b398
vconfig: fix help text; small code shrink. Closes 4658
...
function old new delta
xfind_str 45 46 +1
vconfig_main 228 223 -5
packed_usage 28980 28954 -26
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-01-16 04:00:37 +01:00
Denys Vlasenko
6e8861b5f1
*: better comments on termios manipulations. No code changes.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-01-15 23:00:13 +01:00
Denys Vlasenko
7ce209b9d4
shell_builtin_read: set cc[VMIN] to 1; lineedit: don't clear c_cc[VINTR]
...
First change fixes "read -n NUM". Apparently poll() won't report
data availability if cc[VMIN] > 1 until there are at least cc[VMIN] bytes.
function old new delta
read_line_input 3885 3877 -8
shell_builtin_read 1097 1087 -10
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-18) Total: -18 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-01-15 22:58:06 +01:00
Denys Vlasenko
d29ae7e071
sed: fix possible case of signed char bug; expand debugging printouts
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-01-15 20:06:03 +01:00
Denys Vlasenko
7550201e9a
mke2fs: do not zero out first kilobyte. Closes 3247
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-01-11 01:02:31 +01:00
Denys Vlasenko
499597d6ef
mdev: do not treat non-leading '#' chars as start of comment. Closes 4676
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-01-11 00:37:17 +01:00
Denys Vlasenko
982fdaf4b2
acpid: close fds which are reported as dead (POLLERR/POLLHUP/POLLNVAL) by poll.
...
function old new delta
acpid_main 1159 1229 +70
packed_usage 28977 28980 +3
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-01-09 05:01:25 +01:00
Denys Vlasenko
d45efd3a9f
passwd,cryptpw: make default encryption algorithm configurable
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-01-08 16:44:37 +01:00
Denys Vlasenko
3e0c428c45
Move include <shadow.h> close to pwd.h and grp.h includes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-01-08 16:13:55 +01:00
Denys Vlasenko
a76dd50ce1
Move Adroid endgrent() and endpwent() NOPS to libbb.h
...
They should be after includes of pwd.h and grp.h
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-01-08 16:11:38 +01:00
Denys Vlasenko
acdb0041b3
libpwdgrp/pwd_grp.c: use same static buffer for all getpwXX functions
...
This should save more than 0.5k of malloced memory in applets
which use those functions.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-01-06 16:24:56 +01:00
Denys Vlasenko
2e55404bcf
libpwdgrp/pwd_grp.c: set opened /etc/{passwd,group,shadow} fds CLOEXEC
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-01-06 16:23:42 +01:00
Denys Vlasenko
6b64a26976
platform.h: define endgrent() and endpwent() as no-ops on Android
...
Surprisingly, bionic libc seems to lack these functions.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2012-01-06 16:23:18 +01:00
Denys Vlasenko
ba65872950
libbb/bb_strtonum: always set end ptr, even on error return
...
function old new delta
handle_errors 69 61 -8
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-22 13:00:32 +01:00
Alexey Fomenko
6a93212b54
kill: fix segfault in arguments parsing
...
Signed-off-by: Alexey Fomenko <ext-alexey.fomenko@nokia.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-22 11:38:57 +01:00
Denys Vlasenko
83f103b30e
ash: in standalone mode, search in $PATH if /proc/self/exe doesn't exist
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-20 06:10:35 +01:00
Denys Vlasenko
3365e9f3cc
makemime: tweak help text: -a HDR can be repeated
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-20 02:15:19 +01:00
Denys Vlasenko
03419aa037
httpd: don't drop/abuse QUERY_STRING when /cgi-bin/index.cgi is used
...
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-19 12:30:34 +01:00
Denys Vlasenko
93b4a60526
wget: fix use-after-free on redirect
...
function old new delta
wget_main 2153 2168 +15
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-18 05:11:56 +01:00
Denys Vlasenko
f282c6b657
libbb: remove is_directory's argument which is always NULL
...
function old new delta
send_cgi_and_exit 892 890 -2
ln_main 447 445 -2
handle_incoming_and_exit 2784 2780 -4
is_directory 66 59 -7
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/6 up/down: 2/-19) Total: -15 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-18 03:27:46 +01:00
Denys Vlasenko
f85bd1a7a7
httpd: remove redundant NULL assignment and save one strrchr. -8 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-18 03:22:36 +01:00
Michael McTernan
ee0f444f11
udhcp: finish support of classless static routes (now the correct patch!)
...
Signed-off-by: Michael McTernan <Michael.McTernan.2001@cs.bris.ac.uk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-16 17:10:09 +01:00
Michael McTernan
7b57ff4436
udhcp: finish support of classless static routes
...
function old new delta
udhcp_str2optset 415 532 +117
Signed-off-by: Michael McTernan <Michael.McTernan.2001@cs.bris.ac.uk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-16 17:05:52 +01:00
Paulius Zaleckas
be2a557918
vconfig: remove /proc/net/vlan/config check
...
In original implementation /proc/net/vlan/config check only prints warning
and does not exit. Busybox version exits if this file is not found and this
prevents kernel module autoloading to work.
I think it is safe to remove this check since ioctl() call will fail
(with proper
error code) anyway if 802.1q module is not loaded (or autoloading is off).
Signed-off-by: Paulius Zaleckas <paulius.zaleckas@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-16 01:42:55 +01:00
Denys Vlasenko
b05cd6b7a7
httpd: fix /../ sanitization (had one extra semicolon). rewrote it
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-16 01:37:02 +01:00
Denys Vlasenko
cda6ea905d
ash: document bash's exit code too. No code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-16 00:44:36 +01:00
Denys Vlasenko
2bef526331
ash: add comment about bash's ENOEXEC handling. No code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-16 00:25:17 +01:00
Denys Vlasenko
d6f5000c13
*: style fixes. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-15 12:39:25 +01:00
Lauri Hintsala
454fe29a80
ifupdown: remove interface from state_list if iface_up fails
...
Fix the issue where interface is set to the configured state even if
configuration has failed. Add error check to state setting logic.
Signed-off-by: Lauri Hintsala <lauri.hintsala@bluegiga.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-15 12:33:39 +01:00
Daniel Fandrich
1b41b33be3
configs/android_defconfig: update
...
Signed-off-by: Daniel Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-15 10:14:51 +01:00
walter harms
fdf514f343
touch: add new option FEATURE_TOUCH_SUSV3
...
This options -d -t -r where hidden under DESKTOP.
This option allows the user to enable these options for (only) touch.
The patch only changes DESKTOP to FEATURE_TOUCH_SUSV3.
Signed-off-by: walter harms <wharms@bfs.de >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-14 08:48:59 +01:00
Denys Vlasenko
3ef3cc5949
touch: document -t DT option in help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-13 16:56:47 +01:00
Denys Vlasenko
7280d2017d
udhcpc: sanitize hostnames in incoming packets. Closes 3979.
...
The following options are replaced with string "bad" if they
contain malformed hostname:
HOST_NAME, DOMAIN_NAME, NIS_DOMAIN, TFTP_SERVER_NAME
function old new delta
xmalloc_optname_optval 850 888 +38
attach_option 440 443 +3
len_of_option_as_string 13 14 +1
dhcp_option_lengths 13 14 +1
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/0 up/down: 43/0) Total: 43 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-08 16:41:05 +01:00
Denys Vlasenko
53782d9221
iproute: fix help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-06 18:59:55 +01:00
Denys Vlasenko
2f8ccc14f7
blkid: make help text show [BLOCKDEV]...
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-06 15:09:27 +01:00
Denys Vlasenko
c3375f0389
volume_id/get_devname: trivial code shrink
...
function old new delta
uuidcache_init 36 41 +5
get_devname_from_uuid 55 51 -4
get_devname_from_label 61 57 -4
display_uuid_cache 109 105 -4
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/3 up/down: 5/-12) Total: -7 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-06 15:06:59 +01:00
Denys Vlasenko
b8ff9357d5
suppress a "integer overflow in expression" waring on big endian. Closes 4405
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-05 04:54:14 +01:00
Tristan Schmelcher
5560e1af0a
Fix link failure on some platforms when PAM is enabled
...
Signed-off-by: Tristan Schmelcher <tristan_schmelcher@alumni.uwaterloo.ca >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-05 04:38:58 +01:00
Denys Vlasenko
ef7aa46bc4
init: code shrink -4 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-05 03:54:28 +01:00
Denys Vlasenko
beb860ac75
init: utmp update of DEAD_PROCESS was misplaced, and could be skipped. Fixing.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-12-05 03:31:05 +01:00
Pascal Bellard
0fa3e5f6f9
httpd: small fixes to previous change
...
Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-29 20:54:30 +01:00
Pascal Bellard
7291755439
httpd: make it possible to use system passwords for auth
...
function old new delta
check_user_passwd 320 467 +147
httpd_main 760 757 -3
Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-29 13:51:11 +01:00
Denys Vlasenko
901365fcff
old_e2fsprogs/blkid: close the fd after we are done with it
...
Some people have HUGE /dev/*...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-28 18:57:04 +01:00
Denys Vlasenko
1fd7129bc6
vi: fix [end] key handling
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-28 04:55:48 +01:00
Daniel Fandrich
65a1ee956f
rx: fix file corruption on block checksum failure
...
Rather than dropping the bad block, rx was appending it
to the file.
Signed-off-by: Daniel Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-23 12:07:31 +01:00
Denys Vlasenko
d2277e262f
nommu: fix cases where we mangle argv[0][0]
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-22 17:19:26 +01:00
Daniel Fandrich
fcb9e07eca
Added a few more features to android_defconfig
...
Signed-off-by: Daniel Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-21 14:27:35 +01:00
Denys Vlasenko
5f118ff885
Merge branch 'master' of git+ssh://busybox.net/var/lib/git/busybox
2011-11-21 14:25:15 +01:00
Denys Vlasenko
fc186711fe
makemime: document our current behavior. Tweak help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-19 14:43:02 +01:00
Denys Vlasenko
3bc4fc5857
makemime: content-type should default to application/octet-stream
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-19 13:55:46 +01:00
Denys Vlasenko
578b817151
sendmail: fix a mistake in previous commit
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-19 13:54:50 +01:00
Denys Vlasenko
41fea01066
sendmail: stop doing -t unconditionally; makemime: generate 76 char base64 lines
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-18 22:25:35 +01:00
Denys Vlasenko
a0bef7cc27
hexdump: fix hexdump -n1 -ve '8/2 ""' SEGV. Closes 4478
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-18 02:47:35 +01:00
Denys Vlasenko
860491c525
udhcpc: shrink code by setting xid more economically
...
function old new delta
send_decline 90 82 -8
udhcpc_main 2649 2640 -9
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-18 02:09:13 +01:00
Denys Vlasenko
1dc80bae0b
libbb.h: add check for bad off_t size detection
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-17 21:51:32 +01:00
Denys Vlasenko
f59a50ee30
libbb.h: tighten up macro code
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-16 21:30:19 +01:00
Denys Vlasenko
a092a89d8f
udhcpc6: rudimentary code to export data to script; fix IAADDR parsing
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-16 20:17:12 +01:00
Denys Vlasenko
2951add2bf
applets_sh/nologin: an applet implemented as shell script
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-10 18:00:28 +01:00
Denys Vlasenko
39b233182c
mount: resolve hosts to IPs in nfs mounts
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-10 17:01:39 +01:00
Denys Vlasenko
a86e02492d
mount: make FEATURE_MOUNT_NFS not needed for Linux 2.6.23+
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-10 16:53:35 +01:00
Dave Love
fae473c81b
mount: support -o noacl
...
Signed-off-by: Dave Love <fx@gnu.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-10 15:19:25 +01:00
Bernhard Reutner-Fischer
b9f4cd85f0
Config: clarify {SHOW,VERBOSE,COMPRESS}_USAGE
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2011-11-09 20:23:38 +01:00
Peter Korsgaard
743edac6c8
bb_daemonize_or_rexec(): add flag to double-fork; use it in start-stop-daemon
...
Add a DAEMON_DOUBLE_FORK flag to make bb_daemonize double-fork so it isn't a
session leader, and hence doesn't get a controlling tty on Linux if a tty is
ever opened, similar to how libdaemon's daemon_fork or the big
start-stop-daemon does it - And use it in start-stop-daemon.
For details, see http://www.win.tue.nl/~aeb/linux/lk/lk-10.html#ss10.3
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-09 19:44:37 +01:00
Denys Vlasenko
7e21f0491c
udhcpc[6]: tweak help text, remove -B from udhcpc6 and "--version" from both
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-08 11:39:41 +01:00
Denys Vlasenko
2b6a6b90cc
udhcpc6: set hop limit to 1 in emitted raw packets
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-07 18:22:06 +01:00
Denys Vlasenko
68c5b28156
udhcpc6: fix endianness
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-07 16:21:24 +01:00
Denys Vlasenko
9ba75048c0
udhcpc6: new applet. Not yet functional.
...
It builds. It sends Solicit packets. Not sure these packets are well-formed.
I have no server to test it against.
function old new delta
udhcpc6_main - 2426 +2426
d6_send_raw_packet - 428 +428
d6_send_kernel_packet - 274 +274
d6_recv_raw_packet - 248 +248
send_d6_discover - 177 +177
packed_usage 28795 28966 +171
d6_run_script - 156 +156
send_d6_renew - 140 +140
send_d6_release - 126 +126
d6_recv_kernel_packet - 116 +116
send_d6_select - 95 +95
perform_d6_release - 78 +78
d6_find_option - 74 +74
init_d6_packet - 54 +54
d6_copy_option - 48 +48
d6_mcast_from_client_config_ifindex - 42 +42
d6_dump_packet - 24 +24
static.FF02__1_2 - 16 +16
d6_store_blob - 13 +13
applet_names 2432 2440 +8
applet_main 1412 1416 +4
applet_nameofs 706 708 +2
add_d6_client_options - 1 +1
------------------------------------------------------------------------------
(add/remove: 21/0 grow/shrink: 4/0 up/down: 4721/0) Total: 4721 bytes
text data bss dec hex filename
879080 493 7584 887157 d8975 busybox_old
884585 497 7584 892666 d9efa busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-07 15:55:39 +01:00
Denys Vlasenko
50089fc61c
udhcpc: trim help text, rename badly-named variable
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-07 15:44:46 +01:00
Denys Vlasenko
0fd4347ced
udhcpc: code shrink
...
function old new delta
udhcpc_main 2646 2649 +3
udhcp_run_script 816 802 -14
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-07 00:54:27 +01:00
Denys Vlasenko
3b46fcb95d
udhcpc: remove workaround for bugs in Win98 dhcp server ("MSFT 98" vendor string)
...
Stats for last three commits:
function old new delta
udhcpc_main 2635 2646 +11
udhcp_recv_raw_packet 425 414 -11
udhcp_recv_kernel_packet 210 134 -76
packed_usage 28940 28857 -83
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/3 up/down: 11/-170) Total: -159 bytes
text data bss dec hex filename
879524 493 7584 887601 d8b31 busybox_old
879340 493 7584 887417 d8a79 busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-05 01:26:18 +01:00
Denys Vlasenko
d38ca03946
udhcpc: reuse string constant; remove unneeded memset(0)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-05 01:25:03 +01:00
Denys Vlasenko
2017d48c0d
udhcpc: deprecate --hostname NAME
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-05 01:24:14 +01:00
Denys Vlasenko
c0cae52662
lineedit: fix build failure
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-04 01:09:09 +01:00
Denys Vlasenko
9ce09bc9cb
lineedit: add support for M-b, M-f, M-d, M-Backspace
...
function old new delta
ctrl_left - 96 +96
ctrl_right - 76 +76
static.esccmds 81 93 +12
read_line_input 3876 3885 +9
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 2/0 up/down: 193/0) Total: 193 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-03 13:28:22 +01:00
Daniel Fandrich
45cdf166dc
android build system updates
...
Signed-off-by: Daniel Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-03 11:20:07 +01:00
Denys Vlasenko
f3efd3c2a0
rx: code shrink
...
function old new delta
rx_main 961 947 -14
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-03 10:19:53 +01:00
Dan Fandrich
f808e777db
rx: Fix file corruption with duplicate blocks
...
Rather than dropping the dupe, rx was appending it to the file.
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-03 10:18:33 +01:00
Karol Lewandowski
b5ebe5fdb3
mount: handle list of comma-separated fs types in -t option
...
Allows one to specify list of filesystem types to be
tried when mounting particular device. E.g.
mount -t vfat,ext2 ...
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-03 10:02:31 +01:00
Denys Vlasenko
f85554c265
mount: free commented /etc/filesystems lines when we read it
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-03 09:54:53 +01:00
Denys Vlasenko
3b1603410a
nmeter: fix block i/o count on newer Linux kernels
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-11-01 23:34:46 +01:00
Denys Vlasenko
f8a5b792ba
cttyhack: move /sys/class/tty/console/active check to the front
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-31 16:57:04 +01:00
Alexander Shishkin
156840c249
cttyhack: print detected ctty name when called without parameters
...
Sometimes there's a need to figure out the controlling tty from a shell
script, for example, to obtain a line for getty. In this case it's easier
to call cttyhack than trying to repeat some of the cttyhack's logic.
function old new delta
cttyhack_main 283 327 +44
packed_usage 28911 28915 +4
Signed-off-by: Alexander Shishkin <virtuoso@slind.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-31 13:18:44 +01:00
Denys Vlasenko
bcdae63875
testsuite: merge bzcat2.tests into bzcat.tests
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-31 01:10:47 +01:00
Denys Vlasenko
c0e37b4340
testsuite: fix the mishap in the previous commit
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-31 01:08:35 +01:00
Denys Vlasenko
c531b9a3e4
bzcat: fix unpacking of more than one file, and unpacking of zero-size bz2. Closes 4393
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-31 01:05:16 +01:00
Denys Vlasenko
b076193f74
modinfo: make it select PLATFORM_LINUX. Closes 4411
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-30 22:07:36 +01:00
Denys Vlasenko
e504c245f7
getty: Hurd has no CBAUD, work around that
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-30 21:27:33 +01:00
Denys Vlasenko
83e34ac4b5
makemime: fix -a option not taking parameter
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-28 18:25:38 +02:00
Christian Engelmayer
8de2e42201
syslogd: work around rename() not renaming hardlinks to themselves
...
Function log_locally() within the syslogd can potentially lock up when
restarting the daemon after a power loss in case the unplanned shutdown hit the
rename operation during logfile rotation.
While POSIX requires the rename operation to be atomic, many file systems such
as JFFS2 implement the rename operation in 2 steps by linking the new name
followed by unlinking the original name. In case of a power loss during the
rename the system can end up with /var/log/messages and /var/log/messages.0
being 2 hard links to the same file.
When the syslog daemon restarts in such a situation it will rediscover the need
to rotate the log files, however, POSIX also requires that rename does nothing
and reports success in case oldpath and newpath are existing hard links to the
same file. Looping through reopen: by (O_CREAT | O_APPEND), the daemon
eternally reopens the same file without succeeding to rotate.
Signed-off-by: Christian Engelmayer <christian.engelmayer@frequentis.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-28 18:12:42 +02:00
Denys Vlasenko
e6094d95b5
libbb: shrink base64 decoding a bit
...
function old new delta
bb_uuenc_tbl_base64 67 66 -1
decode_base64 182 161 -21
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-28 16:15:00 +02:00
Denys Vlasenko
73d249e704
whitespace fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-28 14:07:44 +02:00
Leonid Lisovskiy
328f27fe44
libbb: split decode_base64 off read_base64
...
function old new delta
decode_base64 - 182 +182
read_base64 378 255 -123
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/1 up/down: 182/-123) Total: 59 bytes
Signed-off-by: Leonid Lisovskiy <lly.dev@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-28 13:59:55 +02:00
Denys Vlasenko
ec447c7f01
libbb.h: remove unused defines
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-24 04:06:18 +02:00
Denys Vlasenko
e9dc354df8
getty: fix a minor problem of Ctrl-D not printing '\n'
...
Also removed defines for control chars which are never changed,
and added login/getty README.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-23 23:58:59 +02:00
Denys Vlasenko
ee320c6d9c
getty: reset tty attrs on Ctrl-C and Ctrl-D too
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-23 18:05:58 +02:00
Denys Vlasenko
e206a4de4c
getty: add O_NONBLOCK to open which is used to drop ctty
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-22 08:19:42 +02:00
Denys Vlasenko
a241069004
remove duplicate include <sys/swap.h>
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-22 06:39:00 +02:00
Denys Vlasenko
94354154c4
getty: remove now not needed resetting of ALRM to to SIG_DFL
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-22 06:30:48 +02:00
Denys Vlasenko
7449e18190
getty,login: tighten up handling of ctty, pgrp, and tty attr restoring on timeout
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-22 06:27:41 +02:00
Denys Vlasenko
ef5a2d757a
getty: shrink help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-22 03:16:23 +02:00
Denys Vlasenko
5dd1f472a4
stty: trim too verbose error messages (-40 bytes)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-21 19:45:13 +02:00
Denys Vlasenko
17fb598dc2
docs/ctty.htm: add a useful URL to
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-21 18:44:33 +02:00
Denys Vlasenko
2af2acf9b5
udhcpc: add comment about server IP
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-20 14:47:41 +02:00
Denys Vlasenko
fbca0c68a7
udhcpc: in fill_envp, export BOOTP fields first
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-20 14:24:18 +02:00
Denys Vlasenko
cd4d78f525
dhcpc: fix the case where we might add extra space at the end of envvar.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-20 13:21:55 +02:00
Denys Vlasenko
1dff672335
udhcpc: fix 6rd option formatting (was using 4 more bytes than there is)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-20 12:29:18 +02:00
Denys Vlasenko
42816c204d
udhcpc: remove unused argument in sprint_nip6
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-20 10:52:07 +02:00
Denys Vlasenko
7981d79ef0
udhcpc: small code shrink
...
function old new delta
udhcp_recv_raw_packet 430 425 -5
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-20 10:34:05 +02:00
Denys Vlasenko
f461385521
typo fix in comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-20 08:54:16 +02:00
Denys Vlasenko
1f56e51ca1
udhcpc: add support for DHCP option 212 (RFC 5969)
...
The patch is from OpenWRT people.
function old new delta
xmalloc_optname_optval 637 874 +237
dhcp_option_strings 237 243 +6
dhcp_optflags 68 70 +2
len_of_option_as_string 12 13 +1
dhcp_option_lengths 12 13 +1
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 5/0 up/down: 247/0) Total: 247 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-19 22:40:35 +02:00
Denys Vlasenko
2ea73b513d
nc: small code shrink
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-19 22:31:01 +02:00
Denys Vlasenko
4ea37d62c2
gen_build_files.sh: simplify "print everything up to INSERT line" part
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-19 21:17:20 +02:00
Denys Vlasenko
efd08bfa0a
gen_build_files: don't pass 200k+ strings as params. Closes 4321
...
Also removes one grep per generated file.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-19 17:54:42 +02:00
Denys Vlasenko
f74f280a14
get_header_tar: shrink 6->64 sign extension code
...
function old new delta
getOctal 125 107 -18
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-19 14:51:12 +02:00
Denys Vlasenko
9c28fb8d28
ifupdown: code shrink
...
function old new delta
keywords_up_down - 43 +43
set_environ 371 259 -112
ifupdown_main 2194 2073 -121
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/2 up/down: 43/-233) Total: -190 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-19 02:37:08 +02:00
Peter Korsgaard
dd82443b92
ifupdown: support post-up / pre-down hooks
...
function old new delta
set_environ 330 371 +41
ifupdown_main 2156 2194 +38
iface_up 97 113 +16
iface_down 97 113 +16
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/0 up/down: 111/0) Total: 111 bytes
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-19 02:35:54 +02:00
Denys Vlasenko
ce8c4cf37f
TODO: all another location with bbox patches (OpenWRT)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-19 01:55:08 +02:00
Denys Vlasenko
5f92043c3f
uudecode: fix buggy check for empty filename
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-18 12:07:05 +02:00
Vladislav Grishenko
6464f15ddb
udhcpc: on SIGUSR1, limit renew attempts time to 20 seconds; then do total reconfig
...
Scenario:
1. udhcpc gets lease for 86400 secs and sleeps for 43200 before renew attempt
2. PC gets physically disconnected and connected to another network
3. some phy control software sends SIGUSR1 to renew the lease, SIGUSR2 isn't
used because newly connected network could be the same as before
4. udhcpc sends unicast renew requests until lease timeout fall to 60 sec.
They are ignored by new network dhcp servers
5. udhcpc sends broadcast rebind requests for 60 seconds, which are NAKed
or ignored too
6. udhcpc deconfigs and starting from discover state, gets new lease for the
new network
So, pt.4+5 it could take up to 86400 secs without correct lease, which is
too long and not acceptable.
Second SIGUSR1 will immediately run into deconfig/discover state, which is
not preferable in case of the same subnet replugged.
This patch makes sure after SIGUSR1 timeout is no more than -A NUM
(usually 20 sec). It means that renew will be requested via broadcast,
and if no replies come back, full deconf/reconf cycle will be initiated
in 20 seconds.
Signed-off-by: Vladislav Grishenko <themiron@mail.ru >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-18 01:37:47 +02:00
Leonid Lisovskiy
6c9c0a1dc9
udhcp: IF_UDHCP_VERBOSE() macro - improve code readability
...
Signed-off-by: Leonid Lisovskiy <lly.dev@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-18 00:35:47 +02:00
Peter Korsgaard
cd06e06eee
fbsplash: support 8bit mode
...
Fake truecolor support using a RGB:332 palette.
function old new delta
fb_setpal - 172 +172
fbsplash_main 920 953 +33
fb_pixel_value 50 80 +30
fb_write_pixel 47 51 +4
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 3/0 up/down: 239/0) Total: 239 bytes
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-17 05:31:52 +02:00
Peter Korsgaard
e4fa7b7965
fbsplash: limit progress bar flicker
...
Progress bar updates flicker quite a bit on slow hw / high resolutions
as the background is completely cleared before the new progress bar
position is drawn on top.
Improve it by first drawing the progress bar and then only fill the
remaining rows with the background.
function old new delta
fb_drawprogressbar 444 429 -15
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-17 04:35:23 +02:00
Denys Vlasenko
4c77ad75b1
pwd: implement -LP if DESKTOP
...
function old new delta
pwd_main 41 244 +203
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-16 05:16:50 +02:00
Flemming Madsen
ecccbac37b
inotify: if PROG is -, print events to stdout
...
function old new delta
inotifyd_main 516 589 +73
packed_usage 28698 28709 +11
Signed-off-by: Flemming Madsen <busybox@themadsens.dk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-10 20:24:02 +02:00
Rob Landley
39ec6a2ad5
patch: make -p count path components, not slashes (think /blah//thing)
...
Signed-off-by: Rob Landley <rob@landley.net >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-10 19:59:38 +02:00
Oliver Metz
cc87588a61
disable strverscmp usage if we build against uClibc-0.9.31
...
Signed-off-by: Oliver Metz <oliver.metz@googlemail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-09 02:08:42 +02:00
Denys Vlasenko
faf7c62f1d
tftp: mode string is case independent
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-10-06 17:19:09 +02:00
Cristian Ionescu-Idbohrn
85b1f292c9
ps: fix for !FEATURE_PS_LONG build
...
Signed-off-by: Cristian Ionescu-Idbohrn <cii@axis.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-29 11:02:00 +02:00
Flemming Madsen
b64bd16459
ps: with -l, show STIME too
...
Signed-off-by: Flemming Madsen <busybox@themadsens.dk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-27 15:31:25 +02:00
Denys Vlasenko
8d9ac30572
ps: add support for -l for !DESKTOP
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-26 02:56:08 +02:00
Denys Vlasenko
d184a728cf
rename archive.h to bb_archive.h. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-22 12:45:14 +02:00
Denys Vlasenko
45f0a1156d
mdev: trim overlong comments. No code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-22 04:55:47 +02:00
Denys Vlasenko
3eccd7ecbe
mdev: don't reparse rules on -s
...
function old new delta
make_device 1648 1843 +195
clean_up_cur_rule - 61 +61
make_default_cur_rule - 41 +41
mdev_main 690 712 +22
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 2/0 up/down: 319/0) Total: 319 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-22 03:46:30 +02:00
Denys Vlasenko
16714245f9
add INIT_G()'s. No code changes.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-21 01:59:15 +02:00
Denys Vlasenko
5c6ba6c56f
mdev: expand --help so that it's actually useful.
...
function old new delta
packed_usage 28634 28822 +188
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-19 12:18:11 +02:00
Denys Vlasenko
34c469ae04
sendmail: don't talk until 220 code is seen. Closes 3487
...
function old new delta
sendmail_main 934 939 +5
smtp_checkp 167 165 -2
packed_usage 28634 28621 -13
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-18 03:01:49 +02:00
Denys Vlasenko
0851d125c3
tail: fix -c +N. Closes 4111
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-17 00:12:24 +02:00
Denys Vlasenko
6d2d652cd3
applet_tables: fix single applet build failure. Closes 4009
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-16 14:28:32 +02:00
Denys Vlasenko
514cbfc593
syslogd: fix missing newline problen in memory log buffer. Closes 4159
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-16 13:28:52 +02:00
Denys Vlasenko
c74a79f288
chpst: move misplaced comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-16 11:54:13 +02:00
Denys Vlasenko
d18ef6c9f6
chpst: simple code shrink
...
function old new delta
chpst_main 733 718 -15
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-16 11:52:43 +02:00
Denys Vlasenko
585541e8e3
start_stop_daemon: set complementary group ids too. Closes 3253
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-15 18:27:05 +02:00
Denys Vlasenko
dd1eb413f2
suppress "warning: implicit declaration of function 'alloca'"
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-15 10:37:04 +02:00
Ian Wienand
378ab68199
login: new option LOGIN_SESSION_AS_CHILD
...
Signed-off-by: Ian Wienand <ianw@vmware.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-14 08:41:38 +02:00
Denys Vlasenko
a221bc5f99
sed: better help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-13 18:40:22 +02:00
Pascal Bellard
f9e07e70bb
conspy: add framebuffer support, -Q option.
...
Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-13 18:39:04 +02:00
Bernhard Reutner-Fischer
74b871febb
Config: fix wording in help-text
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2011-09-13 14:59:06 +02:00
Denys Vlasenko
13e709c53f
losetup: implement -r option. Closes 4033.
...
function old new delta
packed_usage 28595 28633 +38
losetup_main 285 290 +5
singlemount 906 908 +2
set_loop 674 672 -2
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-12 08:30:16 +02:00
Denys Vlasenko
dd1061b6a7
wget: URL-decode user:password before base64-encoding it into auth hdr. Closes 3625.
...
function old new delta
percent_decode_in_place - 152 +152
parse_url 304 317 +13
handle_incoming_and_exit 2795 2798 +3
httpd_main 763 760 -3
decodeString 152 - -152
------------------------------------------------------------------------------
(add/remove: 2/1 grow/shrink: 2/1 up/down: 168/-155) Total: 13 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-11 21:04:02 +02:00
Denys Vlasenko
5126cf9a15
ping: display real IPv6 response address. Hopefully closes 3745.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-11 20:27:28 +02:00
Denys Vlasenko
46aa5e0859
tune2fs: add support for -C MOUNT_COUNT. +40 bytes. Closes 3901.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-11 20:08:12 +02:00
Denys Vlasenko
223b9417b3
inetd: close new udp fd in "udp nowait" case
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-11 16:48:21 +02:00
Denys Vlasenko
d2fe2ba08d
chpasswd: fix possible free() or non-allocated string. +8 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-11 12:25:59 +02:00
Denys Vlasenko
7b46d11582
awk: fix a SEGV
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-11 00:30:56 +02:00
Denys Vlasenko
d48fdde370
stop declariong our own dirname prototype
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-10 13:48:34 +02:00
Denys Vlasenko
522041ee7b
regularize options which control size/speed trade
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-10 13:25:57 +02:00
Denys Vlasenko
202a1b9284
awk: fix define name collision with BSD headers
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-10 04:51:09 +02:00
Ian Wienand
c2a06db69d
gzip: new GZIP_BIG_MEM option
...
Enabling the config option on my standard linux box and zipping a
random 250mb file:
small mem: 21.85user 0.44system 0:22.35elapsed
big mem: 13.45user 0.46system 0:13.94elapsed
Signed-off-by: Ian Wienand <ianw@vmware.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-09 20:19:35 +02:00
Sonic Zhang
880eec8f33
depmod.pl: output correct dep format according to kernel version
...
All kernel version except for 2.4 has the same dep output format.
(Possibly related to era of kernels 3.0+)
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-09 18:58:08 +02:00
Denys Vlasenko
f23f7856cb
tweak comments in android build files
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-09 18:07:38 +02:00
Denys Vlasenko
e0894f567a
Android build fixes and alternate (hopefully simpler) defconfig for it
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-09 18:00:44 +02:00
Denys Vlasenko
831756bac4
unzip: fflush stdout before reading interative y/n answer from stdin
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-09 17:30:55 +02:00
Denys Vlasenko
12e154f0cf
vi: prevent unlimited recursion in do_cmd(). Closes 4153
...
function old new delta
do_cmd 4284 4194 -90
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-09 12:35:49 +02:00
Baruch Siach
289c47b049
udhcp: remove the declaration of non-existent udhcp_checksum
...
Signed-off-by: Baruch Siach <baruch@tkos.co.il >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-09 11:03:45 +02:00
Denys Vlasenko
0d0260fd1e
inet_cksum: big-endian fix
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-08 10:59:26 +02:00
Denys Vlasenko
9289935cfd
Fix compile breakage
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-07 22:19:46 +02:00
Denys Vlasenko
f65c5f5c54
awk: next_input_file can return NULL, don't SEGV in this case.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-07 20:01:39 +02:00
Baruch Siach
e8f36330d9
networking: consolidate the IP checksum code. -129 bytes.
...
Signed-off-by: Baruch Siach <baruch@tkos.co.il >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-07 17:55:40 +02:00
Denys Vlasenko
8c84f7545c
crond: fix the case when option -d is disabled
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-07 05:56:09 +02:00
Denys Vlasenko
e45af7ad17
lineedit: remove SAVE_HISTORY bit, ->hist_file can be used as indicator
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-04 16:15:24 +02:00
Denys Vlasenko
bede215cf1
lineedit: add support for history saving on exit
...
Based on the patch by Dennis Groenen <tj.groenen@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-04 16:12:33 +02:00
Denys Vlasenko
4840ae8a06
lineedit: fix atomic replace of history file; hush: fix $HISTFILE handling
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-09-04 15:28:03 +02:00
Lauri Kasanen
7b46220d92
grep: be GNU compatible with -f EMPTY_FILE
...
Signed-off-by: Lauri Kasanen <curaga@operamail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-28 12:39:04 +02:00
Denys Vlasenko
2390109dcb
top: fix CPU% for thread display. Closes 4081
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-28 11:57:36 +02:00
Ian Wienand
abc33ac8b2
Fix find -follow support
...
Signed-off-by: Ian Wienand <ianw@vmware.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-28 06:53:20 +02:00
Denys Vlasenko
24915117a2
Fixes for warnings in FreeBSD build
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-28 05:31:49 +02:00
Matthias Andree
1285437217
Fixes for FreeBSD build
...
Signed-off-by: Matthias Andree <mandree@freebsd.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-28 05:05:02 +02:00
Denys Vlasenko
a04e4c2266
uncompress: die on read errors
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-22 04:59:41 +02:00
Rob Landley
c5f7847659
patch: make it able to create files (again)
...
I broke patch's ability to create files in November, and nobody noticed in
the ensuing 11 months. Sigh.
Signed-off-by: Rob Landley <rob@landley.net >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-22 04:58:32 +02:00
Denys Vlasenko
251fc70e97
uncompress: fix buffer underrun by corrupted input
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-18 14:29:41 +02:00
Pere Orga
b1611d9a46
hostid: fix behavior on identifiers starting with zeros
...
Signed-off-by: Pere Orga <gotrunks@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-16 23:36:10 +02:00
Kevin Cernekee
4619802a5f
cttyhack: trivial spelling/spacing fixes
...
Signed-off-by: Kevin Cernekee <cernekee@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-16 23:31:03 +02:00
Kevin Cernekee
816cd16a4c
cttyhack: remove the trailing newline when reading console name from sysfs
...
Signed-off-by: Kevin Cernekee <cernekee@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-16 23:29:54 +02:00
Denys Vlasenko
9176f6c52c
patch: add a test we currently fail
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-16 22:57:12 +02:00
Denys Vlasenko
a7d6bb3b5d
sed: fix range handling for sed -i. Closes 4069
...
function old new delta
sed_main 606 618 +12
add_cmd 1099 1101 +2
process_files 2108 2099 -9
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 14/-9) Total: 5 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-16 13:29:34 +02:00
Denys Vlasenko
4f54168ea2
less: fix for screen size detection
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-16 01:53:12 +02:00
Denys Vlasenko
c21c310e46
swapoff: dont pass "p" in opt_complementary
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-13 23:36:36 +02:00
Denys Vlasenko
c97578de6b
conspy,nandwrite,nanddump: enable in defconfig
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-13 09:00:29 +02:00
Denys Vlasenko
8b141ebd45
Start 1.20.0 development cycle
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-13 08:56:58 +02:00
Denys Vlasenko
d84b175cb6
Bump version to 1.19.0, update copyright year in help message
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-13 08:46:00 +02:00
Denys Vlasenko
2969e24e2a
testsuite: fixes after randomconfig run
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-11 10:40:12 +02:00
Denys Vlasenko
87249fbf50
find: fix a bug in !ENABLE_FEATURE_FIND_XDEV config
...
A subtle one: wrong pairing of "else"!
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-11 02:27:13 +02:00
Denys Vlasenko
5845a06c9e
uptime: more compatible output
...
was: 12:59:35 up 1:57, 4 users, load average: 0.11, 0.20, 0.53
is: 12:59:37 up 1:57, 4 users, load average: 0.11, 0.20, 0.53
While at it, switched code to unsigned division.
Based on patch by Pere Orga <gotrunks@gmail.com >.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-10 13:00:04 +02:00
Denys Vlasenko
47b03368f3
randomconfig fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-10 10:45:48 +02:00
Denys Vlasenko
b47b3ce1bd
randomconfig fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-10 00:51:29 +02:00
Denys Vlasenko
b347df9131
randomconfig fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-09 22:49:15 +02:00
Denys Vlasenko
a6367f9fae
remove extra IF_WHO()
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-09 10:28:28 +02:00
Denys Vlasenko
89edf29cfd
remove extra += who.o
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-09 09:36:25 +02:00
Ralf Friedl
00103d3287
df: more compatible -P behavior
...
In coreutils df, one of the effects of the option -P is to output
everything in one line. This makes it much easier for a script to parse
the output of df.
This patch adds the same behavior to busybox df.
function old new delta
df_main 853 863 +10
Signed-off-by: Ralf Friedl <Ralf.Friedl@online.de >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-09 04:49:27 +02:00
Thomas Petazzoni
98aeabe792
zcip.script: fix $ip environment variable
...
The environment variable containing the IP address allocated by zcip
is "ip" and not "IP".
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-09 04:41:00 +02:00
Tito Ragusa
7926b98949
users: new applet.
...
Signed-off-by: Tito Ragusa <farmatito@tiscali.it >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-09 04:37:50 +02:00
Pere Orga
d91b13806f
uptime: add config flag to allow displaying the number of users currently logged on
...
Signed-off-by: Pere Orga <gotrunks@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-09 04:09:17 +02:00
Denys Vlasenko
7485086f1e
die_if_bad_username: tighten up a bit
...
function old new delta
die_if_bad_username 77 97 +20
Based on patches from Tito.
The changes are:
better comments
we disallow '@' now - in practice such usernames will be unusable
use of the portable filename character set plus '$'
don't use isalnum as it allows non-ASCII letters in legacy 8-bit locales (pointed out by Rich Felker)
enforce maximum length of LOGIN_NAME_MAX (including NUL)
don't allow '$', '.', and '-' as first char
don't print the illegal char in error message as if it is a wide char it will be unreadable
print the position of the illegal character
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-09 04:05:13 +02:00
Denys Vlasenko
6e42b89b8d
hush: fix remaining known two bugs with IFS expansion. Closes 4027.
...
function old new delta
expand_vars_to_list 1054 1140 +86
parse_stream 2425 2479 +54
expand_on_ifs 258 310 +52
builtin_umask 133 132 -1
done_word 820 779 -41
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/2 up/down: 192/-42) Total: 150 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-01 18:16:43 +02:00
Denys Vlasenko
4fb53fb08c
hush: partially fix wrong expansion on $IFS (bug 4027).
...
In the added testcase, before patch we failed 8 out of 9 tests,
now we fail only 2 (4th and 5th).
function old new delta
expand_on_ifs 225 258 +33
expand_vars_to_list 1038 1054 +16
o_save_ptr_helper 115 119 +4
builtin_umask 132 133 +1
o_addQstr 165 161 -4
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/1 up/down: 54/-4) Total: 50 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-08-01 14:06:20 +02:00
Ian Wienand
954dbd3a00
tar: ignore file size (assume 0) for hardlinks
...
Signed-off-by: Ian Wienand <ianw@vmware.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-29 08:33:47 +02:00
Denys Vlasenko
67905e2d7c
*: work around sysinfo.h versus linux/*.h problems
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-26 13:42:12 +02:00
Denys Vlasenko
4abcb8b0d1
tcpudp: simplify help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-25 16:35:44 +02:00
Denys Vlasenko
2ef4214dd9
less: add a TODO comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-25 15:23:52 +02:00
Denys Vlasenko
4e552a70ec
less: optionally query terminal size via "ESC [ 6 n". Closes bug 2659.
...
+7 bytes is not selected, +100 if selected.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-25 15:18:20 +02:00
Denys Vlasenko
be391e7596
libbb.h: do not use homegrown struct sysinfo.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-25 11:05:43 +02:00
Denys Vlasenko
f7f99900fd
android_defconfig: remove some extra cflags. untested
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-23 17:41:00 +02:00
Daniel Fandrich
0a428607a0
add defconfig files for Android, Cygwin and FreeBSD
...
Also added an example script to show how to compile BusyBox against
Android's bionic.
Signed-off-by: Daniel Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-19 08:10:05 +02:00
Denys Vlasenko
f2f9bc5932
dc: fix a case where we can run off malloced space
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-15 08:37:36 +02:00
Kevin Cernekee
43a668b2ee
cttyhack: fail gracefully if the device node is missing
...
Signed-off-by: Kevin Cernekee <cernekee@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-13 09:30:36 +02:00
Kevin Cernekee
064e99646a
cttyhack: check sysfs for the name of the active console
...
Signed-off-by: Kevin Cernekee <cernekee@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-13 09:26:58 +02:00
Denys Vlasenko
80856b37e8
fdisk: reinstate a short sleep between sync() and ioctl(BLKRRPART)
...
While at it, simplify code a bit.
function old new delta
write_table 201 198 -3
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-13 09:06:32 +02:00
Denys Vlasenko
a669eca3a2
libbb/lineedit: implement optional Ctrl-R history search
...
function old new delta
read_line_input 3433 3957 +524
load_string 77 90 +13
input_tab 1086 1069 -17
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 537/-17) Total: 520 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-11 07:36:59 +02:00
Lauri Kasanen
98f213ed79
bloat-o-meter: don't require that pythin is in /usr/bin.
...
Signed-off-by: Lauri Kasanen <curaga@operamail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-08 10:56:58 +02:00
Denys Vlasenko
4ee6487849
make configs/* files have _defconfig suffix
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-08 08:53:16 +02:00
Denys Vlasenko
14bd16ac56
more tweak for bionic
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-08 08:49:40 +02:00
Denys Vlasenko
acff3733ba
usleep: do not check for usleep error, it should never fail
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-08 08:37:57 +02:00
Denys Vlasenko
8f6ce094dc
a few tweaks for bionic
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-08 08:34:28 +02:00
Daniel Fandrich
126f2b2853
Support configuring Busybox from _defconfig files
...
The existing test .config files are moved to configs/ and renamed
to *_defconfig. 'make xyz_defconfig' will enable the
configuration in that specific file.
Signed-off-by: Daniel Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-08 07:59:16 +02:00
Denys Vlasenko
319b8bb355
hwclock: use locale-specific date output format
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-08 06:40:25 +02:00
Denys Vlasenko
db43d3d418
halt: perror_msg_and_die needs bb_ prefix
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-08 06:23:08 +02:00
Dan Fandrich
b5de0c12d6
typo fixes
...
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-08 05:47:49 +02:00
Denys Vlasenko
4dc35fb5b6
platform.h: tweaks for cygwin
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-08 04:41:38 +02:00
Denys Vlasenko
46465ecf72
hwclock: better help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-04 04:34:57 +02:00
Lauri Kasanen
e3f805ccc3
md5/shaNsum: make -c support a list of files
...
function old new delta
md5_sha1_sum_main 455 473 +18
Signed-off-by: Lauri Kasanen <curaga@operamail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-04 01:49:59 +02:00
Denys Vlasenko
066f399566
vi: tweak regex.h include
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-03 03:19:43 +02:00
Denys Vlasenko
104e01409d
halt/reboot: better message if /sbin/telinit is not found
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-07-03 01:46:02 +02:00
Dan Fandrich
75214cfe00
Use the _unlocked stdio macros only when they're all available
...
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-30 02:59:17 +02:00
Denys Vlasenko
0c4cf42c1e
libbb.h: tweak _unlocked hack
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-30 02:44:27 +02:00
Dan Fandrich
0e79e7bb42
Use the built-in getline on more systems that don't have it
...
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-30 02:11:49 +02:00
Timo Teras
0a5b310067
platform.c: provide getline implementation
...
Signed-off-by: Timo Teras <timo.teras@iki.fi >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-29 02:19:58 +02:00
Walter Harms
b9ba580917
vi: fix regex search, make it selectable in config
...
function old new delta
char_search 134 214 +80
find_pair 187 169 -18
mycmp 37 - -37
Signed-off-by: Walter Harms <wharms@bfs.de >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-27 02:59:37 +02:00
Denys Vlasenko
52f4fe9db6
id: correct getgroups usage
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-22 16:42:36 +02:00
Denys Vlasenko
d5ac9c88a7
groups: make it NOEXEC
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-22 04:17:49 +02:00
Denys Vlasenko
1e18a01fa2
ls: fix HAVE_STRVERSCMP check; add check for older uclibc versions
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-21 17:12:52 +02:00
Tito Ragusa
33092f1003
groups: new applet
...
Signed-off-by: Tito Ragusa <farmatito@tiscali.it >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-21 17:11:40 +02:00
Denys Vlasenko
561f9c8585
Add HAVE_STRVERSCMP, guard the only usage of strverscmp with #ifdef
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-21 16:38:29 +02:00
Dan Fandrich
040b5a2e29
setserial: added missing \n in help text
...
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-20 10:22:18 +02:00
Denys Vlasenko
06448912e6
libbb: use _unlocked variants of stdio I/O.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-20 10:06:28 +02:00
Timo Teras
adcabf3235
parse_config: use getline. BIG speedup with glibc (~40%).
...
function old new delta
config_read 559 604 +45
getline - 23 +23
config_close 29 49 +20
find_pair 169 187 +18
showmode 330 338 +8
hash_find 233 234 +1
builtin_umask 133 132 -1
lzo1x_optimize 1434 1429 -5
test_main 253 247 -6
buffer_fill_and_print 196 179 -17
create_J 1849 1826 -23
config_free_data 37 - -37
------------------------------------------------------------------------------
(add/remove: 3/1 grow/shrink: 5/5 up/down: 138/-89) Total: 26 bytes
Signed-off-by: Timo Teras <timo.teras@iki.fi >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-20 09:49:56 +02:00
Timo Teras
e12e0acb92
modprobe: use hash table. speeds up significantly if modprobe.dep is large
...
function old new delta
helper_get_module 106 157 +51
config_file_action 413 431 +18
modprobe_main 690 706 +16
do_modprobe 580 588 +8
add_probe 81 83 +2
load_modules_dep 192 190 -2
get_or_add_modentry 10 - -10
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 5/1 up/down: 95/-12) Total: 83 bytes
Signed-off-by: Timo Teras <timo.teras@iki.fi >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-20 09:38:13 +02:00
Denys Vlasenko
416e978ce8
diff: disable debug code; remove unsupported --dry-run from help text
...
function old new delta
packed_usage 28623 28602 -21
do_line 121 91 -30
patch_main 2086 1923 -163
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-214) Total: -214 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-19 01:40:31 +02:00
Denys Vlasenko
5331e382f7
libbb/read_cmdline: prepend {comm} if different from argv0. Closes 3835.
...
function old new delta
read_cmdline 114 233 +119
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-18 15:51:16 +02:00
Denys Vlasenko
12ac6287ee
procps: remove PSSCAN_STAT define, users were using it incorrectly
...
Also contains small cleanups ps.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-18 15:49:47 +02:00
Denys Vlasenko
da94760762
fix false positive in parse test
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-18 09:29:21 +02:00
Denys Vlasenko
3a649363aa
parse_config: make test applet easier to enable; fix its code
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-18 09:23:09 +02:00
Denys Vlasenko
a1a448347e
libbb: split bb_get_chunk_from_file and bb_get_chunk_with_continuation
...
This also moves bb_get_chunk_with_continuation into its sole user,
parse_config.c.
This allows to optimize both functions separately,
they need to be optimized for speed.
(this need was highlighted by slow modprobe caused in part by slow
bb_get_chunk_with_continuation in config parser).
function old new delta
bb_get_chunk_from_file 7 130 +123
config_read 457 558 +101
bb_get_chunk_with_continuation 194 - -194
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 2/0 up/down: 224/-194) Total: 30 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-17 03:37:43 +02:00
Bernhard Reutner-Fischer
901a53baec
inetd: check if RPC is available
...
It would be better to have FEATURE_HAVE_RPC be user-selectable and
depend mount.nfs and inetd-rpc on it instead of the current, backward,
way.
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2011-06-15 09:41:00 +02:00
Denys Vlasenko
8ea683d5df
ls: fix comment about -p (it's compatible now)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-13 02:24:18 +02:00
Denys Vlasenko
f194cc1f33
ls: make -v and -X actually work as intended
...
function old new delta
strverscmp - 236 +236
sortcmp 186 254 +68
static.result_type - 60 +60
static.next_state 12 16 +4
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-13 02:13:42 +02:00
Denys Vlasenko
b307eabf4d
iplink: tweak includes to work on android
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-12 17:15:16 +02:00
Wade Berrier
000ae5cefe
pkill/pgrep: support extended regular expressions
...
Done by enabling the REG_EXTENDED and REG_NOSUB regex flags,
which also increases compatibility with the procps versions.
Signed-off-by: Wade Berrier <wade_berrier@appsig.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-10 06:01:30 +02:00
Daniel Fandrich
6295d273ad
Replaced __u32 etc. with standard uint32_t style types
...
Signed-off-by: Daniel Fandrich <dfandrich@intrinsyc.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-10 05:34:05 +02:00
Dan Fandrich
f533ec8767
*: simplify Ethernet header includes
...
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-10 05:17:59 +02:00
Denys Vlasenko
d488f5e8db
build system: delete generated files on "make mrproper"
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-07 10:01:58 +02:00
Denys Vlasenko
972e046070
fbset: apply modelines. Closes 3823
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-06 04:21:39 +02:00
Denys Vlasenko
d7efa06b83
fix breakage caused by 'remove "Options:" string from help texts' commit
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-05 15:07:31 +02:00
Denys Vlasenko
66426760be
*: remove "Options:" string from help texts
...
function old new delta
packed_usage 28706 28623 -83
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-05 03:58:28 +02:00
Maksym Kryzhanovskyy
9f7780250c
iostat: code shrink
...
function old new delta
iostat_main 2048 2400 +352
is_partition 48 - -48
print_stats_dev_struct 350 - -350
Signed-off-by: Maksym Kryzhanovskyy <xmaks@email.cz >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-05 03:37:14 +02:00
Denys Vlasenko
5d3aaceb79
udhcpc: allow -O OPT take numeric params
...
function old new delta
udhcpc_main 2623 2654 +31
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-04 05:07:16 +02:00
Denys Vlasenko
fe86d6b636
appletlib.c: do not use PAGE_SIZE for malloc tweaking
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-03 21:39:42 +02:00
Dan Fandrich
71d7313625
platform.h: support for build under Android
...
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-03 20:51:58 +02:00
Dan Fandrich
2f5769151f
only compile obscure.c when needed
...
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-03 20:28:14 +02:00
Dan Fandrich
f3854f789c
replace nonstandard unsigned typedefs
...
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-03 20:25:17 +02:00
Denys Vlasenko
56a3b82e96
hush: better comment. No code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-01 12:47:07 +02:00
Denys Vlasenko
00ae989ee5
hush: fix a corner case of empty "do \n done" structure
...
The structure is:
while cmd; do
done
bash doesn't accept it at all. We were accepting it but execution
was buggy.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-31 17:35:45 +02:00
Bernhard Reutner-Fischer
14f55538f0
makedevs: fix help-text
...
pull
http://git.buildroot.net/buildroot/commit/?id=99ead3c2ead605d6504b9abad111778dc2a93ae6
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2011-05-30 23:00:47 +02:00
Denys Vlasenko
488dd70869
fix !ENABLE_FEATURE_GETOPT_LONG build. Closes 3775
...
When compiling with !ENABLE_FEATURE_GETOPT_LONG, busybox still tries
to include getopt.h which is not available; for example with uClibc
when !UCLIBC_HAS_GETOPT_LONG. getopt.h is only required
for the _long set of functions.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-29 04:24:52 +02:00
Denys Vlasenko
217a7f4bf9
fuser: fix inverted access() check. Closes 3799.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-29 02:03:38 +02:00
Peter Korsgaard
8dc6195c97
setconsole: open console for writing rather than reading
...
The console passed to TIOCCONS has to be writable, otherwise future
console writes will fail.
This presumably used to work, but in current kernels (see
drivers/tty/tty_io.c:redirected_tty_write) console writes are sent to
vfs_write(device), which checks if the device is writable. A quick look
in the linux git history doesn't show any recent changes to either tty_io
or vfs_write.
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-29 01:51:33 +02:00
Denys Vlasenko
abb0952e63
nmeter: trim help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-26 09:00:23 +02:00
Denys Vlasenko
aeab42e3f4
syslogd,klogd: better help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-25 11:58:56 +02:00
Maksym Kryzhanovskyy
eeed2306fc
fuser: code shrink
...
function old new delta
scan_proc_net_or_maps - 427 +427
scan_recursive - 380 +380
search_dev_inode 74 71 -3
add_pid 39 - -39
scan_link 46 - -46
scan_dir_links 76 - -76
scan_pid_maps 222 - -222
fuser_main 871 297 -574
------------------------------------------------------------------------------
(add/remove: 2/4 grow/shrink: 0/2 up/down: 807/-960) Total: -153 bytes
Signed-off-by: Maksym Kryzhanovskyy <xmaks@email.cz >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-23 03:39:48 +02:00
Denys Vlasenko
e6df7e261e
libbb.h: small reordering
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-23 03:39:08 +02:00
Denys Vlasenko
b24ef035bd
find: cater for libc w/o FNM_CASEFOLD
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-23 00:40:54 +02:00
Bogdan Harjoc
7948ecb505
find: implement -ipath
...
Signed-off-by: Bogdan Harjoc <harjoc@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-22 03:50:21 +02:00
Denys Vlasenko
d616ab6bbb
reformime: do not require \r\n
...
function old new delta
parse 958 1063 +105
packed_usage 28691 28712 +21
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-22 03:46:33 +02:00
Denys Vlasenko
9b90d9b503
adduser: better logic for choosing addgroup -g/--gid
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-21 21:32:40 +02:00
Denys Vlasenko
569e930768
adduser: prefer to call addgroup --gid, not non-std addgroup -g
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-21 19:57:58 +02:00
Denys Vlasenko
b808614785
od: code shrink
...
function old new delta
od_main 2147 2132 -15
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-21 19:15:55 +02:00
Denys Vlasenko
d373355bf8
od: another fix for --strings
...
function old new delta
od_main 2139 2147 +8
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-21 18:47:51 +02:00
Denys Vlasenko
9d96e274ce
od: fix -S NUM to not print chars >0x80
...
function old new delta
write_block 433 431 -2
print_ascii 217 215 -2
check_and_close 104 96 -8
od_main 2164 2139 -25
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-21 18:38:59 +02:00
Denys Vlasenko
3ef344be91
od: code shrink
...
function old new delta
exit_code - 1 +1
open_next_file 73 72 -1
limit_bytes_to_format 1 - -1
ioerror 1 - -1
flag_pseudo_start 1 - -1
flag_dump_strings 1 - -1
od_main 2275 2164 -111
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-21 18:38:40 +02:00
Denys Vlasenko
5c10fa5c24
od: code shrink, fix "od --traditional FILE"
...
function old new delta
parse_old_offset 107 125 +18
packed_usage 28715 28691 -24
od_main 2312 2275 -37
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-21 17:43:06 +02:00
Alexey Fomenko
232ebaa568
lineedit: fix rare SEGV; mark a few FIXMEs
...
Signed-off-by: Alexey Fomenko <ext-alexey.fomenko@nokia.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-20 04:26:29 +02:00
Cristian Ionescu-Idbohrn
ea137aa931
warning removal
...
Signed-off-by: Cristian Ionescu-Idbohrn <cii@axis.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-20 03:52:36 +02:00
Denys Vlasenko
9e933d9bfc
tail: optimize "tail -c HUGENUM REGULAR_FILE". Closes 3763.
...
function old new delta
tail_main 1541 1547 +6
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-20 00:30:04 +02:00
Denys Vlasenko
24b71fd894
top: display sort indicator in memory display
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-18 12:11:19 +02:00
Denys Vlasenko
351fec332a
busybox.conf: code shrink
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-16 14:30:26 +02:00
Denys Vlasenko
d83aff1aed
busybox.conf: USER.GROUP is _optional_
...
function old new delta
main 785 809 +24
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-16 13:53:19 +02:00
Denys Vlasenko
3770b6b061
main: make busybox.conf mode handling less obscure
...
function old new delta
static.mode_mask - 20 +20
main 782 785 +3
static.mode_chars 15 13 -2
run_applet_no_and_exit 450 441 -9
mode_mask 24 - -24
------------------------------------------------------------------------------
(add/remove: 2/2 grow/shrink: 1/2 up/down: 41/-53) Total: -12 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-16 13:19:25 +02:00
Denys Vlasenko
9be4702a30
main: free suid_config list after use
...
function old new delta
run_applet_no_and_exit 438 450 +12
ifupdown_main 2147 2149 +2
writeFileToTarball 1325 1326 +1
pidof_main 244 245 +1
last_main 896 897 +1
grep_main 779 780 +1
find_list_entry2 121 122 +1
tar_main 835 833 -2
llist_unlink 28 26 -2
llist_rev 23 21 -2
main 791 782 -9
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 7/4 up/down: 19/-15) Total: 4 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-16 12:21:31 +02:00
Cristian Ionescu-Idbohrn
9a296fbeab
vi.c: remove warning: variable 'sp' set but not used
...
Signed-off-by: Cristian Ionescu-Idbohrn <cii@axis.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-16 03:53:43 +02:00
Cristian Ionescu-Idbohrn
662972a77a
The [-Wunused-but-set-variable] warnings
...
networking/ntpd.c:1748:19: warning: variable 'version' set but not used
Signed-off-by: Cristian Ionescu-Idbohrn <cii@axis.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-16 03:53:00 +02:00
Denys Vlasenko
6afc6775e8
dc: do not advertise ops disabled in .config
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-16 00:13:18 +02:00
Denys Vlasenko
4566e172eb
simplify parsing of /etc/busybox.conf
...
function old new delta
parse_config_file 799 667 -132
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-16 00:01:08 +02:00
Denys Vlasenko
e0238f852b
tweak config help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-14 15:23:55 +02:00
Denys Vlasenko
29f9b7268a
hush: fix misparsing of "... do eval a= ...". Closes 3721
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-14 11:27:36 +02:00
Denys Vlasenko
eafc558f94
top: better indicator of selected field in mem view
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-14 01:32:09 +02:00
Denys Vlasenko
60a9414cad
fix "variable 'foo' set but not used" warnings
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-13 20:57:01 +02:00
Denys Vlasenko
8dd29da2c6
ls: code shrink
...
function old new delta
sort_and_display_files - 427 +427
scan_and_display_dirs_recur 497 488 -9
ls_main 765 735 -30
display_files 422 - -422
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 0/2 up/down: 427/-461) Total: -34 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-13 17:55:08 +02:00
Denys Vlasenko
4029e21b37
ls: reorder and rename functions. No code changes
...
function old new delta
display_single - 931 +931
scan_and_display_dirs_recur - 497 +497
display_files - 422 +422
showfiles 422 - -422
showdirs 497 - -497
list_single 931 - -931
------------------------------------------------------------------------------
(add/remove: 3/3 grow/shrink: 0/0 up/down: 1850/-1850) Total: 0 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-13 17:28:46 +02:00
Denys Vlasenko
2a81639534
ls: reduce memory consumption and speed up (don't do redundant [l]stat)
...
function old new delta
my_stat 110 278 +168
splitdnarray 120 118 -2
ls_main 769 765 -4
list_single 961 931 -30
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/3 up/down: 168/-36) Total: 132 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-13 17:28:09 +02:00
Denys Vlasenko
66ca241dca
ls: avoid forward declaration. No code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-13 17:27:36 +02:00
Denys Vlasenko
d27ac299eb
ls: code shrink
...
function old new delta
list_single 990 961 -29
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-13 17:27:15 +02:00
Denys Vlasenko
3a240212d9
passwd: shorter help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-13 03:31:45 +02:00
Denys Vlasenko
12a432715f
adduser: safe username passing to passwd/addgroup
...
passwd: support creating SHA passwords
random code shrink
function old new delta
crypt_make_pw_salt - 87 +87
adduser_main 883 904 +21
...
crypt_make_salt 99 89 -10
chpasswd_main 329 312 -17
packed_usage 28731 28691 -40
passwd_main 1070 1000 -70
cryptpw_main 310 224 -86
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 4/12 up/down: 154/-288) Total: -134 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-13 03:19:01 +02:00
Denys Vlasenko
0806e401d6
hush: install signal handlers with filled sigmask
...
function old new delta
install_sighandler - 39 +39
hush_main 1001 1031 +30
builtin_trap 386 392 +6
install_sighandlers 121 123 +2
switch_off_special_sigs 87 86 -1
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 3/1 up/down: 77/-1) Total: 76 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-12 23:06:20 +02:00
Denys Vlasenko
b1ab283f0b
inetd: add FIXMEs
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-12 23:05:27 +02:00
Denys Vlasenko
89f5bfd6c3
libbb.h: use inlined sigfillset, sigemptyset, sigisemptyset on uclibc
...
text data bss dec hex filename
875879 493 7584 883956 d7cf4 busybox_old
875879 493 7584 883956 d7cf4 busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-12 23:03:18 +02:00
Denys Vlasenko
279a7ac04e
ls: fix help text: -w N is optional
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-12 18:44:51 +02:00
Denys Vlasenko
4ad95e6b0e
ls: fix -p help text, improve comments and define names
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-12 18:40:59 +02:00
Denys Vlasenko
75e77deab1
hush: fixes and small shrink for HUSH_JOB!=y
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-12 13:12:47 +02:00
Denys Vlasenko
ebc1ee2e2a
hush: remove one sigprocmask from exit path
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-12 10:59:18 +02:00
Denys Vlasenko
0c40a731e3
hush: add forgotten {} in multi-statement if.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-12 09:50:12 +02:00
Denys Vlasenko
0a8971d112
trim help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-12 03:14:12 +02:00
Denys Vlasenko
f58f705c58
hush: fix login shell's signal handling; add -l option so that it's easier to test
...
function old new delta
hush_main 958 1001 +43
install_special_sighandlers 47 52 +5
packed_usage 28752 28741 -11
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 48/-11) Total: 37 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-12 02:10:33 +02:00
Denys Vlasenko
9d6cbafe72
hush: replace signal handling machinery
...
With new version of signal handling, read builtin should be less buggy
wrt signals.
function old new delta
install_sighandlers - 121 +121
switch_off_special_sigs - 84 +84
pick_sighandler - 58 +58
install_special_sighandlers - 47 +47
builtin_wait 284 319 +35
record_pending_signo - 21 +21
execvp_or_die 43 48 +5
file_get 290 288 -2
run_list 1004 998 -6
static.zero_timespec 8 - -8
sigprocmask_set 14 - -14
sigwaitinfo 23 - -23
record_signal 23 - -23
__GI_sigwaitinfo 23 - -23
sigtimedwait 25 - -25
builtin_trap 417 392 -25
__GI_sigtimedwait 25 - -25
hush_main 1003 965 -38
check_and_run_traps 263 217 -46
__rt_sigtimedwait 52 - -52
reset_traps_to_defaults 213 126 -87
init_sigmasks 198 - -198
builtin_read 536 197 -339
------------------------------------------------------------------------------
(add/remove: 5/10 grow/shrink: 2/7 up/down: 371/-934) Total: -563 bytes
text data bss dec hex filename
903075 936 17736 921747 e1093 busybox_old
902547 936 17736 921219 e0e83 busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-11 23:56:11 +02:00
Denys Vlasenko
10c0131a8a
hush: use SA_RESTARTed signal handlers across read.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-11 11:49:21 +02:00
Denys Vlasenko
12bc152b31
fbset: abort on unknown options. closes 3121
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-09 03:57:27 +02:00
Steve Iribarne
ed607a87e0
pam link error with SHARED_BUSYBOX and LIBBUSYBOX enabled
...
Signed-off-by: Steve Iribarne <siribarne@grid-net.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-09 01:42:12 +02:00
Denys Vlasenko
bcf1fa80f3
hush: add tests for interrupting read
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-09 01:05:33 +02:00
Denys Vlasenko
54e9e1217c
hush: code shrink
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-09 00:52:15 +02:00
Denys Vlasenko
80542bad2f
hush: make read builtin interruptible.
...
function old new delta
builtin_read 185 471 +286
check_and_run_traps 200 262 +62
nonblock_immune_read 73 119 +46
sigismember - 44 +44
record_signal - 21 +21
sigisemptyset - 16 +16
...
------------------------------------------------------------------------------
(add/remove: 5/0 grow/shrink: 7/5 up/down: 483/-46) Total: 437 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-08 21:23:43 +02:00
Denys Vlasenko
80c5b6893d
libbb: nonblock_safe_read->nonblock_immune_read, remove unused param of xmalloc_reads
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-08 21:21:10 +02:00
Denys Vlasenko
b8709032a3
hush: fix incorrect PS2 dispaly and trap handling while reading command
...
The fix affects only !ENABLE_FEATURE_EDITING configuration
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-08 21:20:01 +02:00
Maksym Kryzhanovskyy
29c54aa9f9
iostat: code shrink ~0.5k
...
Signed-off-by: Maksym Kryzhanovskyy <xmaks@email.cz >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-07 04:37:22 +02:00
Denys Vlasenko
c3f8db99bf
preparatory patch
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-07 04:36:46 +02:00
Denys Vlasenko
4d6059eedc
top: another scripting improvement
...
function old new delta
handle_input 492 493 +1
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-06 20:47:54 +02:00
Denys Vlasenko
7d9a1d25e5
top: make it possible to feed commands via pipe
...
function old new delta
handle_input - 492 +492
mult_lvl_cmp 38 49 +11
packed_usage 28247 28257 +10
top_main 1345 928 -417
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 2/1 up/down: 513/-417) Total: 96 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-06 20:34:04 +02:00
Denys Vlasenko
a348b4557d
traceroute: properly reduce poll timeout
...
This removes the problem where during the time we wait to declare
a target as unresponsive we receive an unrelated ICMP packet.
If there is enough traffic, this can make traceroute hang as
it never declares the target as unresponsive.
function old new delta
common_traceroute_main 4196 4261 +65
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-05 02:31:30 +02:00
Pascal Bellard
d3e4be3ccb
sed: shrink by 17 bytes
...
Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-05 00:26:37 +02:00
Denys Vlasenko
14b162f9ab
tweak examples/udhcp/udhcpd.conf
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-04 21:17:23 +02:00
Denys Vlasenko
9180c6045e
tar: store negative mtime as 0; pack very large files using base-256 encoding
...
function old new delta
writeTarHeader 841 979 +138
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-04 21:14:12 +02:00
Bernhard Reutner-Fischer
882062915d
mount: for NFS use tcp per default rather than udp
...
nfs-utils's mount.nfs uses TCP per default unless explicitly asked for
otherwise. This is also the expected behaviour for NFSv4, so ok there,
too.
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2011-05-04 19:03:30 +02:00
Denys Vlasenko
7945808c87
udhcp: fix some default values from "" to NULL
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-03 16:46:47 +02:00
Denys Vlasenko
6a0abcc02f
sed: support \r in s command
...
function old new delta
copy_parsing_escapes 65 91 +26
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-03 00:52:22 +02:00
Denys Vlasenko
52d8370836
sed: code shrink
...
text data bss dec hex filename
876354 493 7584 884431 d7ecf busybox_old
876323 493 7584 884400 d7eb0 busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-03 00:51:43 +02:00
Wolfgang Denk
91b77c3953
Compile options: default to -O2 when -Os is not available
...
Recent versions of GCC for PowerPC systems suffer from some compiler
bugs which prevent the use of "--enable-target-optspace" in their
configuration, which makes the compiler option "-Os" unavailable;
for reference see
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43810
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48278
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45053
In the result, BusyBox will be compiled without any optimization
options, which causes a huge binary (1.8 MiB for default configuration
on PPC, built with gcc 54.51 from the Yocto / Poky / OpenEmbedded tool
chains). This commit changes behaviour so "-O2" gets used as fallback
when "-Os" is not available. This reduces the image size in above
test to 1.3 MiB. This is still 10...15% more then what we get with
"-Os", but much better than using no optimization at all.
Signed-off-by: Wolfgang Denk <wd@denx.de >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-02 02:50:46 +02:00
Denys Vlasenko
90ea1e3454
setserial: small fix
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-02 02:47:25 +02:00
Cristian Ionescu-Idbohrn
fcbc641fe3
get rid of several "variable 'x' set but not used" warnings
...
Signed-off-by: Cristian Ionescu-Idbohrn <cii@axis.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-01 14:43:53 +02:00
Marek Bečka
2cfb57647b
setserial: new applet
...
text data bss dec hex filename
873605 493 7584 881682 d7412 busybox_old
876354 493 7584 884431 d7ecf busybox_unstripped
Signed-off-by: Marek Bečka <yuen@klacno.sk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-01 14:38:31 +02:00
Marek Polacek
2a6d5988b4
mpstat.c: remove unused line
...
Signed-off-by: Marek Polacek <mpolacek@redhat.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-30 22:09:01 +02:00
Lauri Kasanen
9cfcc4d7a2
fdisk: backport disk check from util-linux
...
With the digit check devices like mmcblk0 were skipped,
but now with 0 allowed we're seeing a ton of loop devices listed
(loop0, loop10, loop20...) as well as ramzswap0,
all which should not be shown in fdisk -l.
function old new delta
list_devs_in_proc_partititons 157 238 +81
Signed-off-by: Lauri Kasanen <curaga@operamail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-30 21:31:05 +02:00
Denys Vlasenko
d1993f180c
rename miscutils/ubi_attach_detach.c -> miscutils/ubi_tools.c
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-26 04:32:05 +02:00
Denys Vlasenko
0bfb9c2cf0
add help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-26 04:31:03 +02:00
Reuben Dowle
a610842322
ubiupdatevol: new applet
...
ubi_tools_main 658 1046 +388
packed_usage 28274 28304 +30
applet_names 2396 2409 +13
applet_main 1396 1400 +4
applet_nameofs 698 700 +2
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 5/0 up/down: 437/0) Total: 437 bytes
Signed-off-by: Reuben Dowle <Reuben.Dowle@navico.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-26 04:27:48 +02:00
Reuben Dowle
ab940af5c0
Fix ubirsvol usage information
...
The usage information for the ubirsvol applet is incorrect. This fixes the mistake.
Signed-off-by: Reuben Dowle <Reuben.Dowle@navico.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-26 03:43:25 +02:00
Nigel Hathaway
fb6b173ff7
udhcp: add FEATURE_UDHCP_8021Q option
...
function old new delta
dhcp_option_strings 217 237 +20
dhcp_optflags 64 68 +4
Signed-off-by: Nigel Hathaway <Nigel.Hathaway@ubiquisys.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-26 02:50:00 +02:00
Nigel Hathaway
c37d4c67e8
dhcpc: export unrecognized options in "optNN=XXXXXXXXX" form
...
function old new delta
udhcp_run_script 609 818 +209
Signed-off-by: Nigel Hathaway <Nigel.Hathaway@ubiquisys.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-26 02:38:29 +02:00
Denys Vlasenko
b83c970412
build fixes for scripts/kconfig
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-18 01:19:59 +02:00
Denys Vlasenko
cfbd31a7fb
add include <sys/socket.h>
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-17 23:18:15 +02:00
Denys Vlasenko
47061b4e9b
straighten out dprintf/fdprintf mess; remove old "define lchown chown"
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-17 23:14:19 +02:00
Denys Vlasenko
0288b27ad8
small fixes atop syslog config patch
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-16 20:15:14 +02:00
Ian Wienand
89b3cbaa97
ash: clear sa_flags always
...
Signed-off-by: Ian Wienand <ianw@vmware.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-16 20:05:14 +02:00
Denys Vlasenko
08caf0900d
fix another nonportable grep usage in scripts
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-16 19:45:33 +02:00
Sergey Naumov
e9c8bed4d3
syslogd: small fix to config patch
...
Signed-off-by: Sergey Naumov <sknaumov@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-16 19:36:15 +02:00
Denys Vlasenko
d506897b4e
wget: add a note about bug 3625
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-16 19:31:08 +02:00
Denys Vlasenko
43a3d50e14
md5/sha1sum: better fix for small resource leak
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-16 18:56:36 +02:00
Alexey Fomenko
88a8384388
md5/sha1sum: fix small resource leak
...
Signed-off-by: Alexey Fomenko <ext-alexey.fomenko@nokia.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-16 18:49:39 +02:00
Denys Vlasenko
2514302658
Use net/ethernet.h instead of linux/if_ether.h in more cases. Closes 3619
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-16 18:31:53 +02:00
Denys Vlasenko
8c498b6c6e
make FDISK_SUPPORT_LARGE_DISKS redundant when LFS=y
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-16 18:07:35 +02:00
Denys Vlasenko
c3dadba699
gen_build_files.sh: do not use "sed --" for now
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-16 17:59:34 +02:00
Marek Polacek
b0b8884009
Fix double words in comments. No code changes
...
Signed-off-by: Marek Polacek <mpolacek@redhat.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-16 17:33:43 +02:00
Denys Vlasenko
88d3cfdb75
add forgotten #include
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-11 05:24:58 +02:00
Denys Vlasenko
532e961f7e
tftpd: add -l "log to syslog" option. Needed for inetd mode
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-11 05:12:53 +02:00
Denys Vlasenko
24ec952f14
tftp: fix progress bar for large (>32M) files. Closes 3499
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-11 04:29:39 +02:00
Denys Vlasenko
c13ee8c0f3
basename,dirname,freeramdisk,rx,raidautorun,runsv,chvt: skip "--" argument
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-11 03:58:30 +02:00
Pascal Bellard
6161cdbb83
conspy: fix ESC key lost
...
Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-11 03:52:53 +02:00
Pere Orga
5bc8c005a8
move remaining help text from include/usage.src.h
...
Signed-off-by: Pere Orga <gotrunks@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-11 03:29:49 +02:00
Sergey Naumov
73ef15cf38
syslogd: optional support for /etc/syslog.conf
...
function old new delta
syslogd_main 1241 1870 +629
timestamp_and_log 301 540 +239
find_by_name - 37 +37
find_by_val - 22 +22
init_data 64 68 +4
log_locally 603 413 -190
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 3/1 up/down: 931/-190) Total: 741 bytes
Signed-off-by: Sergey Naumov <sknaumov@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-10 07:34:27 +02:00
Denys Vlasenko
d277f55ebd
http: document index.cgi usage. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-10 03:08:22 +02:00
Denys Vlasenko
ca18311d0a
libbb: make set_nport accept pointer to sockaddr, not to len_and_sockaddr.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-07 17:52:20 +02:00
Denys Vlasenko
8e23fafade
ntpd: decrease ntpd -q "no response" timeout to 10 sec
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-07 01:45:20 +02:00
Denys Vlasenko
c0644cac0d
applets/install.sh: afer quoting of variables
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-05 02:37:15 +02:00
Tito Ragusa
9eb7bfd4d4
passwd,chpasswd: reset password in /etc/passwd to "x" if /etc/shadow was updated
...
Signed-off-by: Tito Ragusa <farmatito@tiscali.it >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-05 00:18:33 +02:00
Denys Vlasenko
12140e607c
fix install.sh
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-04 03:53:23 +02:00
Denys Vlasenko
e32d05b708
ash,hush: add ulimit -e -r (RLIMIT_NICE, RLIMIT_RTPRIO)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-04 02:12:14 +02:00
Denys Vlasenko
929f63e57c
start-stop-daemon: fix "-K --test --pidfile PIDFILE" exitcode
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-04 02:03:35 +02:00
Pere Orga
6a3e01d5a9
move help text from include/usage.src.h to debianutils/*.c e2fsprogs/*.c editors/*.c loginutils/*.c mailutils/*.c
...
Signed-off-by: Pere Orga <gotrunks@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-03 01:33:55 +02:00
Denys Vlasenko
fa9126e689
ls: better help text for -a and -A
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-04-03 01:27:49 +02:00
Pere Orga
34425389e0
move help text from include/usage.src.h to coreutils/*.c
...
Signed-off-by: Pere Orga <gotrunks@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-31 14:43:25 +02:00
Denys Vlasenko
e3d8d077b7
small fix for HISTFILESIZE
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-31 14:39:38 +02:00
Denys Vlasenko
2c4de5b045
ash,hush: optional support for $HISTFILESIZE.
...
Based on patch from Alexey Fomenko (ext-alexey.fomenko AT nokia.com)
function old new delta
size_from_HISTFILESIZE - 44 +44
hush_main 998 1025 +27
ash_main 1348 1374 +26
read_line_input 3361 3372 +11
new_line_input_t 17 24 +7
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-31 13:16:52 +02:00
Denys Vlasenko
a439fa93f6
hush: remove outdated comments
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-30 19:11:46 +02:00
Denys Vlasenko
cecbc98611
hush: fix source1.tests
...
function old new delta
parse_and_run_stream 95 139 +44
static_get 22 25 +3
file_get 260 263 +3
builtin_umask 133 132 -1
parse_stream 2442 2425 -17
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/2 up/down: 50/-18) Total: 32 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-30 18:54:52 +02:00
Nuno Lucas
0e89fd9c39
fbsplash: Add support for 24 and 32 bit color depth
...
function old new delta
fb_drawprogressbar 372 447 +75
fb_pixel_value - 50 +50
fb_write_pixel - 47 +47
fbsplash_main 889 920 +31
fb_drawfullrectangle 101 131 +30
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 3/0 up/down: 233/0) Total: 233 bytes
Signed-off-by: Nuno Lucas <ntlucas@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-28 15:30:59 +02:00
Pere Orga
55068c478e
move help text from include/usage.src.h to console-tools/*.c
...
Signed-off-by: Pere Orga <gotrunks@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-28 02:51:01 +02:00
Denys Vlasenko
6ec1510f71
applet_tables: do not include libbb.h, that header ir for target builds
...
...and applets/applet_tables.c is built on *host*.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-28 01:23:38 +02:00
Denys Vlasenko
4a2aecb53a
mesg: operate on stdin, not on stderr (compat)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-28 00:59:16 +02:00
Peter Korsgaard
95755181b8
httpd: don't send error messages with gzip encoding
...
If CONFIG_FEATURE_HTTPD_GZIP is enabled and request contained
'Accept-Encoding: gzip', then errors were sent with 'Content-Encoding: gzip'
even though they aren't.
Fix it by clearing content_gzip before sending the headers.
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-27 23:26:33 +02:00
Roman Borisov
95f5c52e6f
diff: optimize diffing of files with the same metadata
...
Signed-off-by: Roman Borisov <ext-roman.borisov@nokia.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-27 23:24:09 +02:00
Pere Orga
1f4447b2d4
move help text from include/usage.src.h to archival/*.c
...
Signed-off-by: Pere Orga <gotrunks@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-27 22:40:30 +02:00
Vitaly Magerya
700fbc308d
wget: --post-data=STR should not encode STR, should send it verbatim
...
This matches GNU Wget 1.12 behavior.
Signed-off-by: Vitaly Magerya <vmagerya@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-27 22:33:13 +02:00
Denys Vlasenko
a9e5c43b8b
pstree: fix "warning: 'handle_thread' defined but not used"
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-27 16:15:02 +02:00
Denys Vlasenko
353680aa46
lineedit: fixes for CONFIG_UNICODE_USING_LOCALE=y
...
function old new delta
load_string 45 91 +46
save_string 40 82 +42
reinit_unicode 34 61 +27
BB_PUTCHAR 97 120 +23
init_unicode 17 37 +20
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 5/0 up/down: 158/0) Total: 158 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-27 01:18:07 +01:00
Roman Borisov
19311bfa7b
mount: add --rbind option support
...
Signed-off-by: Roman Borisov <ext-roman.borisov@nokia.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-26 23:12:12 +01:00
Roman Borisov
d3679d2491
mount: rprivate option fix
...
fixed the mistake in writing for -make-rprivate option
Signed-off-by: Roman Borisov <ext-roman.borisov@nokia.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-26 23:02:05 +01:00
Denys Vlasenko
c162bcdcd1
hush: document a bug about aborting on sourced file error when non-interactive
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-24 05:38:51 +01:00
Denys Vlasenko
3eab24e64a
hush: make parse errors in sourced file non-fatal in interactive script
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-24 05:25:59 +01:00
Denys Vlasenko
68d5cb5dac
hush: fix a case where return in sourced file has no effect
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-24 02:50:03 +01:00
Denys Vlasenko
20704f0662
ash,hush: recheck LANG before every line input
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-23 17:59:27 +01:00
Vitaly Magerya
7f4b769c42
don't call freeaddinfo(NULL)
...
Signed-off-by: Vitaly Magerya <vmagerya@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-22 20:14:26 +01:00
Ryan Phillips
cf9074b54b
login: set PAM RHOST
...
Signed-off-by: Ryan Phillips <ryan@trolocsis.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-22 18:27:21 +01:00
Alexey Soloviev
f922154f65
dd: free allocated memory if CLEANUP enabled
...
Signed-off-by: Alexey Soloviev <EXT-Alexey.Soloviev@nokia.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-22 17:42:29 +01:00
Denys Vlasenko
beea5a70c3
mesg: make group/all writability configurable
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-22 06:54:36 +01:00
Denys Vlasenko
b0e8ced358
ln: explain why we use xstrdup
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-21 12:36:35 +01:00
Denys Vlasenko
32176ccec4
init: fix a case where execv's 1st arg was wrong
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-21 05:07:43 +01:00
Denys Vlasenko
e2e55b0eb5
wget: move help text to .c file
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-21 00:37:05 +01:00
Denys Vlasenko
625f218d43
wget: fix fname_out usage wrt redirects
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-21 00:29:37 +01:00
Denys Vlasenko
c2fda8642d
mount: add a test for bind+rshared
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-14 06:28:28 +01:00
Pere Orga
cf8b55c40b
pwdx: new applet
...
function old new delta
pwdx_main - 197 +197
packed_usage 28237 28261 +24
applet_names 2391 2396 +5
applet_main 1392 1396 +4
applet_nameofs 696 698 +2
applet_install_loc 174 175 +1
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 5/0 up/down: 233/0) Total: 233 bytes
Signed-off-by: Pere Orga <gotrunks@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-12 18:13:15 +01:00
Denys Vlasenko
5c942713b7
busybox: fail if --install is not given an absolute path
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-12 06:08:28 +01:00
Denys Vlasenko
9ac5596a51
udhcpc: emit "correct" secs field
...
In theory, sending secs set to constant zero should be ok too.
But some bleeping servers can actually be configured to answer ONLY
if secs is bigger than a preset value (!!)
http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man8/bootpd.8.html
grep for "reply_threshold_seconds"
function old new delta
udhcpc_main 2573 2623 +50
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-12 05:37:54 +01:00
Denys Vlasenko
ea684c6aaf
ls: fix handling of symlinks by option -1
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-12 03:12:36 +01:00
Denys Vlasenko
8345b2bd5e
libbb: make warning go away
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-12 02:19:50 +01:00
Pascal Bellard
48b6f59e19
chsum: fix
...
Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-11 23:40:27 +01:00
Denys Vlasenko
7d4e7a27af
s/FAIL_DELAY/LOGIN_FAIL_DELAY/
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-08 21:07:05 +01:00
Denys Vlasenko
f8416dc6f6
forgot to add libbb/get_shell_name.c
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-08 21:02:42 +01:00
Denys Vlasenko
681efe20d3
use user's shell instead of hardwired "/bin/sh" (android needs this)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-08 21:00:36 +01:00
Denys Vlasenko
86cf0364bd
printenv: fix environ == NULL segfault
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-08 12:44:02 +01:00
Denys Vlasenko
6b6af53426
ash/hush: shrink help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-08 10:24:17 +01:00
Denys Vlasenko
115c35d68e
ftpd: better usage text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-08 03:01:10 +01:00
Pere Orga
9283d7c5c2
kill: fix infinite loop when passed PIDs are not valid numbers
...
Signed-off-by: Pere Orga <gotrunks@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-07 17:00:25 +01:00
Denys Vlasenko
976ec23da5
remove stray empty line
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-07 13:12:01 +01:00
Denys Vlasenko
b0b834342f
ash/hush: provide help text
...
$ ./busybox ash --help
BusyBox v1.19.0.git (2011-03-07 11:25:29 CET) multi-call binary.
Usage: ash [-/+OPTCHARS] [-/+o OPTNAME]... [-c 'SCRIPT' [ARG0 [ARGS]] / SCRIPT_FILE [ARGS]]
Unix shell interpreter
$ ./busybox hush --help
BusyBox v1.19.0.git (2011-03-07 11:25:29 CET) multi-call binary.
Usage: hush [-nx] [-c 'SCRIPT' [ARG0 [ARGS]] / SCRIPT_FILE [ARGS]]
Unix shell interpreter
function old new delta
packed_usage 28163 28212 +49
setcmd 85 78 -7
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 49/-7) Total: 42 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-07 12:34:59 +01:00
Denys Vlasenko
aefe1c260e
ash: fix execution of shell scripts without shebang
...
We were assuming #!/bin/sh, whereas we had to simply re-enter ash.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-07 12:02:40 +01:00
Denys Vlasenko
8b6b472f4e
klogd: fix the problem of delayed handling of ^C and SIGTERM
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-07 10:57:26 +01:00
Keith Young
e6bb8d339f
udhcpc: add -B option
...
function old new delta
udhcpc_longopts - 262 +262
add_client_options 218 239 +21
packed_usage 28149 28163 +14
static.udhcpc_longopts 250 - -250
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 2/0 up/down: 297/-250) Total: 47 bytes
Signed-off-by: Keith Young <stripydog7@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-07 03:19:42 +01:00
Denys Vlasenko
82e785cf8c
more: fix tabs handling
...
function old new delta
more_main 837 829 -8
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-07 02:01:52 +01:00
Denys Vlasenko
bff5f3f2b4
fix bit rot in scripts/Makefile.IMA #2
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-06 23:48:24 +01:00
Denys Vlasenko
726ebbaa9f
fix bit rot in scripts/Makefile.IMA
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-06 23:09:42 +01:00
Bjørn Forsman
102b8bde3b
.gitignore: add missing ignores
...
Ignore output files created by "make defconfig; make".
Signed-off-by: Bjørn Forsman <bjorn.forsman@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-06 19:54:15 +01:00
Phil Sutter
293a8f250d
nameif: add matching by phy_address=NUM; extend help text
...
function old new delta
nameif_main 618 686 +68
packed_usage 28095 28149 +54
prepend_new_eth_table 295 338 +43
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 165/0) Total: 165 bytes
Signed-off-by: Phil Sutter <phil.sutter@viprinet.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-06 19:42:51 +01:00
Phil Sutter
2adc0e6d8b
nameif: fix parsing of /proc/net/dev; small code shrink
...
function old new delta
nameif_main 628 618 -10
Signed-off-by: Phil Sutter <phil.sutter@viprinet.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-06 19:15:30 +01:00
Denys Vlasenko
bd74e3d8be
libbb/login/su: do not sanitize shell name twice
...
function old new delta
setup_environment 191 205 +14
login_main 1002 987 -15
su_main 474 458 -16
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/2 up/down: 14/-31) Total: -17 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-06 18:49:40 +01:00
Alexey Soloviev
41478ade4f
tr: free allocated memory in tr if CLEANUP enabled
...
Signed-off-by: Alexey Soloviev <EXT-Alexey.Soloviev@nokia.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-06 18:21:07 +01:00
Denys Vlasenko
4a2a86d5e7
improve --install operation in chroot jails
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-06 06:02:31 +01:00
Denys Vlasenko
7cfe6ea99e
xargs: support --no-run-if-empty (synonym to -r)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-03 09:51:57 +01:00
Alexey Fomenko
1df0af7670
don't leak malloced variables in the loop; remove double alloc
...
Signed-off-by: Alexey Fomenko <ext-alexey.fomenko@nokia.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-02 04:13:21 +01:00
Denys Vlasenko
940c7206c2
convert "do {...} while (1);" -> "while (1) {...}"
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-02 04:07:14 +01:00
Alexey Fomenko
708dd4c986
add missing fclose's
...
Signed-off-by: Alexey Fomenko <ext-alexey.fomenko@nokia.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-02 04:01:24 +01:00
Denys Vlasenko
b80acf58f1
tar: skip leading / and handle names like abc/..////def -> def (not ///def)
...
function old new delta
strip_unsafe_prefix - 105 +105
writeFileToTarball 557 520 -37
get_header_tar 1545 1462 -83
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-02 01:21:02 +01:00
Alexey Fomenko
ea6116ee59
libbb: remove dead code in getopt32. -7 bytes
...
Signed-off-by: Alexey Fomenko <ext-alexey.fomenko@nokia.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-01 19:25:49 +01:00
Denys Vlasenko
5e29e26388
tar: on extract, everything up to and including last ".." is stripped
...
function old new delta
get_header_tar 1493 1545 +52
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-01 17:21:07 +01:00
Denys Vlasenko
7d65abea09
libbb: make user/group name cache strings longer (~27 chars)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-01 16:27:13 +01:00
Denys Vlasenko
3b28dae17d
ls: widen -s (1k blocks) column from 4 to 6
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-01 05:37:41 +01:00
Denys Vlasenko
26d11b8133
ls: -g implies -l
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-28 12:38:08 +01:00
Denys Vlasenko
9f368e38fb
ls: fix bits for -T, -w and --color; make -n imply -l; fix comments
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-28 12:16:10 +01:00
Denys Vlasenko
c6450c974f
mount: strip multiple trailing slashes, not just one
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-28 11:09:49 +01:00
Roman Borisov
c8dc01dc80
mount: update /etc/mtab properly on mount --move
...
Signed-off-by: Roman Borisov <ext-roman.borisov@nokia.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-28 05:06:01 +01:00
Pere Orga
251962f207
whois: new applet
...
function old new delta
whois_main - 118 +118
pipe_out - 80 +80
packed_usage 28084 28095 +11
applet_names 2385 2391 +6
applet_main 1388 1392 +4
applet_nameofs 694 696 +2
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 4/0 up/down: 221/0) Total: 221 bytes
Signed-off-by: Pere Orga <gotrunks@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-27 23:38:52 +01:00
Harald Becker
9beb68e3e2
showkey: make showkey -a work on any stdin
...
function old new delta
showkey_main 496 513 +17
Signed-off-by: Harald Becker <ralda@gmx.de >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-27 07:16:44 +01:00
Denys Vlasenko
cd387f2554
ls: fix one-bit-off which caused -H to behave as -h
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-27 04:10:00 +01:00
Denys Vlasenko
143c5baf6c
adduser: use better argv passing to addgroup
...
function old new delta
adduser_main 855 882 +27
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-27 04:03:27 +01:00
Denys Vlasenko
e3b1a1fd28
Replace "depends on PLATFORM_LINUX" with "select PLATFORM_LINUX"
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-26 22:24:08 +01:00
Stefan Seyfried
da4441c44f
fix libiproute compile with kernel headers < 2.6.17
...
Signed-off-by: Stefan Seyfried <seife+dev@b1-systems.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-26 20:11:47 +01:00
Peter Korsgaard
301fe50ca2
mount: ignore unknown mount options when remounting NFS mounts
...
Don't fail on unknown nfs mount options. The kernel automatically
adds a few mount options that we don't currently handle, like:
sec=null|sys|krb5..
mountaddr=<ip>
mountproto=tcp|udp
local_lock=none|all|flock|posix
Which causes a simple mount -o remount,rw <mountpoint> to fail.
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-26 19:02:36 +01:00
Roman Borisov
945fd173e9
mount: fix wrong long option namess
...
Fixed the --make-shared, --make-rshared, ... etc. (--make-*) options
in the mount command. Now parse_mount_options() may reasonably process such
options.
Fixed: http://lists.busybox.net/pipermail/busybox/2011-January/074511.html
Signed-off-by: Roman Borisov <ext-roman.borisov@nokia.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-26 18:50:55 +01:00
Denys Vlasenko
3bb235c3b5
iproute: fix parsing and matching of of "short" IP addrs like 10/8
...
function old new delta
print_route 1613 1813 +200
get_addr_1 209 258 +49
get_prefix 393 356 -37
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 249/-37) Total: 212 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-23 01:20:44 +01:00
Denys Vlasenko
bac0a25f72
slightly better wording in comments
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-21 03:47:50 +01:00
Denys Vlasenko
b12553faa8
ash: fix ash-signals/signal8 testcase failure
...
function old new delta
killcmd 109 224 +115
kill_main 882 910 +28
changepath 194 195 +1
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 144/0) Total: 144 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-21 03:22:20 +01:00
Bernd Jendrissek
55988aed47
fix "make install"
...
Signed-off-by: Bernd Jendrissek <bernd.jendrissek@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-20 05:50:04 +01:00
Dan Fandrich
f303bdd918
blockdev: add --getsz to replace --getsize
...
function old new delta
blockdev_main 255 273 +18
bdcommands 160 176 +16
packed_usage 28142 28107 -35
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 34/-35) Total: -1 bytes
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-20 04:15:43 +01:00
Pere Orga
5369563bf9
wget: reduce bloat
...
Signed-off-by: Pere Orga <gotrunks@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-19 23:56:39 +01:00
Vladislav Grishenko
5827167338
udhcpd: optional IP selection based on MAC hash
...
function old new delta
find_free_or_expired_nip 153 225 +72
Signed-off-by: Vladislav Grishenko <themiron@mail.ru >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-16 13:31:30 +01:00
Denys Vlasenko
4fdb67cc65
echo: fix SEGV when run with no args
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-15 18:35:54 +01:00
Denys Vlasenko
28556b95fe
wget: check for final write errors for -O FILE too
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-15 11:03:53 +01:00
Gilles Espinasse
26b80e8fe3
Add the help text for 'position independent executable' code build
...
Signed-off-by: Gilles Espinasse <g.esp@free.fr >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-15 03:02:08 +01:00
Denys Vlasenko
5dad4aeede
modprobe: fix "modprobe -l name-with-dash"
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-15 02:17:31 +01:00
Denys Vlasenko
df7f2008c2
modinfo: trivial optimizations
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-15 01:45:14 +01:00
Lauri Kasanen
12f44ea183
modinfo: show firmware and depends fields
...
Signed-off-by: Lauri Kasanen <curaga@operamail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-15 01:43:04 +01:00
Denys Vlasenko
2384a357f4
wget: make "wget -O FILE URL1 URL2" concatenate output
...
Also fixes a few cases where URL1's data (like start pos)
was leaking into URL2
function old new delta
wget_main 2303 2321 +18
progress_meter 140 152 +12
retrieve_file_data 397 396 -1
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 30/-1) Total: 29 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-15 00:58:36 +01:00
Pere Orga
57b4909db9
wget: fix SEGV with multiple urls and redirection
...
Signed-off-by: Pere Orga <gotrunks@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-14 23:56:07 +01:00
Denys Vlasenko
7c6f2468cc
hush: do not print killer signal's name for SIGPIPE
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-14 17:17:10 +01:00
Denys Vlasenko
b9348440b0
echo: fix ENOSPC detection and some iffy code in \NNN handling
...
function old new delta
echo_main 330 302 -28
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-14 15:42:18 +01:00
Vladislav Grishenko
713e6d78e1
udhcpc: use more correct, and more importantly, more understandable BPF code
...
Signed-off-by: Vladislav Grishenko <themiron@mail.ru >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-14 04:50:30 +01:00
Denys Vlasenko
48a5219f39
reverted LINHIB0001 swap signature addition
...
see:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/683605
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-14 03:52:16 +01:00
Dan Fandrich
dc50676cce
Move stpcpy replacement function into libbb
...
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-13 18:37:12 +01:00
Denys Vlasenko
4ed3c52ce9
mktemp: make it more compatible with GNU coreutils 8.4
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-13 17:38:34 +01:00
Denys Vlasenko
07cda2268a
fix bug 3223 (parameter loading problem for 2.4 kernels)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-13 04:17:35 +01:00
Denys Vlasenko
9a5b7f636d
wget: support multiple URLs on command line even without -O :)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-13 02:49:43 +01:00
Denys Vlasenko
a3661096f2
wget: support multiple URLs on command line
...
function old new delta
wget_main 2190 2310 +120
progress_meter 124 140 +16
parse_url 288 304 +16
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 152/0) Total: 152 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-13 02:33:11 +01:00
Denys Vlasenko
a84eadf9bf
typo fix in comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-12 23:40:31 +01:00
Denys Vlasenko
e1a4209a5e
find: trim help text a bit
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-12 20:37:41 +01:00
Denys Vlasenko
053c12e0de
find: remove the hack we use to parse options first, replace with simpler code
...
text data bss dec hex filename
867764 438 7552 875754 d5cea busybox_old
867629 438 7552 875619 d5c63 busybox_unstripped
function old new delta
parse_params 1377 1440 +63
static.params 151 192 +41
static.options 42 57 +15
fileAction 151 153 +2
find_main 466 267 -199
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/1 up/down: 121/-199) Total: -78 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-12 20:27:13 +01:00
Denys Vlasenko
805f2453d0
find: print/print0/prune _can_ be inverted, fix it
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-12 20:26:14 +01:00
Denys Vlasenko
27076b8233
find: document ! (not) operator
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-12 18:49:48 +01:00
Denys Vlasenko
4604dd86c5
find: help text: PATH must be first
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-12 18:24:15 +01:00
Denys Vlasenko
56cdb2fc37
find: yet another tweak to help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-12 17:13:03 +01:00
Denys Vlasenko
4dea9eb07f
find: fix help text about -prune: it also does assume -print
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-12 17:08:16 +01:00
Denys Vlasenko
cef85c2442
find: significantly improve hext text. +116 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-12 16:35:24 +01:00
Denys Vlasenko
0b8a7723c7
typo fix
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-12 01:56:25 +01:00
Denys Vlasenko
88ad9da65e
wget: display 100% at the _end_ of chunked download
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-11 23:06:21 +01:00
Denys Vlasenko
c60f4460bb
wget: chunked mode fix. Closes bug 3229
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-11 22:23:23 +01:00
Denys Vlasenko
f9af375668
wget: explain clearerr more clearly
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-11 22:01:33 +01:00
Denys Vlasenko
8766a791e8
wget: correctly handle rare case when we get EAGAIN _on first_ read
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-11 21:42:00 +01:00
Denys Vlasenko
ab8d00d64f
progress meter: fix bugs found in stall detection and unknown size logic
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-11 19:09:30 +01:00
Denys Vlasenko
d55e139649
progress meter: move file name to bb_progress_t. +20 bytes
...
We were doing expensive unicode conversion on every update
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-11 18:56:13 +01:00
Denys Vlasenko
e52e67cb51
libbb/progress.c: make sure we never get negative ETA
...
function old new delta
bb_progress_update 738 733 -5
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-11 12:59:11 +01:00
Denys Vlasenko
838d4bb0cd
progress meter: display >999 hours ETA correctly
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-10 23:35:52 +01:00
Denys Vlasenko
f836f01cc3
wget: shrink progress meter code; strink wget and add debug logging
...
function old new delta
fgets_and_trim - 73 +73
retrieve_file_data 367 349 -18
bb_progress_update 723 699 -24
wget_main 2220 2190 -30
ftpcmd 133 87 -46
gethdr 200 153 -47
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/5 up/down: 73/-165) Total: -92 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-10 23:02:28 +01:00
Denys Vlasenko
805aa9fec9
progress bar: better overflow protection; more precise bar
...
function old new delta
bb_progress_update 639 749 +110
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-10 14:25:51 +01:00
Denys Vlasenko
9213a55bf0
wget: use closed HTTP/1.1 connection, stop when we dl'ed $content_len bytes
...
function old new delta
retrieve_file_data 353 367 +14
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-10 13:23:45 +01:00
Denys Vlasenko
aaf091f97d
remve erroneous dependensies on INSTALLER
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-10 11:18:31 +01:00
Denys Vlasenko
95897f9fd2
getty config help: fix example script
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-10 10:38:13 +01:00
Denys Vlasenko
b44e9760e1
getty: extend its config help
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-10 10:24:51 +01:00
Denys Vlasenko
b2f00ac22a
reset: "ESC(K" selects German, why do we use THAT? Change to "ESC(B" (US)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-10 10:18:22 +01:00
Denys Vlasenko
dee0fc9da1
save 10 bytes on strings
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-10 10:01:49 +01:00
Denys Vlasenko
0fac2f7b5b
wget: remove functions which retry on EINTR
...
function old new delta
retrieve_file_data 392 353 -39
safe_fgets 58 - -58
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 0/1 up/down: 0/-97) Total: -97 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-10 09:55:05 +01:00
Denys Vlasenko
e3ece7878b
fix trivial build failure
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-10 09:50:07 +01:00
Denys Vlasenko
df4e16c9af
wget: use FEATURE_COPYBUF_KB-sized buffer. Much faster for local transfers
...
function old new delta
base64enc - 53 +53
gethdr 190 200 +10
ftpcmd 129 133 +4
progress_meter 160 122 -38
retrieve_file_data 431 392 -39
base64enc_512 46 - -46
wget_main 2456 2220 -236
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 2/3 up/down: 67/-359) Total: -292 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-10 06:29:06 +01:00
Denys Vlasenko
77350aa933
tc: less ugly check for bad sizeof(G)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-10 06:28:09 +01:00
Denys Vlasenko
f133471302
iproute: fix handling of "dev IFACE" selector
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-09 04:39:09 +01:00
Denys Vlasenko
e7212a4ce5
scripts/mkconfigs: don't use invalid basic regexp
...
\? are GNU extension and thus are non-standard
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-09 01:33:41 +01:00
Denys Vlasenko
698e8095fa
use unistd.h before _POSIX_VERSION
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-08 05:35:04 +01:00
Denys Vlasenko
66c5b12dbf
ash: fix TMOUT not restoring tty attributes
...
function old new delta
pgetc 420 500 +80
readtoken1 3202 3239 +37
read_line_input 3316 3337 +21
udhcpc_main 2610 2630 +20
file_get 266 272 +6
expandarg 958 963 +5
localcmd 257 259 +2
addLines 85 87 +2
read_line 94 95 +1
ed_main 2540 2541 +1
timed_out 1 - -1
lineedit_read_key 256 255 -1
alrm_sighandler 44 - -44
cmdloop 539 434 -105
------------------------------------------------------------------------------
(add/remove: 0/2 grow/shrink: 10/2 up/down: 175/-151) Total: 24 bytes
text data bss dec hex filename
887379 936 17200 905515 dd12b busybox_old
887411 936 17192 905539 dd143 busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-08 05:07:02 +01:00
Denys Vlasenko
dd807c16f9
incorporate header fixes proposed in bug 3097
...
Not sure these are *really* needed, but I suppose they don't hurt
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-07 14:58:57 +01:00
Denys Vlasenko
5a746dcec5
scripts/kconfig/mconf.c: stop-gap fix for buffer overflow
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-07 02:19:02 +01:00
Denys Vlasenko
8ee2adab21
echo: do not retry on write errors
...
function old new delta
echo_main 297 336 +39
stpcpy - 22 +22
run_pipe 1561 1566 +5
pseudo_exec_argv 187 192 +5
hush_exit 75 80 +5
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 4/0 up/down: 98/0) Total: 76 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-07 02:03:51 +01:00
Denys Vlasenko
b8ab4b0388
typo fix
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-06 20:02:15 +01:00
Denys Vlasenko
aef441cb4d
tar: fix a bug where autodetection messes up -z on extract
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-06 20:01:11 +01:00
Mike Frysinger
ca18e25525
runlevel/wall: depend on utmp feature
...
These utils use funcs from utmp.h (like setutent), but utmp.h is only
included when FEATURE_UTMP is enabled. Otherwise we get build failures
due to missing defines/prototypes. So depend on this option.
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2011-02-06 12:29:25 -05:00
Denys Vlasenko
fbea220560
udhcpc: fix a problem with binary-encoded options
...
function old new delta
attach_option 395 413 +18
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-06 18:00:58 +01:00
Denys Vlasenko
281e7b8848
ping: trivial simplification. -2 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-06 17:51:45 +01:00
Denys Vlasenko
1bb52a9b73
ping: fix IPv6 pinging. Closes bug 3187
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-05 03:58:43 +01:00
Dan Fandrich
07078c2966
Let fbsplash display images even when a second buffer is active
...
If a previous application uses double buffering and makes the
second buffer visible, fbsplash's images (written to the first
buffer) otherwise won't be visible.
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-05 03:34:52 +01:00
Reuben Dowle
3e2834fe72
ubimkvol,ubirmvol,ubirsvol: new applets
...
function old new delta
ubi_tools_main - 658 +658
packed_usage 28269 28376 +107
bbconfig_config_bz2 4968 5007 +39
applet_names 2407 2434 +27
applet_main 1396 1408 +12
applet_nameofs 698 704 +6
applet_install_loc 175 176 +1
ubi_attach_detach_main 175 - -175
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 6/0 up/down: 850/-175) Total: 675 bytes
Signed-off-by: Reuben Dowle <reuben.dowle at navico.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-05 03:18:08 +01:00
Denys Vlasenko
046341e8bd
ash: optional support for $TMOUT variable
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-04 17:53:59 +01:00
Denys Vlasenko
8c52f80397
ash: cosmetic cleanups
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-04 17:36:21 +01:00
Denys Vlasenko
c5d0f15dbd
libbb: spawn should remove child which failed to exec
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-03 14:14:09 +01:00
Denys Vlasenko
3237f5c307
tar: support -T - and -X -
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-03 04:00:23 +01:00
Denys Vlasenko
b7c9fb27cb
whitespace fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-03 00:05:48 +01:00
Denys Vlasenko
6307357eff
move nofork_save_area from libbb.h to vfork_daemon_rexec.c
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-02 19:05:25 +01:00
Denys Vlasenko
b72baeb003
hush: use FEATURE_SH_NOFORK to enable NOFORK trick
...
Also expands docs
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-02 18:38:57 +01:00
Denys Vlasenko
c71b469f5d
libbb: make BB_EXECVP/LP try to exec real binary if there's no /proc/self/exe
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-02 03:28:56 +01:00
Denys Vlasenko
099e528919
ps: implement -o stat
...
function old new delta
func_stat - 24 +24
out_spec 300 320 +20
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-02 00:59:35 +01:00
Denys Vlasenko
c5830bdf65
modprobe/insmod: fix parameter quoting
...
function old new delta
parse_cmdline_module_options 102 157 +55
modprobe_main 657 662 +5
insmod_main 68 70 +2
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 62/0) Total: 62 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-02 00:01:07 +01:00
Denys Vlasenko
8ae386bf19
revert commit 1396221d5a
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-01 23:24:25 +01:00
Lauri Kasanen
55ae0e9238
df,find_mount_point: optionally don't ignore rootfs
...
Signed-off-by: Lauri Kasanen <curaga@operamail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-31 06:27:35 +01:00
Denys Vlasenko
625cfd87d9
fdisk_osf: simplify ifdef (incidentally, adds support for Microblaze)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-31 05:55:52 +01:00
Denys Vlasenko
b5233f8556
tar: add -h and -T to help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-31 05:35:23 +01:00
Denys Vlasenko
aa4f9a2fd8
libbb/copy_file.c: use smallints instead of signed chars
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-28 19:14:17 +01:00
Denys Vlasenko
4907f6ec58
getty: fix "ifdef CMSPAR"
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-26 16:20:54 +01:00
Denys Vlasenko
f36368ed37
getty: restore CRTSCTS comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-26 16:14:47 +01:00
Denys Vlasenko
df7b6577c6
id: fix inverted if (!ENABLE_DESKTOP)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-26 16:11:19 +01:00
Denys Vlasenko
ffd81f2003
getty: do clear CLOCAL and CRTSCTS unless told otherwise
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-26 16:06:16 +01:00
Denys Vlasenko
cf9d33a894
getty: do not clear all c_cflag's (we were clearing baud bits!)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-26 15:56:51 +01:00
Peter Korsgaard
ddd1ec1c27
getty: wait up to 5 seconds for the output buffer to drain
...
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-26 15:15:19 +01:00
Denys Vlasenko
e3d4c03852
stty: cosmetic fix to settings table; no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-26 11:58:37 +01:00
Denys Vlasenko
3ff9be31be
getty: document bits we don't set - maybe we should set some of them?
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-26 11:28:43 +01:00
Denys Vlasenko
d7c25e98bf
getty: add ECHOE explanation
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-26 03:31:23 +01:00
Denys Vlasenko
d8494934a7
getty: explain every bit in termios; remove redundant stuff in termios_final
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-26 03:26:38 +01:00
Denys Vlasenko
ea023eacad
disable length applet. ${#var} and echo -n "$var" | wc -c are portable equivalents
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-26 01:21:20 +01:00
Alexander Shishkin
f18a82d9b3
diff: return 1 when skipping directories with -r, but without -N
...
Diff in diffutils will return 1 in case -r option is specified without
-N something exists only in one of the directories.
Signed-off-by: Alexander Shishkin <virtuoso@slind.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-26 01:09:12 +01:00
Denys Vlasenko
8d0e0cdadf
move utmp.h include to libbb.h
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-25 23:21:46 +01:00
Denys Vlasenko
9aa599dc9d
top: replace %MEM with %VSZ in header text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-25 12:48:47 +01:00
Davide Cavalca
9b3b9790b3
add ENABLE_FEATURE_SYSTEMD and use it in syslogd
...
Signed-off-by: Davide Cavalca <davide@geexbox.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-25 02:26:03 +01:00
Denys Vlasenko
444ff284c4
top: document a debugging script
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-25 01:57:31 +01:00
Denys Vlasenko
975c714183
nicer looking ifdef in libbb/makedev.c
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-24 23:53:12 +01:00
Denys Vlasenko
136091886e
getty: flush _only_ input after switching to the next baud rate
...
It was originally like this, but at some point TCIFLUSH was
inadvertently changed to TCIOFLUSH.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-24 23:45:22 +01:00
Denys Vlasenko
e54cfc5477
stty: enable line discipline display and change code if __linix__
...
function old new delta
stty_main 1242 1276 +34
do_display 419 431 +12
display_speed 90 81 -9
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 46/-9) Total: 37 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-24 18:30:35 +01:00
Denys Vlasenko
7073964b5f
getty: simplify macros; improve VSWTC[H] compat
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-24 18:17:19 +01:00
Chris Rees
6b1ce45598
FreeBSD compat for match_fstype
...
Signed-off-by: Chris Rees <utisoft@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-24 17:10:02 +01:00
Chris Rees
e22af94afb
FreeBSD compat for makedev
...
Signed-off-by: Chris Rees <utisoft@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-24 17:07:40 +01:00
Chris Rees
330718ef55
FreeBSD compat
...
Signed-off-by: Chris Rees <utisoft@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-24 17:07:06 +01:00
Chris Rees
e3c127d846
FreeBSD compat
...
Signed-off-by: Chris Rees <utisoft@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-24 17:04:59 +01:00
Denys Vlasenko
271c0ce379
stty: make swtch and iutf8 visible/settable
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-24 16:36:15 +01:00
Denys Vlasenko
faaf8cb3fa
getty: more simplifications; explain how we treat parity now
...
function old new delta
getty_main 1471 1434 -37
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-24 14:35:09 +01:00
Denys Vlasenko
6596380f52
getty: simplify code by going to more straignforward G trick
...
function old new delta
getty_main 1615 1475 -140
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-24 04:43:04 +01:00
Denys Vlasenko
e9a40e3b91
libbb: make ndelay_no/off a bit more clever. +14 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-24 00:29:55 +01:00
Denys Vlasenko
dc6cd12569
getty: add sleep before initial tcdrain; reduce another sleep from 1 to 0.1s
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-24 00:28:43 +01:00
Denys Vlasenko
1f0840450e
getty: use cfsetspeed to save some bytes; cosmetic fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-24 00:16:50 +01:00
Davide Cavalca
658a437d4b
hwclock: implement --systz
...
function old new delta
hwclock_main 324 434 +110
packed_usage 28220 28259 +39
static.hwclock_longopts 53 60 +7
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 156/0) Total: 156 bytes
Signed-off-by: Davide Cavalca <davide@geexbox.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-22 18:55:32 +01:00
Denys Vlasenko
1336f89d59
wc: fix swapped -c and -m
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-22 17:57:01 +01:00
Denys Vlasenko
1f4a987d47
pltaform.h: move include of stdint.h before uint16_t is used
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-22 17:31:35 +01:00
Denys Vlasenko
006416e8fe
getty: more correct check for O_RDWR
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-22 17:29:53 +01:00
Denys Vlasenko
2b57b6cd43
getty: comment out parity detection code; improve usage text
...
function old new delta
packed_usage 28155 28191 +36
static.erase 12 - -12
getty_main 1847 1621 -226
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 1/1 up/down: 36/-238) Total: -202 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-22 03:06:40 +01:00
Denys Vlasenko
3a0f690dcd
svlogd: extend usage text. +70 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-22 00:38:24 +01:00
Denys Vlasenko
e8f565c1ee
Merge branch 'master' of git+ssh://vda@busybox.net/var/lib/git/busybox
2011-01-21 21:59:26 +01:00
Denys Vlasenko
b40da22357
fix compile error on non-x86 architectures
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-21 01:16:09 +01:00
Denys Vlasenko
dd169e8468
eliminate aliasing warnings in traceroute.c and udhcp/socket.c
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-20 12:13:23 +01:00
Denys Vlasenko
b3b6c8bdf2
eliminate aliasing warning in networking/route.c
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-20 11:29:00 +01:00
Denys Vlasenko
53f30b41ec
ifplugd: eliminate aliasing warnings
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-20 01:20:36 +01:00
Chris Rees
9ad97d5041
sighandler_t definition for BSD
...
Signed-off-by: Chris Rees <utisoft@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-20 00:51:52 +01:00
Denys Vlasenko
a146319173
hush: improve prompt in nested {}s, remove unused in_str->promptme member
...
function old new delta
setup_string_in_str 29 38 +9
parse_and_run_stream 79 88 +9
setup_file_in_str 32 39 +7
parse_stream 2430 2422 -8
file_get 262 235 -27
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/2 up/down: 25/-35) Total: -10 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-18 17:55:04 +01:00
Denys Vlasenko
98c46d10ee
hush: fix "cmd & <newline>" problem
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-18 17:30:07 +01:00
Denys Vlasenko
b9f2d9f7d9
mass removal of underscores from _BB_DIR_foo and _BB_SUID_foo
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-18 13:58:01 +01:00
Denys Vlasenko
3b5acaa432
disable automatic selection of FEATURE_SUID; improve its help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-18 13:52:48 +01:00
Denys Vlasenko
094cc51e50
insmod: check for module read errors
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-17 14:58:27 +01:00
Denys Vlasenko
10ee20b58b
libbb: better comment in parse_date
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-17 14:23:42 +01:00
Tito Ragusa
ad3d72f082
move passwd, shadow, group and gshadow path definitions to libbb.h
...
...and define them only if the used libc doesn't.
Signed-off-by: Tito Ragusa <farmatito@tiscali.it >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-16 23:39:45 +01:00
Denys Vlasenko
e8d0a1450a
remove a few aliasing warnings
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-16 11:21:15 +01:00
Denys Vlasenko
df1689138e
remove a few aliasing warnings
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-16 01:25:34 +01:00
Denys Vlasenko
068444629f
top: add keyboard commands to --help
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2011-01-13 16:07:51 +01:00
Denys Vlasenko
8030a14849
httpd: send correct mtime for .gz files
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2011-01-11 17:59:45 +01:00
Denys Vlasenko
dc7e5c46b0
libbb unicode: comment out usused function and unused parameter
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2011-01-11 13:08:28 +01:00
Denys Vlasenko
5a163b2645
lsmod: fox unsafe usage of strlen() - 1
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2011-01-11 13:07:22 +01:00
Denys Vlasenko
0f44c08560
libbb: progress indicator: use unicode support funcs instead of open-coding it
...
function old new delta
bb_progress_update 729 641 -88
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2011-01-10 16:10:29 +01:00
Denys Vlasenko
84dba9c5bb
tftp: fix bad interaction betweel poll() and alarm(). Closes bug 3061
...
This was breaking timeout handling.
function old new delta
tftp_progress_update - 45 +45
tftp_progress_done - 32 +32
tftp_protocol 1839 1858 +19
tftp_progress_init 9 15 +6
tftp_main 298 286 -12
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 2/1 up/down: 102/-12) Total: 90 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2011-01-10 12:51:44 +01:00
Denys Vlasenko
7b305646e1
stop giving root rights to dnsd, ipcrm, ipcs
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-09 21:54:50 +01:00
Denys Vlasenko
bcdb9b8762
getty: fix -i (was ignored)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-09 21:44:51 +01:00
Denys Vlasenko
e9d12b57bf
modprobe-small: support compressed modules in insmod
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-09 20:57:52 +01:00
Denys Vlasenko
642e71a789
hush: fix wrong prompt problem on empty interactive commants
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2011-01-07 15:16:05 +01:00
Denys Vlasenko
f42c7b8fc1
suppress "'fast_strtol_10' defined but not used" warning
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2011-01-07 13:51:16 +01:00
Denys Vlasenko
e66a212081
mkswap: selinux build fix
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2011-01-05 11:45:44 +01:00
Denys Vlasenko
a116552869
tar: add a note about -C and symlink-in-tarball attack
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-04 08:46:26 +01:00
Denys Vlasenko
6100b51ca8
explain every non-SUID_DROP applet. No code changes
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2011-01-03 13:57:49 +01:00
Denys Vlasenko
327d2885ec
kill[all[5]],pkill: make signal list show signal numbers, and show RTMIN/MAX
...
function old new delta
print_signames 31 64 +33
signals 224 231 +7
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2011-01-03 13:08:58 +01:00
Denys Vlasenko
7b276fc175
kill[all[5]],pkill: more correct, and smaller, SIGRTMIN/MAX code
...
function old new delta
__libc_current_sigrtmin 6 - -6
__libc_current_sigrtmax 6 - -6
get_signum 339 295 -44
------------------------------------------------------------------------------
(add/remove: 0/3 grow/shrink: 0/1 up/down: 0/-56) Total: -56 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2011-01-03 12:51:13 +01:00
Denys Vlasenko
92ffe0571a
date,touch: treat 2-digit years better (fit them into +-50 yrs around today)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-02 20:02:09 +01:00
Alexey Soloviev
a5d3d3436b
date: preserve isdst value if date is in time_t (unix time) format
...
Signed-off-by: Alexey Soloviev <EXT-Alexey.Soloviev@nokia.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-31 05:21:51 +01:00
Denys Vlasenko
a9e25ffa67
su: document -l in --help text. Closes bug 2761
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-31 02:52:35 +01:00
Denys Vlasenko
0cd4f3039b
add missed underscore
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-31 00:01:59 +01:00
Denys Vlasenko
d1e46651a3
date: add a comment about _SVID_SOURCE
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-30 23:56:47 +01:00
Denys Vlasenko
ed9b08d1c1
bzip2: plug memory leak on every processed file
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-30 04:43:35 +01:00
Denys Vlasenko
2753aae0e8
libbb: optionally support RTMIN[+n] and RTMAX[-n] signal names
...
function old new delta
get_signum 140 336 +196
__libc_allocate_rtsig - 56 +56
__libc_current_sigrtmin - 6 +6
__libc_current_sigrtmax - 6 +6
current_rtmin - 4 +4
current_rtmax - 4 +4
bbconfig_config_bz2 4961 4962 +1
------------------------------------------------------------------------------
(add/remove: 6/0 grow/shrink: 2/0 up/down: 273/0) Total: 273 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-30 01:17:03 +01:00
Denys Vlasenko
90615a0c5c
blkid: optional support for TYPE="fstype"
...
Adapted from patch created by T4ndeta <t4ndeta@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-30 00:40:11 +01:00
Denys Vlasenko
2272129a93
plug a DIR* leak on error path
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-28 10:25:03 +01:00
Serj Kalichev
8578196b76
modprobe: add -D option (synonym of --show-depends)
...
The modern module-init-tools 3.12 has "-D" option and it works.
The --show-depends and -a options can be used together due to upstream modprobe
behaviour.
function old new delta
do_modprobe 536 579 +43
packed_usage 28035 28042 +7
modprobe_main 653 657 +4
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 54/0) Total: 54 bytes
Signed-off-by: Serj Kalichev <serj.kalichev@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-28 04:18:18 +01:00
Ian Wienand
260fb551ff
login: apply PAM environment
...
login should apply the PAM environment modified by plugins
such as pam_env. Other 'login's do a similar thing.
I tested this by setting some env variables with pam_env which were
correctly applied.
Signed-off-by: Ian Wienand <ianw@vmware.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-27 02:13:06 +01:00
Denys Vlasenko
1f937d6468
cpio: allow cpio -i to take params - names of files to extract
...
Also, improve help text
function old new delta
packed_usage 28028 28035 +7
cpio_main 542 532 -10
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 7/-10) Total: -3 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-26 02:22:51 +01:00
Serj Kalichev
e4e911e712
modprobe: add support for --show-depends
...
function old new delta
modprobe_longopts - 16 +16
packed_usage 28018 28028 +10
modprobe_main 648 653 +5
do_modprobe 580 536 -44
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 2/1 up/down: 31/-44) Total: -13 bytes
Signed-off-by: Serj Kalichev <serj.kalichev@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-26 01:56:19 +01:00
Denys Vlasenko
6088e138e1
init: simpler handling of leading dash in commands
...
function old new delta
init_exec 233 219 -14
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-25 23:58:42 +01:00
Denys Vlasenko
8993c3f260
udhcpc: document SIGUSRn effect in help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-25 06:21:54 +01:00
Denys Vlasenko
75eb9d20e9
hush: fix FEATURE_CLEAN_UP code (was freeing unallocated memory)
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-12-21 21:18:12 +01:00
Denys Vlasenko
51d714ce7e
sendmail: remove forgotten commenting-out on a "if (verbose)"
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-12-20 12:19:46 +01:00
Denys Vlasenko
5707b52fd4
mailutils/*: add verbose option to sendmail; remove -m and -j from makemime
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-20 05:12:39 +01:00
Denys Vlasenko
27c6c00a7c
test: add examples when "%s: unknown operand" happens
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-20 03:43:20 +01:00
James Youngman
a4bc10cec7
ls: remove redundant constants LIST_FILENAME and LIST_SHORT
...
LIST_FILENAME is always true and LIST_SHORT affects nothing.
Signed-off-by: James Youngman <jay@gnu.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-20 01:36:16 +01:00
Denys Vlasenko
982aa263a0
ls: add support for -H
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-19 21:54:39 +01:00
James Hunt
86ffe5c15a
volume_id: recognize compressed hibernate swap signature
...
util-linux/volume_id/linux_swap.c: Added the new magic LINHIB0001
signature.
See:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/683605
Signed-off-by: James Hunt <james.hunt@ubuntu.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-19 17:18:45 +01:00
Denys Vlasenko
407ab2a434
ls: tweak -e handling; better comments
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-19 16:29:08 +01:00
Denys Vlasenko
2f7d9e8903
ls: print a space after each column. Closes bug 2941
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-19 07:06:44 +01:00
Denys Vlasenko
163d864357
ls: make -F not follow symlinks of the command line
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-19 06:16:28 +01:00
Denys Vlasenko
d87815d5e0
ls: make -x force columnar output; remove unused parts of TRIGGER code
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-19 05:43:44 +01:00
Denys Vlasenko
f313746a6d
ls: for some options, only last takes effect. Closes bug 2959
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-19 05:05:34 +01:00
Denys Vlasenko
1393fc1161
chrt: -m can be used without any arguments. Closes bug 2989
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-19 04:07:50 +01:00
Denys Vlasenko
96c8a6b5ea
chrt: correct opt_complementary. Closes bug 2977
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-18 02:59:09 +01:00
Macpaul Lin
b2fa0b6219
scripts: fix fixdep.c to let it workable in cygwin
...
Update retrun character detection in the fixdep.c
to let it work in cygwin.
Signed-off-by: Macpaul Lin <macpaul@andestech.com >
Signed-off-by: Greentime <green.hu@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-18 01:46:38 +01:00
Denys Vlasenko
e06884208a
Revert "scripts: fix fixdep.c to let it workable in cygwin"
...
This reverts commit 10c36b8657 .
2010-12-18 01:46:04 +01:00
Greentime
10c36b8657
scripts: fix fixdep.c to let it workable in cygwin
...
Update return character detection in the fixdep.c
to let it workable in cygwin.
Signed-off-by: Macpaul Lin <macpaul@andestech.com >
Signed-off-by: Greentime <green.hu@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-18 01:45:14 +01:00
Denys Vlasenko
a3aea32811
chat: fix build breakage (variable declared in for())
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-18 01:42:50 +01:00
Denys Vlasenko
0d6a4ecb30
hush: fix build breakage (variable declared in for())
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-18 01:34:49 +01:00
Denys Vlasenko
a6041860f8
nmeter: deprecate %NNNd specified, use -d MSEC instead
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-12-13 15:17:22 +01:00
Lauri Kasanen
da6fb7e331
procps/Config.src: Add pstree to FEATURE_THREADS deps. Slight text edit
...
Signed-off-by: Lauri Kasanen <curaga@operamail.com >
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-12-13 14:45:08 +01:00
Denys Vlasenko
0d1d0f6e54
more: smaller version of previous fix
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-12-13 14:31:59 +01:00
Denys Vlasenko
0b90de1537
more: exit if write to stdout errors out
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-12-13 14:28:38 +01:00
Denys Vlasenko
1f3709ec74
fix typo in README
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-08 06:08:47 +01:00
Denys Vlasenko
309974412a
typo fix
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-12-06 15:44:13 +01:00
Denys Vlasenko
bc3cdf8ed1
update examples/var_service/README
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-12-06 15:42:44 +01:00
Denys Vlasenko
75bb332dbd
add examples/var_service/README
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-12-06 15:13:58 +01:00
Denys Vlasenko
86aa803047
pstree: use stdin for screen size detection
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-12-06 12:54:24 +01:00
Eric Lammerts
31905f9477
runsvdir: do not miss closely spaced service dir changes
...
Signed-off-by: Eric Lammerts <busybox@lists.lammerts.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-06 01:26:26 +01:00
Denys Vlasenko
c60e88a5b9
tweak INSTALL_NO_USR help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-05 23:11:15 +01:00
Joachim Nilsson
dc160039ad
build system: fix "make install" to skip /usr when configured so
...
Fix regression in BusyBox 1.18.0 where the NO_USR config option no longer
bites for "make install". The busybox.mkll script stumbles without these
lines and as a result *always* creates /usr/ symlinks.
Signed-off-by: Joachim Nilsson <troglobit@vmlinux.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-05 23:05:38 +01:00
Denys Vlasenko
2161bd701a
pstree: another tiny shrink
...
function old new delta
pstree_main 327 324 -3
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-05 19:36:58 +01:00
Denys Vlasenko
c32e626988
pstree: tiny shrink
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-05 16:05:03 +01:00
Lauri Kasanen
e48e6f85bf
pstree: fix width logic. +30 bytes
...
Signed-off-by: Lauri Kasanen <curaga@operamail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-05 15:55:06 +01:00
Lauri Kasanen
6578f2cf5b
pstree: new applet. +1664 bytes
...
text data bss dec hex filename
883379 936 17192 901507 dc183 busybox_old
885043 936 17192 903171 dc803 busybox_unstripped
Signed-off-by: Lauri Kasanen <curaga@operamail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-05 05:22:29 +01:00
Denys Vlasenko
a04440ccad
typo fix
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-05 05:02:49 +01:00
Denys Vlasenko
8da415ef25
add if guards around include <malloc.h>
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-05 01:30:14 +01:00
Denys Vlasenko
5dcc6606cb
libbb/pw_encrypt_sha: forgot to move &ctx to 1st param here in sha hash rework
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-12-01 13:57:25 +01:00
Denys Vlasenko
3f2477e8a8
touch: fix help text to not show options disabled in .config
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-12-01 13:06:03 +01:00
Denys Vlasenko
631fd5ccd7
su: suppress "warning: unused variable 'user_buf'"
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-30 09:47:56 +01:00
Chris Rees
12caabfa2d
build system: do not use GNU-isms in find
...
Signed-off-by: Chris Rees <utisoft@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-30 09:41:39 +01:00
Denys Vlasenko
58c3d21c2e
telnetd: write utmp record with correct pid
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-30 09:17:30 +01:00
Denys Vlasenko
3c8799b8a4
ping: set not only IP_TTL, but also IP_MULTICAST_TTL
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-11-29 12:07:12 +01:00
Rob Landley
8027a202a8
patch: fix "patch at the beginning" testcase failure
...
Signed-off-by: Rob Landley <rob@landley.net >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-29 03:24:51 +01:00
Denys Vlasenko
0ab45da929
exclude the case of just "busybox" from previous commit
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-29 03:21:55 +01:00
Denys Vlasenko
8f0af3b001
if only one applet is enabled, make "busybox applet [params]" work as expected
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-29 02:55:35 +01:00
Joachim Nilsson
714e2b7e6a
ping: add -t TTL option
...
function old new delta
common_ping_main 1755 1796 +41
packed_usage 27954 27971 +17
bbconfig_config_bz2 4965 4966 +1
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 59/0) Total: 59 bytes
Signed-off-by: Joachim Nilsson <joachim.nilsson@vmlinux.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-28 23:01:18 +01:00
Denys Vlasenko
713d241852
dhcpd: reply with NAK to clients in INIT-REBOOT state w/o existing lease
...
We were not responding to them at all.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-28 21:51:44 +01:00
Denys Vlasenko
1c31e9e82b
use BB_EXECVP_or_die where appropriate
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-28 04:34:09 +01:00
Denys Vlasenko
57542ebe4f
hush: move G_x_mode define to the more appropriate place
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-28 03:59:30 +01:00
Dan Fandrich
85c62470b7
Support set -o xtrace/noexec alternates for set -x/-n
...
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-28 03:56:39 +01:00
Dan Fandrich
89ca2f99a2
hush: display useful help text
...
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-28 01:54:39 +01:00
Denys Vlasenko
fe9403ad17
add a test for patch which we currently fail
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-28 01:41:40 +01:00
Denys Vlasenko
fa5e295600
dhcpd: smaller code: do not look for REQUESTED_IP twice
...
text data bss dec hex filename
883235 936 17192 901363 dc0f3 busybox_old
883219 936 17192 901347 dc0e3 busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-28 01:10:51 +01:00
Denys Vlasenko
b271ad46dc
blkid: add TODO
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-25 07:59:17 +01:00
Denys Vlasenko
7a3f8e2fe1
gen_build_files.sh: better comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-25 06:55:18 +01:00
Denys Vlasenko
749e305d36
build system: fix for dash
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-11-24 15:06:49 +01:00
Denys Vlasenko
7386dd1e8a
Start 1.19.0 development cycle
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-11-23 12:50:40 +01:00