aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Bump version to 1.22.01_22_0Denys Vlasenko2014-01-011-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* testsuite: remove forgotten debug hackDenys Vlasenko2013-12-311-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix failures found by randomconfig buildsDenys Vlasenko2013-12-317-13/+34
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* testsuite: disable tests for no longer supported bbox-specific date formatsDenys Vlasenko2013-12-312-6/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* adduser: check whether run with no USERNAME. Closes 6728Denys Vlasenko2013-12-201-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* testsuite: fix false positives for duDenys Vlasenko2013-12-202-0/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* build system: fix make gconfigDaniel Borca2013-12-191-1/+1
| | | | | | | 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>
* sed: accept s///i as a synonym for s///I ("ignore case")David A. Wheeler2013-12-181-1/+2
| | | | | Signed-off-by: David A. Wheeler <dwheeler@dwheeler.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hostname: do not use gethostbyname() for "hostname -s"Michael Tokarev2013-12-171-2/+5
| | | | | | | | | | | | | | | | | | | | 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>
* wget: user-friendly fallback to httpLauri Kasanen2013-12-171-5/+12
| | | | | | | | | | | 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>
* kill[all[5]]: code shrinkDenys Vlasenko2013-12-161-20/+18
| | | | | | | function old new delta kill_main 992 947 -45 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* killall5: return 2 if no processes got killedUros Vampl2013-12-161-1/+4
| | | | | | | function old new delta kill_main 943 992 +49 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* do not fail build if MAXSYMLINKS isn't definedMichael Tokarev2013-12-161-0/+6
| | | | | | | 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>
* expand: use printable_string instead of hard-coding implementationMichael Tokarev2013-12-161-10/+3
| | | | | | | | 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>
* ntpd: speed up resyncing if our clock is seriously offDenys Vlasenko2013-12-081-7/+39
| | | | | | | function old new delta recv_and_process_peer_pkt 892 922 +30 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ntpd: do not invalidate datapoints after stepDenys Vlasenko2013-12-071-2/+14
| | | | | | | | | | | | | | | | | | 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>
* ntpd: comment out "spike detection" codeDenys Vlasenko2013-12-041-4/+9
| | | | | | | function old new delta update_local_clock 982 835 -147 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ntpd: promote log level 3 to productionDenys Vlasenko2013-12-041-45/+54
| | | | | | | | | | | | | | | | 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>
* ntpd: let user know if spike was detectedDenys Vlasenko2013-12-041-4/+7
| | | | | | | function old new delta update_local_clock 861 943 +82 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Use unsigned printf/scanf conversion where more appropriateDenys Vlasenko2013-11-2918-37/+37
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix assorted unused code and wrong format specs found by cppchekc (bug 6716)Denys Vlasenko2013-11-2920-39/+25
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* chpst: fix a bug where -U USER was using wrong USER (one from -u USER)Denys Vlasenko2013-11-292-5/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ping: try SOCK_DGRAM if no root privilegesDaniel Borca2013-11-281-3/+16
| | | | | Signed-off-by: Daniel Borca <dborca@yahoo.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* dpkg-deb: cosmetic correction to usage textDaniel Borca2013-11-281-1/+1
| | | | | Signed-off-by: Daniel Borca <dborca@yahoo.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sed: code shrinkDenys Vlasenko2013-11-281-28/+21
| | | | | | | | | | | 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>
* sed: open input files sequentially to avoid EMFILEDenys Vlasenko2013-11-282-27/+36
| | | | | | | | | | | | | | | 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>
* hush: typo fixes in commentsDenys Vlasenko2013-11-281-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* platform: strchrnul is missing if __APPLE__Daniel Borca2013-11-271-1/+1
| | | | | Signed-off-by: Daniel Borca <dborca@yahoo.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* build system: use od -b instead of od -t x1Denys Vlasenko2013-11-262-8/+8
| | | | | | od -t is not available in non-CONFIG_DESKTOPed busybox od Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* init: halt on SIGPWR tooBogdan Purcareata2013-11-261-3/+4
| | | | | | | | | | | | 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>
* libbb: add sketch of tentative 'better' passwd/group APIDenys Vlasenko2013-11-261-0/+48
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* devfsd: remove static variableDenys Vlasenko2013-11-261-9/+11
| | | | | | | | | | 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>
* build system: do not generate MAX_APPLET_NAME_LEN (unused)Denys Vlasenko2013-11-261-5/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* logread: don't call shmdt() before exit, kernel does it for us.Denys Vlasenko2013-11-261-4/+9
| | | | | | | | | | | 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>
* logread: flush output. closes 6710Denys Vlasenko2013-11-261-0/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* awk: fix a bug in argc counting in recent changeDenys Vlasenko2013-11-212-9/+21
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* rfkill: use new-style config/kbuild/appletDenys Vlasenko2013-11-204-14/+17
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: prevent empty file to be treated as valid tarballDenys Vlasenko2013-11-192-3/+35
| | | | | | | function old new delta tar_main 879 895 +16 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix a copy/paste error in last tar testcase nameDenys Vlasenko2013-11-191-2/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: add a testcase for previous commitDenys Vlasenko2013-11-191-0/+12
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: fix exitcode check for MMU-spawned unpacking helpersDenys Vlasenko2013-11-192-9/+10
| | | | | | | | | | 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>
* libbb: move nuke_str() from passwd into libbbDenys Vlasenko2013-11-194-10/+15
| | | | | | | | | | | | 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>
* comment tweakDenys Vlasenko2013-11-191-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sulogin: use common password-checking routine.Denys Vlasenko2013-11-196-47/+26
| | | | | | | | | | | | | | | | 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>
* archival/*: move "config:" snippets into .c filesDenys Vlasenko2013-11-1413-353/+349
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* archival/*: move "applet:" snippets into .c files, part 2Denys Vlasenko2013-11-144-8/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* archival/*: move "applet:" snippets into .c filesDenys Vlasenko2013-11-1412-20/+15
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* archival/*: move "kbuild:" snippets into .c filesDenys Vlasenko2013-11-1413-26/+35
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* switch editors/* to embedded-in-source kbuild systemDenys Vlasenko2013-11-137-53/+61
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* awk: optionally support -e AWK_PROGSven-Göran Bergh2013-11-124-42/+84
| | | | | | | | 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>