aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* avoid calling bb_strtou twice in MIN macro expansionMatt Whitlock2014-03-231-5/+8
| | | | | | | Also, the maximum allowable value of swap priority is technically SWAP_FLAG_PRIO_MASK >> SWAP_FLAG_PRIO_SHIFT. Signed-off-by: Matt Whitlock <busybox@mattwhitlock.name> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ntpd: add optional support for /etc/ntp.confDenys Vlasenko2014-03-232-4/+39
| | | | | | | | | | | | function old new delta add_peers - 98 +98 packed_usage 29470 29511 +41 ntp_init 407 428 +21 pw_encrypt 14 27 +13 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 3/0 up/down: 173/0) Total: 173 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* docs/new-applet-HOWTO.txt: tweak a bitDenys Vlasenko2014-03-171-18/+15
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: fix a bad check for uclibc >= 0.9.31Denys Vlasenko2014-03-161-4/+7
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* docs: update new-applet-HOWTO.txtBartosz Golaszewski2014-03-161-35/+62
| | | | | | | | This patch adds some information about the gen_build_files.sh script and how it allows to keep the Kbuild, Config.in etc. declarations in .c files. Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: make "locak VAR" unset VAR (bash does that)Denys Vlasenko2014-03-163-0/+18
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* script: make it work even if fd 0 is closedDenys Vlasenko2014-03-162-1/+8
| | | | | | | Testcase: script -q -c "echo hey" /dev/null 0>&- Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* build system: for "find", use POSIX not operator (!) instead of -notDenys Vlasenko2014-03-161-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* su: add a delay if the password is incorrectRomain Naour2014-03-161-0/+1
| | | | | Signed-off-by: Romain Naour <romain.naour@openwide.fr> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash,hush: fix a thinko about 2^64-1 factorizationDenys Vlasenko2014-03-151-5/+11
| | | | | | | function old new delta next_random 113 119 +6 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: make "true" built-inDenys Vlasenko2014-03-141-0/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* random: cosmetic tweaks in debug codeDenys Vlasenko2014-03-131-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash,hush: improve randomness of $RANDOM, add easy-ish way to test itDenys Vlasenko2014-03-132-17/+135
| | | | | | | | function old new delta next_random 68 113 +45 change_random 103 121 +18 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* shuf: trim help textDenys Vlasenko2014-03-071-4/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* shuf: do not use strings for -i RANGE caseDenys Vlasenko2014-03-071-3/+5
| | | | | | | function old new delta shuf_main 482 496 +14 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* shuf: improve help textBartosz Golaszewski2014-03-071-3/+3
| | | | | Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* shuf: fix a segfault on 'shuf -e'Bartosz Golaszewski2014-03-071-1/+2
| | | | | Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* use [s]rand(), not [s]random()Denys Vlasenko2014-03-053-12/+12
| | | | | | | | rand() is the most standard C library function, and on uclibc they are the same. I guess they are the same in most todays' libc... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* shuf: new appletDenys Vlasenko2014-03-051-0/+150
| | | | | | | | | | | | | | | function old new delta shuf_main - 478 +478 packed_usage 29571 29719 +148 applet_names 2460 2465 +5 applet_main 1428 1432 +4 applet_nameofs 714 716 +2 ------------------------------------------------------------------------------ (add/remove: 2/0 grow/shrink: 4/0 up/down: 637/0) Total: 637 bytes Based on the code by Bartosz Golaszewski <bartekgola@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* man: default to asciiDenys Vlasenko2014-03-031-1/+2
| | | | | | | | Default to ascii instead of latin1. Otherwise man pages can be displayed incorrectly. E.g. bullets show as "<B7>". Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ip link: add support for "address ETHADDR". Closes 4862Denys Vlasenko2014-03-011-2/+188
| | | | | | | function old new delta do_iplink 2175 2289 +114 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* unlzma: add comments about possible bug from BZ 2689Denys Vlasenko2014-02-281-0/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* unlzma: move some variables in "more local" scopeDenys Vlasenko2014-02-281-7/+10
| | | | | | No code changes as verified by objdump Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc: ignore NAKs from "wrong" servers. Closes 4267Denys Vlasenko2014-02-271-1/+24
| | | | | | | function old new delta udhcpc_main 2716 2814 +98 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ls: make "ls -s DIR" show total too. Clases 4946Denys Vlasenko2014-02-271-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* xargs: fix compilation breakageDenys Vlasenko2014-02-271-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* grep: fix -w match if first match isn't a word, but second is. Closes 4520Denys Vlasenko2014-02-272-14/+21
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* xargs: add support for -I and -i. Closes 493Denys Vlasenko2014-02-274-56/+176
| | | | | | | | | | | | | | | | | | function old new delta process_stdin_with_replace - 195 +195 xmalloc_substitute_string - 145 +145 xargs_main 808 884 +76 count_strstr - 45 +45 packed_usage 29580 29571 -9 parse_params 1445 1416 -29 func_exec 285 138 -147 ------------------------------------------------------------------------------ (add/remove: 4/0 grow/shrink: 1/3 up/down: 461/-185) Total: 276 bytes text data bss dec hex filename 922156 932 17692 940780 e5aec busybox_old 922440 932 17692 941064 e5c08 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* find: code shrinkDenys Vlasenko2014-02-261-5/+3
| | | | | | | function old new delta func_exec 306 285 -21 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* nc: fix option bit positions. Closes 6926Denys Vlasenko2014-02-261-3/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hwclock: fix setting of tz_minuteswest. Closes 5414Denys Vlasenko2014-02-251-2/+10
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* build system: remove a dead link from Config help textDenys Vlasenko2014-02-251-4/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* du, copy_file: fix file matching on cramfs. Closes 5456Denys Vlasenko2014-02-251-4/+15
| | | | | | | | | | | function old new delta is_in_ino_dev_hashtable 88 108 +20 add_to_ino_dev_hashtable 150 142 -8 reset_ino_dev_hashtable 84 75 -9 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/2 up/down: 20/-17) Total: 3 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: trivial code shrinkDenys Vlasenko2014-02-251-6/+11
| | | | | | | function old new delta reset_ino_dev_hashtable 84 74 -10 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sysctl: do not error out showing write-only data. Closes 6386Denys Vlasenko2014-02-241-0/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: fix commentDenys Vlasenko2014-02-241-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: add commented-out code to use ssl_helper instead of opensslDenys Vlasenko2014-02-231-2/+47
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* networking/ssl_helper: experimental matrixssl-based ssl helperDenys Vlasenko2014-02-233-0/+433
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: add support for https using "openssl s_client" as a helperDenys Vlasenko2014-02-221-26/+92
| | | | | | | | | | | | | | | | | www.kernel.org started redirecting http:// to https:// making https support mandatory for any auto build scripts. function old new delta wget_main 2631 2971 +340 parse_url 409 471 +62 .rodata 115607 115626 +19 P_HTTPS - 6 +6 P_HTTP - 5 +5 P_FTP - 4 +4 ------------------------------------------------------------------------------ (add/remove: 3/0 grow/shrink: 3/0 up/down: 436/0) Total: 436 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Improve examples/var_service READMEsDenys Vlasenko2014-02-2113-2/+71
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Kbuild: move CONFIG_PAM to general configurationBartosz Golaszewski2014-02-192-7/+7
| | | | | | | | | | Currently CONFIG_PAM depends on CONFIG_LOGIN, but is used by the httpd applet too. This patch moves said option to general configuration, thus allowing to compile httpd with PAM support independently from login. Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc: fix BPF filter. Hopefully fixes the root cause of 4598 and 6746Denys Vlasenko2014-02-192-4/+5
| | | | | | Use a *signed* large positive value in BPF filter to indicate success. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ifplugd: code shrinkDenys Vlasenko2014-02-101-10/+12
| | | | | | | function old new delta ifplugd_main 1161 1144 -17 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* htpd: trivial simplification in random interval selectionDenys Vlasenko2014-02-091-2/+3
| | | | | | | function old new delta poll_interval 57 52 -5 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: don't die if crypt() returns NULLDenys Vlasenko2014-02-091-1/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sendmail: use FQDN in default envelope senderKaarle Ritvanen2014-02-091-2/+4
| | | | | | | | RFC 5321 requires the return path to be supplied with a proper domain name. Signed-off-by: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc: in comments, explain the kind of raw socket we createDenys Vlasenko2014-02-071-2/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* grep: properly handle grep -w "^str" in !EXTRA_COMPAT case tooBartosz Golaszewski2014-02-072-2/+12
| | | | | | | | function old new delta grep_file 1267 1288 +21 Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sendmail: make -f optional, document its default valueDenys Vlasenko2014-02-051-11/+56
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc: don't use BPF filter, users report problems (bugs 4598, 6746)Denys Vlasenko2014-02-031-47/+46
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>