aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* uname: fix up usage documentationMike Frysinger2014-01-311-4/+6
| | | | | | | The -i/-o options were missing, and the -r/-s/-v options were incorrectly labeled as "OS" instead of "kernel". Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* init: do not fail build if SIGPWR is not definedMichael Tokarev2014-01-301-0/+2
| | | | | | | | | Apparently, some *BSD variants (and maybe some other OSes) does not define SIGPWR signal. So since commit 760fc6debcba8c, busybox fails to build on such platforms. Fix this. Signed-off-by: Michael Tokarev <mjt@tls.msk.ru> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: open_zipped() should not fail on non-compressed filesDenys Vlasenko2014-01-271-1/+10
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* testsuite: fix last "which" changeMichael Tokarev2014-01-231-1/+1
| | | | | | | | | | | | | In commit afa63b2dcdc9b9 I replaced `type -p' with `command -pv'. But actually it is wrong, the right substitution is `command -v'. We need to find our busybox which is in the first directory in $PATH, so `command -p' should not be used because it uses default PATH, not current value of PATH where our busybox binary resides. Signed-off-by: Michael Tokarev <mjt@tls.msk.ru> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* less: accept and ignore -sDenys Vlasenko2014-01-221-6/+11
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* man: parse "DEFINE pager" in configJohn Spencer2014-01-221-7/+15
| | | | | | | | function old new delta man_main 789 844 +55 Signed-off-by: John Spencer <maillist-busybox@barfooze.de> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* iplink: fix build with kernel versions prior to 2.6.23Eugene Rudoy2014-01-221-0/+10
| | | | | Signed-off-by: Eugene Rudoy <gene.devel@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: if opening /dev/loopN returns ENXIO, don't try N++.Denys Vlasenko2014-01-211-6/+12
| | | | | | | function old new delta set_loop 639 635 -4 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: fix parsing of "10101010" date/time formDenys Vlasenko2014-01-211-4/+12
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* top.c: fix compilation warningsBartosz Golaszewski2014-01-201-5/+0
| | | | | | | pfd[1] is unused Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ntpd: remove now unnecessary check for IP_PKTINFO definitionDenys Vlasenko2014-01-202-6/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ntpd: fix compilation warningsBartosz Golaszewski2014-01-201-0/+4
| | | | | | | GCC complained about since_last_update being set but not used. Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sort: check global flags on fallback sortBartosz Golaszewski2014-01-192-5/+6
| | | | | | | | | | | Sort now performs global reverse on fallback sort if -r is set. Before only key local flags were checked. function old new delta compare_keys 712 738 +26 Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sort.c: remove a magic number from compare_keys()Bartosz Golaszewski2014-01-191-1/+1
| | | | | | | Use bitwise OR of proper flags instead. Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* gitignore: ignore files generated by 'make test'Bartosz Golaszewski2014-01-191-0/+6
| | | | | Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* adduser,addgroup: introduce and use CONFIG_LAST_IDTito Ragusa2014-01-173-21/+27
| | | | | | | | | | | Changes adduser.c, addgroup.c and Config.src to set and use CONFIG_LAST_ID. function old new delta adduser_main 841 865 +24 addgroup_main 407 425 +18 Signed-off-by: Tito Ragusa <farmatito@tiscali.it> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* examples/udhcp: do not rewrite resolv.conf if no DNS servers. Closes 6788Denys Vlasenko2014-01-132-14/+22
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* docs: tweak keep_data_small.txtDenys Vlasenko2014-01-131-1/+9
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: tighten up pax header validity checkDenys Vlasenko2014-01-101-1/+3
| | | | | | | function old new delta get_header_tar 1785 1795 +10 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fakeidentd: simplify ndelay manipulationsDenys Vlasenko2014-01-101-10/+9
| | | | | | | | function old new delta new_peer 91 79 -12 do_rd 197 152 -45 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tail: adjust help/usage textsCristian Ionescu-Idbohrn2014-01-102-5/+5
| | | | | Signed-off-by: Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* lineedit: fix trivial build failureDenys Vlasenko2014-01-101-0/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libarchive: open_zipped() does not need to check extensions for e.g. gzipDenys Vlasenko2014-01-101-12/+11
| | | | | | | | | 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>
* build system: fix non-portable sed constructs.Matthias Andree2014-01-101-2/+12
| | | | | | | | This includes proper line breaks for labels and closing braces, and removing non-portable \n and \t in s/// functions. Signed-off-by: Matthias Andree <matthias.andree@gmx.de> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fixlet for the previous commit #2Denys Vlasenko2014-01-091-4/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fixlet for the previous commitDenys Vlasenko2014-01-091-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* networking: explain isrv_run() APIDenys Vlasenko2014-01-091-1/+26
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fakeidentd: fix use-after-freeRyan Mallon2014-01-091-13/+12
| | | | | | | | function old new delta do_rd 199 197 -2 Signed-off-by: Ryan Mallon <rmallon@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* chown: fix help textDenys Vlasenko2014-01-091-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* find: fix a regression introduced with -HLP supportDenys Vlasenko2014-01-092-1/+42
| | | | | | | function old new delta find_main 294 342 +48 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ping: revert "try SOCK_DGRAM if no root privileges"Denys Vlasenko2014-01-091-16/+3
| | | | | | | It wasn't working, and fixes on top of it would make ping noticeably larger. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* build system: "make hosttools" doesn't exist, remove it from "make help"Denys Vlasenko2014-01-091-4/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* build system: stop including alloca.h, stdlib.h provides itDenys Vlasenko2014-01-092-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ntpd: adjust last packet's recv time after a stepDenys Vlasenko2014-01-081-0/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: FreeBSD fix for B<num> baud rate constants not fitting into a short.Denys Vlasenko2014-01-081-0/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Another FreeBSD fix from Matthias AndreeDenys Vlasenko2014-01-081-3/+12
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: in bash compat mode, always export $SHLVLDenys Vlasenko2014-01-071-1/+1
| | | | | | | function old new delta ash_main 1437 1442 +5 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* grep: fix two bugs with -wDenys Vlasenko2014-01-072-3/+37
| | | | | | | | | Unfortunately, with !EXTRA_COMPAT, "grep -w ^str" still erroneously matches "strstr". function old new delta grep_file 1499 1510 +11 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* platform.h: undef HAVE_STRCHRNUL only on correct versions of FreeBSDDenys Vlasenko2014-01-071-5/+12
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Start 1.23.0 development cycleDenys Vlasenko2014-01-011-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* 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>