aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* libbb: make xchroot do a chdir("/") after chrootDenys Vlasenko2012-03-086-8/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* build system: fix broken CONFIG_SYSROOT handlingDenys Vlasenko2012-03-081-1/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Add SYSROOT, EXTRA_{LDFLAGS,LDLIBS} config opts; sample Android NDK configRob Walker2012-03-073-0/+1058
| | | | | Signed-off-by: Rob Walker <rwalker@rwalker.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* printf: fix this case: printf "%b" '\0057usr\0057bin\n'Denys Vlasenko2012-03-071-2/+17
| | | | | | | | | It was not accepting \0NNN. Standard printf tool does. function old new delta printf_main 869 886 +17 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* printf: trim help textDenys Vlasenko2012-03-071-4/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ntpd: tweak log messages formatDenys Vlasenko2012-03-061-4/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* testsuite: add a test that tar detects XZ-compressed dataDenys Vlasenko2012-03-061-0/+19
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix trivial bug in unpack_gz_stream (wrong fd used in read)Denys Vlasenko2012-03-061-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Don't compile get_header_tar_FOO function if they are not neededDenys Vlasenko2012-03-061-5/+8
| | | | | | | Now get_header_tar_gz, get_header_tar_bz2, get_header_tar_lzma are only used if dpkg is built. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar,rpm2cpio: check that child decompressor did not error outDenys Vlasenko2012-03-064-59/+41
| | | | | | | | | | | | | function old new delta check_errors_in_children - 57 +57 tar_main 833 848 +15 get_header_tar 1720 1733 +13 rpm2cpio_main 147 140 -7 handle_SIGCHLD 41 - -41 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 2/1 up/down: 85/-48) Total: 37 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Move seamless .Z support into unpack_gz_streamDenys Vlasenko2012-03-063-25/+21
| | | | | | | unpack_gz_stream 566 643 +77 unpack_gunzip 123 12 -111 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* update seamless uncompression codeDenys Vlasenko2012-03-0621-312/+233
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change makes "tar tf hello_world.txz" work without adding special-casing for ".txz" extension. It also removes ever-growing magic checking code in rpm2cpio and get_header_tar - we reuse one which lives in setup_unzip_on_fd. function old new delta unpack_gz_stream 7 566 +559 check_signature16 - 70 +70 setup_unzip_on_fd 99 142 +43 handle_SIGCHLD - 41 +41 unpack_bz2_stream 342 376 +34 unzip_main 2352 2385 +33 bbunpack 503 533 +30 open_transformer 74 102 +28 unpack_Z_stream 1278 1304 +26 unpack_gunzip 101 123 +22 init_transformer_aux_data - 18 +18 unpack_xz_stream 2388 2402 +14 open_zipped 131 141 +10 rpm_main 1358 1363 +5 get_header_tar_lzma 52 57 +5 get_header_tar_bz2 52 57 +5 unpack_lzma_stream 2698 2702 +4 hash_find 234 233 -1 get_header_tar 1759 1733 -26 get_header_tar_gz 92 57 -35 unpack_uncompress 51 12 -39 rpm2cpio_main 201 147 -54 unpack_unxz 67 12 -55 unpack_bz2_stream_prime 55 - -55 get_header_tar_Z 86 - -86 unpack_gz_stream_with_info 539 - -539 ------------------------------------------------------------------------------ (add/remove: 3/3 grow/shrink: 14/6 up/down: 947/-890) Total: 57 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* archival/libarchive/decompress_unzip.c -> decompress_gunzip.c. no code changesDenys Vlasenko2012-03-063-6/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* preparatory cleanups for seamless uncompression improvementsDenys Vlasenko2012-03-066-179/+187
| | | | | | | | | | | | unpack_gz_stream_with_info: fix buggy error check man: fix possible accesses past the end of a string move seamless uncompression helpers from read_printf.c to open_transformer.c function old new delta show_manpage 153 212 +59 unpack_gz_stream_with_info 520 539 +19 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ssd: compat: match -x EXECUTABLE by /proc/pid/exe tooDenys Vlasenko2012-03-051-3/+14
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* uudecode: tweak help textDenys Vlasenko2012-03-051-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* uuencode: tweak help textDenys Vlasenko2012-03-051-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ntpd: fix a case when discipline_jitter = 0 if we stepDenys Vlasenko2012-03-051-17/+13
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* cp: trim help textDenys Vlasenko2012-03-051-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* du: trim help text a bit moreDenys Vlasenko2012-03-051-7/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* du: remove stray whitespace in help textDenys Vlasenko2012-03-051-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ntpd: experimental code to correct frequency a bit more aggressivelyDenys Vlasenko2012-03-051-23/+29
| | | | | | | | function old new delta update_local_clock 730 792 +62 recv_and_process_peer_pkt 850 835 -15 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* blkid: if parameters are given, do not scan /devDenys Vlasenko2012-03-033-14/+17
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ntpd: fix the "are we a server" check in previous commitDenys Vlasenko2012-03-031-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ntpd: avoid printing messages between send and recv. good for fast networksDenys Vlasenko2012-03-031-7/+30
| | | | | | | function old new delta ntpd_main 887 929 +42 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ntpd: log clock drift with three digits after decimal pointDenys Vlasenko2012-03-021-2/+2
| | | | | | +15 bytes. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ntpd: log jitter on update too; increase assumed clock precision x2 - to 2msDenys Vlasenko2012-03-021-17/+28
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* date: extend help text to explain compat date format. Closes 4820Denys Vlasenko2012-03-011-0/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fbsplash: use line_length instead of xres * bytes_per_pixelYin Kangkai2012-02-291-8/+8
| | | | | | | | | | | | | | | In some system (e.g. my "strange" device), line_length is not equal xres * bytes_per_pixel, so we need to use line_length in scr_fix to mmap and draw rectangle etc. My "strange" device output this: bytes_per_pixel: 4 xres: 600, yres: 1024 yoffset: 0, xoffset: 0, line_length: 2432 G.addr: b74da000 Signed-off-by: Yin Kangkai <kangkai.yin@intel.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb/procps.c: make fast_strtoul_10() stop on '\n' tooDenys Vlasenko2012-02-281-4/+5
| | | | | | This time for real :) Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* grep: support for -x, match whole lineNatanael Copa2012-02-281-3/+9
| | | | | | | | Specified in POSIX. http://pubs.opengroup.org/onlinepubs/009604499/utilities/grep.html Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb/procps.c: make fast_strtoul_10() stop on '\n' tooDenys Vlasenko2012-02-281-1/+2
| | | | | | This is needed for parsing /proc data on linux 2.4 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* du: use long long for size fieldIan Wienand2012-02-281-5/+5
| | | | | | | | | | | | | | | | du has issues with files reporting large block counts on 32-bit systems with 4 byte longs. From looking at the stat.c code, it seems the preference is to use 'long long', rather than blkcnt_t. function old new delta du 420 444 +24 du_main 317 321 +4 print 43 41 -2 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/1 up/down: 28/-2) Total: 26 bytes Signed-off-by: Ian Wienand <ianw@vmware.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ntpd: fix offset adjustment after step; better step printingDenys Vlasenko2012-02-281-17/+23
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ntpd: increase OPT_qq constant to not collide with -LDenys Vlasenko2012-02-231-14/+14
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: add support for PAX-encoded path=LONGFILENAMEDenys Vlasenko2012-02-234-44/+46
| | | | | | | function old new delta get_header_tar 1478 1759 +281 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkdir: fix permissions on 64-bit platformsTimo Teras2012-02-231-3/+4
| | | | | | | | | sizeof(long) != sizeof(mode_t), this causes the compare in bb_make_directory of (long)-1 != (mode_t)-1 to fail and mess up the permissions of final directory by doing chmod((mode_t) -1). Signed-off-by: Timo Teras <timo.teras@iki.fi> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ifupdown: support metric for static default gwNatanael Copa2012-02-191-4/+4
| | | | | | | | | | | | | | | | | | | This is useful when you have multiple ISPs with failover. It allows setting the priority of the static gateway and makes it possible to specify multiple static gateways. The ubuntu ifupdown supports it. function old new delta .rodata 116725 116797 +72 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/0 up/down: 72/0) Total: 72 bytes text data bss dec hex filename 953343 7313 8984 969640 ecba8 busybox_old 953415 7313 8984 969712 ecbf0 busybox_unstripped Signed-off-by: Natanael Copa <natanael.copa@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* httpd: make byte ranges which start at 0 work too. Closes 4766Denys Vlasenko2012-02-191-6/+7
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* modprobe-small: add comment about aliased commands' help textDenys Vlasenko2012-02-191-0/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* depmod: supply help textLauri Kasanen2012-02-191-9/+18
| | | | | Signed-off-by: Lauri Kasanen <curaga@operamail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getopt: trim help textDenys Vlasenko2012-02-091-2/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* applets_sh/*: Add a few more examples of "shell applets"Pere Orga2012-02-094-0/+22
| | | | | Signed-off-by: Pere Orga <gotrunks@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getopt: simple code shrink; expand help textDenys Vlasenko2012-02-091-16/+36
| | | | | | | | function old new delta packed_usage 28978 29184 +206 getopt_main 656 632 -24 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Make unix (local) sockets work without IPv6 enabledJonh Wendell2012-02-092-12/+9
| | | | | | | | | | | | | | | | | The xsocket_type() function had an optional "family" argument that was enabled only if IPv6 is enabled. In the case of the function was called with a valid AF_UNIX argument, and IPv6 is disabled, this argument was silently ignored. This patch makes the "family" argument mandatory, while keeping the old behavior i.e., if AF_UNSPEC is passed, we try first IPv6 (if it's enabled) and fallback to IPv4. Also I changed all callers of xsocket_type() to reflect its new interface. Signed-off-by: Jonh Wendell <jonh.wendell@vexcorp.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mdev: add a comment. no code changesDenys Vlasenko2012-02-061-1/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* acpid: do not install handlers for fatal signalsDenys Vlasenko2012-02-051-2/+6
| | | | | | For acpid, it's ok to die at once. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* cttyhack: handle multiple consoles found in sysfsAaro Koskinen2012-02-041-3/+10
| | | | | | | | | | | | If multiple consoles are found from the sysfs file, cttyhack fails: cttyhack: can't open '/dev/tty0 ttyS0': No such file or directory In such cases take the last one as the kernel will use that one for /dev/console. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* httpd: fix sendfile of files larger than 2 Gb. Closes 4754Denys Vlasenko2012-02-041-1/+1
| | | | | | | | When built with "sendfile" support, httpd was unable to send large files (>2 GB) in one single connection, terminating it before the full file has been sent. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tweak comment, no code changesDenys Vlasenko2012-02-021-3/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>