aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* syslogd: use _PATH_LOG when availableCédric Cabessa2013-08-051-4/+7
| | | | | Signed-off-by: Cédric Cabessa <ccabessa@genymobile.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ubi_tools: fix typo in strcpyPaul B. Henson2013-08-041-1/+1
| | | | | Signed-off-by: Paul B. Henson <henson@acm.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ifplugd: use a larger netlink bufferTito Ragusa2013-08-041-4/+10
| | | | | | | | 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>
* less: support "less 1<>TTY"Denys Vlasenko2013-08-041-4/+25
| | | | | | | | function old new delta less_main 2466 2507 +41 xmalloc_ttyname 46 42 -4 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* volume_id: add f2fs detectionSven-Göran Bergh2013-08-013-0/+100
| | | | | | | | | 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>
* awk: Fix handling of functions with empty bodyBernhard Reutner-Fischer2013-07-312-1/+29
| | | | | | | ammend b79a0fef99627c457548e804fcd6e162b116cbe8 to properly handle functions defined in another scope. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* volume_id: nilfs config description.Sven-Göran Bergh2013-07-311-1/+10
| | | | | | | | | 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>
* volume_id: Adopt to new config style.Sven-Göran Bergh2013-07-3135-245/+318
| | | | | | | | | | 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>
* volume_id: Adopt to new kbuild style.Sven-Göran Bergh2013-07-3135-38/+71
| | | | | | | | | | 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>
* Whitespace fixesDenys Vlasenko2013-07-3012-23/+23
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* catv: code shrinkDenys Vlasenko2013-07-302-7/+13
| | | | | | catv_main 250 227 -23 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Refactor catv. Move visible() from stty to libbb.Bartosz Golaszewski2013-07-305-58/+51
| | | | | | | | | | | | | | | | | | | | 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>
* unpackers: by users' request, print compression percentage if -v and DESKTOPDenys Vlasenko2013-07-301-13/+23
| | | | | | | function old new delta bbunpack 634 731 +97 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* nc: remove unnecessary "errno = 0"Denys Vlasenko2013-07-291-5/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* iplink: fix build error (IFLA_VLAN_PROTOCOL defined before include)Denys Vlasenko2013-07-281-4/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* logread: intercept all fatal signals, not just SIGINTDenys Vlasenko2013-07-281-5/+4
| | | | | | | function old new delta interrupted 27 20 -7 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* nc: remove some dead codeDenys Vlasenko2013-07-281-24/+12
| | | | | | | function old new delta readwrite 887 841 -46 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* nc: exit when both stdin and network are closed.Denys Vlasenko2013-07-281-19/+31
| | | | | | | | function old new delta nc_main 1051 1042 -9 readwrite 943 887 -56 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* nc: use symbolic SHUT_WR instead of literal 1Denys Vlasenko2013-07-281-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Update docs/tcp.txtDenys Vlasenko2013-07-271-1/+18
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* buildsys: Add helper to list suid appletsBernhard Reutner-Fischer2013-07-264-6/+88
| | | | | | | | | | | | | 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>
* Add notes about TCP programming quirks.Denys Vlasenko2013-07-251-0/+65
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* date: accept 'yyyy-mm-dd HH' and 'yyyy-mm-dd' date formatsBartosz Golaszewski2013-07-251-10/+23
| | | | | | | | 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>
* networking: code shrinkBartosz Golaszewski2013-07-255-99/+60
| | | | | | | | | | | | | 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>
* awk.tests: add test for recent large integer fixDenys Vlasenko2013-07-221-3/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sed: fix matching of newlines by $Denys Vlasenko2013-07-212-1/+22
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* unzip: survive lack of CDF on non-streaming zip filesDenys Vlasenko2013-07-211-16/+39
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* awk: use "long long" as integer type, not "int"Denys Vlasenko2013-07-201-5/+5
| | | | | | | | | | | | | | 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>
* unzip: increase PEEK_FROM_END from 16k to 64kDenys Vlasenko2013-07-201-1/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ip link: add VLAN supportPatrick McHardy2013-07-151-9/+128
| | | | | | | | | | | | | | 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>
* ip: code shrinkDenys Vlasenko2013-07-153-20/+16
| | | | | | | | | | | | | 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>
* typo fix in commentDenys Vlasenko2013-07-141-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Commonalize typical [b,]k,m suffix structDenys Vlasenko2013-07-1311-58/+22
| | | | | | | | | | | | | 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>
* chrt: remove warning for _POSIX_PRIORITY_SCHEDULINGBernhard Reutner-Fischer2013-07-081-3/+0
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* typo fix in commentDenys Vlasenko2013-07-081-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tail: code shrinkDenys Vlasenko2013-07-081-16/+15
| | | | | | | | | | 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>
* sed: remove now-redundant backslash-newline handlingDenys Vlasenko2013-07-081-16/+2
| | | | | | | | | | | 4b0bb9e0fd9ec06e9e61b1a1527ace99ea9fe571 added this code in 2007, then in a2215b98f7d65bc613b9c8f008d79672402c6a07 more general fix was added. function old new delta add_cmd_block 98 58 -40 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sed: document where we are more liberal then GNUDenys Vlasenko2013-07-081-0/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Call setlocale("") , not "C", if we want to set the default oneDenys Vlasenko2013-07-071-3/+12
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* unicode: check $LC_CTYPE too to detect Unicode modeDenys Vlasenko2013-07-054-2/+13
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* foo*sum: Correct syntax errorCristian Ionescu-Idbohrn2013-07-041-1/+1
| | | | | | | 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>
* tail: track file size only in -f modeDenys Vlasenko2013-07-021-11/+15
| | | | | | This eliminates extra fstat and lseek calls on every read Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* foo*sum: report I/O errors, don't merely exit with 1.Denys Vlasenko2013-07-021-1/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* unicode: check $LC_ALL to detect Unicode mode, not only $LANGDenys Vlasenko2013-07-023-6/+18
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: do not abort if "_" is encountered in a HTTP headerDenys Vlasenko2013-07-011-2/+10
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* cryptpw: do not segfault on EOF. Closes 6350Denys Vlasenko2013-06-301-7/+12
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: change execl sentinels from NULL to (char*)0Rich Felker2013-06-303-3/+3
| | | | | Signed-off-by: Rich Felker <dalias@aerifal.cx> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ubi_tools: enhance -s option to allow size multiplier to match mtd-utilsDenys Vlasenko2013-06-301-1/+8
| | | | | | | | | | 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>
* ubi_tools: add forgotten argv++Denys Vlasenko2013-06-301-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ubi_tools: extend supported volume size to 64 bits; shrink codeDenys Vlasenko2013-06-301-149/+154
| | | | | | | | | | | 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>