aboutsummaryrefslogtreecommitdiff
path: root/libbb
AgeCommit message (Collapse)Author
2006-12-24missing piece of prev commit: ndelay_offDenis Vlasenko
2006-12-23use xbind, xconnect where appropriate.Denis Vlasenko
small edits to arping
2006-12-23fix recognitions of -SIGname signalsDenis Vlasenko
(fix by Jacques LUDER <jacques.luder@thalesgroup.com>)
2006-12-23find: fix spurious -exec error messagesDenis Vlasenko
(bug reported by Bernhard Fischer <rep.nop@aon.at>)
2006-12-22tar et al: die if bb_copyfd_size copies less than asked for.Denis Vlasenko
(we have bb_copyfd_exact_size now for that kind of usage)
2006-12-21less: stop dying on bad regexps, quietly pipe data w/oDenis Vlasenko
user interaction if stdout is not a tty. size optimizations
2006-12-21introduce LONE_CHAR (optimized strcmp with one-char string)Denis Vlasenko
2006-12-21less: total cleanup and bugfix.Denis Vlasenko
Doesn't die horribly on binary files anymore. In fact, they _100%_ work now. Control chars are in reverse video, including DEL and that idiocy of VT-10x, Meta-ESC [inventor of which should be prohibited from reproducing]. Regex search is fixed also. When you specify search ('/' key), control chars turn into dots (unhighlighted), and found occurrences highlighted instead. This is reversible. Memory management fixed (was leaky as hell) and optimized. Linewrapping fixed and thoroughly tested. Max buffer size made configurable. ~ 600 bytes saved.
2006-12-20less: somewhat buggy applet, but nice. Muchly reducedDenis Vlasenko
xstrdup'ing and memory consumption. Made linewrap saner. regex matching code was awful - still buggy, but not as leaky as before. Made buffer size configurable. Killed several static and on-stack buffers. Hopefully eliminated staircase effect on Ctrl-C (unable to reproduce).
2006-12-19remove casts from xmalloc()Denis Vlasenko
2006-12-19su: make /etc/shells check configurableDenis Vlasenko
ash: missing ';'
2006-12-18xfuncs.c: dietlibc actually HAS fdprintf!Denis Vlasenko
platform.h: define strchrnul for dietlibc ash: stop using few non-standard functions
2006-12-18nc: add missing castDenis Vlasenko
xfuncs: add dprintf for dietlibc
2006-12-18A bunch of defined(__GLIBC__) added. static-linking warning expandedDenis Vlasenko
2006-12-17start_stop_daemon: fix bug where any program name was "matching"Denis Vlasenko
processes for which readlink(/proc/N/exe) fails
2006-12-16inline strcmp(s, "-") [actually macro-ize it for now - gcc is too stupid]Denis Vlasenko
2006-12-16s/extern inline/static ATTRIBUTE_ALWAYS_INLINE/gDenis Vlasenko
xstrtou: disallow leading '+'
2006-12-16diff: fix -q exit codeDenis Vlasenko
last_char_is: sacrifice 9 bytes but avoid double-scan
2006-12-12build system: small fix for "release" target to workDenis Vlasenko
2006-12-10bb_makedev: fix for glibc 2.3.2Denis Vlasenko
sed: fix C++ style declaration
2006-12-04- cosmetic change to avoid warnings about eventual padding/packing.Bernhard Reutner-Fischer
2006-12-02sed: improve handling of NULsDenis Vlasenko
2006-12-01passwd: made smaller by ~130 bytes. size can go negativeDenis Vlasenko
if current trend will continue ;)
2006-11-30passwd: small size optimization. salt generation improvedDenis Vlasenko
(really generated different salts even if called back-to-back).
2006-11-30passwd: rework:Denis Vlasenko
* do not make backup copy by copying (just retain old file) * correctly fall back to /etc/passwd if user is not in shadow * fix bug with overlong passwd entries * be permissive on some kinds of failures * reduce stack usage * code size: -500 bytes
2006-11-29cut 0.5k off mkfs.minixDenis Vlasenko
assorted strtoul fixes (that's what brought me into minix)...
2006-11-28fix bug in new str -> num convertorsDenis Vlasenko
2006-11-27erase_mtab: do not limit ourself to 40 mtab entriesDenis Vlasenko
2006-11-27style cleanup: return(a) -> return a, part 2Denis Vlasenko
2006-11-27style cleanup: return(a) -> return a, part 1Denis Vlasenko
2006-11-27svn add bb_strtonum.c :(Denis Vlasenko
2006-11-27safe_strtoXX interface proved to be a bit unconvenient.Denis Vlasenko
Remove it, introduce saner bb_strtoXX. Saved ~350 bytes.
2006-11-26Closing bug 730. libbb run_parts is using scandir (a GNUism),Denis Vlasenko
and it is used only by run_parts applet, so move it there. Also saved ~30 bytes (prolly gcc autoinlining...).
2006-11-26small fixes:Denis Vlasenko
fix xstrdup to not grossly overallocate memory use xopen instean of xopen3 in several places etc.
2006-11-25tee: fix bug: argv[-1] is a no-no!Denis Vlasenko
bb_full_fd_action: optimize die_if_ferror: "<applet>: filename" isn't a good err msg, add "..I/O error"
2006-11-25small improvements in str -> num convertorsDenis Vlasenko
2006-11-25regularize str -> num convertorsDenis Vlasenko
2006-11-24small optimizationDenis Vlasenko
2006-11-24tar: fix multiple -t and/or -v options handling.Denis Vlasenko
do not process list of files to tar up in reverse order.
2006-11-24tar: sanitize option handlingDenis Vlasenko
2006-11-24tar: fix and sanitize handling of long filenames/linknamesDenis Vlasenko
(GNU extensions 'K' and 'L'). We correctly handle them when untarring now, but unfortunately we still don't use them when tarring! That stupid 100 char limit is still there! The biggest problem is that we don't support 'pax' tar format. Linux kernel tarballs are in this format... shame
2006-11-24hunt down improper include <>, make mkswap output 4Gb+ friendlyDenis Vlasenko
2006-11-24svn add makedev.c. Forgot as usual... :(Denis Vlasenko
2006-11-24tar: small fixes:Denis Vlasenko
* size-optimize mapping code * kill double close
2006-11-24tar: cache [ug]id->username/groupname mappings. Cuts down amountDenis Vlasenko
of open/read/close of /etc/passwd and /etc/group dramatically (we were rereading those for each untarred file!!!)
2006-11-24tar: cry murder and bail out if file shrinks under us while we tar it upDenis Vlasenko
2006-11-24glibc makedev() is a large inline. Save 700+ bytes by wrapping itDenis Vlasenko
into a function.
2006-11-24tar:Denis Vlasenko
* unpack: handle tar header fields which are not NUL terminated * pack: handle 4+GB files correctly * pack: refuse to store 101+ softlinks (was truncating link target name) * pack: mask mode with 07777
2006-11-22introduce setsockopt_reuseaddr(int fd), setsockopt_broadcast(int fd),Denis Vlasenko
use them where appropriate. 200 bytes saved
2006-11-22fix double mergeDenis Vlasenko