httpd: emit correct content length on range requests past the end. Closes 4952Signed-off-by: Rob Walker <rwalker@codeaurora.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
bloat-o-meter: Remove unused codeThe regex matching is way slower, so remove it since it was disabled
anyway.
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
bloat-o-meter: handle huge (hex) sizes.dynamic symbols with size >99999 are printed in hex.
see print_vma(psym->st_size, DEC_5)
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
printf: fix this case: printf "%b" '\0057usr\0057bin\n'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>
Don't compile get_header_tar_FOO function if they are not neededNow 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>
update seamless uncompression codeThis 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 ...
preparatory cleanups for seamless uncompression improvementsunpack_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 +1...
ntpd: experimental code to correct frequency a bit more aggressivelyfunction 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>
ntpd: avoid printing messages between send and recv. good for fast networksfunction old new delta
ntpd_main 887 929 +42
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
fbsplash: use line_length instead of xres * bytes_per_pixelIn 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@googl...
grep: support for -x, match whole lineSpecified 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' tooThis is needed for parsing /proc data on linux 2.4
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>