aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Bump version to 1.31.01_31_01_31_stableGravatar Denys Vlasenko2019-06-101-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount,losetup: use /dev/loop-control is it existsGravatar Denys Vlasenko2019-06-093-10/+47
| | | | | | | | | | | function old new delta get_free_loop - 58 +58 set_loop 597 649 +52 losetup_main 482 476 -6 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 1/1 up/down: 110/-6) Total: 104 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* start-stop-daemon: change priority before dropping privilegesGravatar Aitor Esteve Alvarado2019-06-091-9/+9
| | | | | | | | | Currently start-stop-daemon fails when using both the -c option (set uid) and -N option (set niceness/priority) as it first drops privileges and then tries to increase the priority. This patch changes the order of execution. Signed-off-by: Aitor Esteve Alvarado <aesteve@singularaircraft.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tftp: allow -lc and -cl optionsGravatar Denys Vlasenko2019-06-091-1/+9
| | | | | | | function old new delta tftp_main 394 396 +2 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tftpd: revert erroneous changeGravatar Denys Vlasenko2019-06-091-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tftp: optional tftp-hpa compatGravatar Denys Vlasenko2019-06-092-3/+43
| | | | | | | function old new delta tftp_main 276 394 +118 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* expand: add commented-out code to handle NULsGravatar Denys Vlasenko2019-06-091-8/+35
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* expand,unexpand: drop broken test, add FIXME commentGravatar Denys Vlasenko2019-06-083-76/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* awk: fix testsuiteGravatar Denys Vlasenko2019-06-081-0/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* bc: placate compiler warningsGravatar Denys Vlasenko2019-06-081-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* vi: code shrinkGravatar Denys Vlasenko2019-06-081-2/+2
| | | | | | | function old new delta colon 2852 2846 -6 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* bc: placate compiler warningsGravatar Denys Vlasenko2019-06-081-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* brctl: placate compiler warningsGravatar Denys Vlasenko2019-06-081-0/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* blockdev: add usage comment, no code changesGravatar Denys Vlasenko2019-06-081-1/+11
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* httpd: .js is "application/javascript", not "application/x-javascript"Gravatar Denys Vlasenko2019-06-071-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* passwd: do not set 0 as date of last password change, closes 11951Gravatar Denys Vlasenko2019-06-071-1/+7
| | | | | | | function old new delta update_passwd 1491 1505 +14 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* httpd: add js to built in MIME types listGravatar Denys Vlasenko2019-06-071-0/+1
| | | | | | Firefox needs this to execute .js Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* httpd: add svg to built in MIME types listGravatar Vicente Jimenez Aguilar2019-06-071-0/+1
| | | | | Signed-off-by: Vicente Jimenez Aguilar <googuy@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* lpd: avoid SEGVing on immediate EOF from peerGravatar Denys Vlasenko2019-06-071-2/+4
| | | | | | | | | Patch by Luís Marques <luismarques@lowrisc.org> function old new delta lpd_main 749 757 +8 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: move netlink socket binding to the utility functionGravatar Denys Vlasenko2019-06-035-56/+55
| | | | | | | | | | | | function old new delta create_and_bind_to_netlink - 134 +134 ifplugd_main 1117 1052 -65 uevent_main 399 306 -93 mdev_main 314 215 -99 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/3 up/down: 134/-257) Total: -123 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mdev: add support to run as daemonGravatar Jan Klötzke2019-06-031-17/+120
| | | | | | | | | | | | | | | | | | | | Adds the -d option to run mdev in daemon mode handling hotplug events from the kernel like udev. If the system generates many hotplug events this mode of operation will consume less resources than registering mdev as hotplug helper or using the uevent applet. function old new delta daemon_loop - 152 +152 initial_scan - 127 +127 open_mdev_log - 85 +85 mdev_main 255 314 +59 packed_usage 33284 33316 +32 process_action 1051 992 -59 ------------------------------------------------------------------------------ (add/remove: 3/0 grow/shrink: 2/1 up/down: 455/-59) Total: 396 bytes Signed-off-by: Jan Klötzke <jan@kloetzke.net> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mdev: use option parser helperGravatar Jan Klötzke2019-06-031-2/+9
| | | | | | | | | | | function old new delta process_action - 1051 +1051 mdev_main 1324 255 -1069 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/1 up/down: 1051/-1069) Total: -18 bytes Signed-off-by: Jan Klötzke <jan@kloetzke.net> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mdev: move action processing into separate functionsGravatar Jan Klötzke2019-06-031-72/+82
| | | | | | | | This purely moves code from main() to separate functions for better extensibility. Signed-off-by: Jan Klötzke <jan@kloetzke.net> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash,hush: show 'c' in $- if run in "sh -c CMD"Gravatar Denys Vlasenko2019-06-032-25/+50
| | | | | | | | | | | | | function old new delta options 552 599 +47 expand_one_var 2375 2385 +10 optletters_optnames 60 64 +4 hush_main 1108 1111 +3 ash_main 1150 1152 +2 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 5/0 up/down: 66/0) Total: 66 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: allocate line editing structure only if neededGravatar Denys Vlasenko2019-06-011-37/+70
| | | | | | | | | | | | | function old new delta optschanged 91 128 +37 historycmd 13 17 +4 setcmd 80 78 -2 ash_main 1167 1150 -17 options 576 552 -24 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/3 up/down: 41/-43) Total: -2 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* dhcp: downgrade "got raw socket fd" message to log3, make log2 default maxGravatar Denys Vlasenko2019-05-313-3/+3
| | | | | | | | | log3 messages are very much redundant function old new delta change_listen_mode 322 302 -20 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* dhcp: get rid of static data signal_pipeGravatar Denys Vlasenko2019-05-314-23/+36
| | | | | | | | | | | | | | | | | function old new delta udhcp_sp_setup 65 110 +45 udhcp_sp_fd_set 60 59 -1 udhcpd_main 1442 1437 -5 udhcpc_main 2684 2679 -5 signal_pipe 8 - -8 packed_usage 33292 33284 -8 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 1/4 up/down: 45/-27) Total: 18 bytes text data bss dec hex filename 952746 481 7296 960523 ea80b busybox_old 952768 481 7288 960537 ea819 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcp: rename server_config to server_dataGravatar Denys Vlasenko2019-05-302-79/+79
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* losetup: Add partition scanning optionGravatar Jack O'Sullivan2019-05-302-10/+18
| | | | | | | | | | | | | Add -P option from util-linux losetup to scan for partitions. function old new delta losetup_main 449 482 +33 packed_usage 33264 33292 +28 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/0 up/down: 61/0) Total: 61 bytes Signed-off-by: Jack O'Sullivan <jackos1998@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcp: rename client_config to client_data, server_config to server_dataGravatar Denys Vlasenko2019-05-264-188/+188
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc6: Fixed aliasing compilation errorGravatar Martin Lewis2019-05-261-1/+1
| | | | | Signed-off-by: Martin Lewis <martin.lewis.x84@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* shell: move all definitions of strto_arith_t() togetherGravatar Denys Vlasenko2019-05-262-11/+7
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ls: fix SEGV when --color is used and ENABLE_LS_COLOR=nGravatar Denys Vlasenko2019-05-261-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* testsuite: fix bunzip2.tests expectationsGravatar Denys Vlasenko2019-05-261-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* comment fixGravatar Denys Vlasenko2019-05-261-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libarchive: treat one "FIXME: avoid seek", take 2Gravatar Denys Vlasenko2019-05-261-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* dhcp: get rid of last global dataGravatar Denys Vlasenko2019-05-263-80/+82
| | | | | | | | | | | | function old new delta udhcpc_main 2680 2684 +4 state 1 - -1 listen_mode 1 - -1 sockfd 4 - -4 ------------------------------------------------------------------------------ (add/remove: 0/3 grow/shrink: 1/0 up/down: 4/-6) Total: -2 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libarchive: treat one "FIXME: avoid seek"Gravatar Denys Vlasenko2019-05-244-22/+41
| | | | | | | | | | | | function old new delta xmalloc_read_with_initial_buf - 205 +205 setup_transformer_on_fd 154 150 -4 xmalloc_open_zipped_read_close 143 135 -8 xmalloc_read 201 10 -191 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/3 up/down: 205/-203) Total: 2 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* losetup: implement -cGravatar Denys Vlasenko2019-05-231-10/+22
| | | | | | | | | | | function old new delta losetup_main 422 449 +27 packed_usage 33243 33264 +21 get_next_block 1677 1681 +4 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/0 up/down: 52/0) Total: 52 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* dhcp: tweak comments, no code changesGravatar Denys Vlasenko2019-05-231-30/+22
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* bunzip2: the correct condition is "n < groupCount", not "n <= groupCount". ↵Gravatar Denys Vlasenko2019-05-231-1/+1
| | | | | | | | | Closes 11896 function old new delta get_next_block 1677 1681 +4 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ip: use rtnl_send_check() on flush commands, closes 6962Gravatar Denys Vlasenko2019-05-225-17/+65
| | | | | | | | | | | | function old new delta rtnl_send_check - 160 +160 xrtnl_wilddump_request 64 66 +2 ipneigh_list_or_flush 714 706 -8 rtnl_send 69 - -69 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 1/1 up/down: 162/-77) Total: 85 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: slap on a few ALIGN1/2s where appropriateGravatar Denys Vlasenko2019-05-213-5/+5
| | | | | | | | | | The result of looking at "grep -F -B2 '*fill*' busybox_unstripped.map" text data bss dec hex filename 952537 485 7296 960318 ea73e busybox_old 952527 485 7296 960308 ea734 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpd: fix printing of static leasesGravatar Denys Vlasenko2019-05-211-27/+13
| | | | | | | function old new delta read_staticlease 299 282 -17 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: show 's' in $-Gravatar Denys Vlasenko2019-05-191-3/+5
| | | | | | | | | | function old new delta expand_one_var 2362 2375 +13 hush_main 1104 1108 +4 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/0 up/down: 17/0) Total: 17 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: allocate line edit buffer only for interactive shellGravatar Denys Vlasenko2019-05-191-5/+9
| | | | | | | function old new delta builtin_history 16 20 +4 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* shell: implement optional "BASE#nnnn" numeric literalsGravatar Denys Vlasenko2019-05-193-6/+51
| | | | | | | function old new delta evaluate_string 729 851 +122 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: remove test for "echo ${-}" errorring out - now it worksGravatar Denys Vlasenko2019-05-193-4/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: implement $-, set default PATH if it is not set on startupGravatar Denys Vlasenko2019-05-191-5/+26
| | | | | | | | | | | function old new delta expand_one_var 2311 2362 +51 hush_main 1075 1104 +29 parse_dollar 790 791 +1 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/0 up/down: 81/0) Total: 81 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: set default PS1/2 only if we interactiveGravatar Denys Vlasenko2019-05-191-16/+19
| | | | | | | | | | "env - hush SCRIPT" invocation (that is, with empty environment) should not show PS1/2 in "set" output. function old new delta hush_main 1070 1075 +5 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>