aboutsummaryrefslogtreecommitdiff
path: root/libbb
AgeCommit message (Collapse)Author
2007-01-22- the archivers expect mode to be a mode_t, so do not trip signed/unsigned ↵Bernhard Reutner-Fischer
conversion purposefully
2007-01-22- sed -i -e "/\$Id:/d;"Bernhard Reutner-Fischer
2007-01-22cleanups: unnecessary casts, unified const_1, eliminate cross-.c fileDenis Vlasenko
prototypes (heresy!), add spaces in places like "flags&NETSTAT_CONNECTED", removed unused #defines, #ifdef -> #if, use uint32_t for ipv4 addrs.
2007-01-22exterminate u_intXXX.Denis Vlasenko
fix ping6 buglet (memset is too short), minor sync between ping and ping6
2007-01-22comment out unused old networking API partsDenis Vlasenko
sockaddr2dotted: return IPV6 addrs in [addr]:port form (was addr:port)
2007-01-22move shell/cmdedit.c -> libbb/lineedit.cDenis Vlasenko
2007-01-22cmdedit is not a 'command' editing anymore, it's just editing (generic),Denis Vlasenko
so rename stuff accordingly.
2007-01-21Introduce FEATURE_EXEC_PREFER_APPLETS = "re-execute our ownDenis Vlasenko
executable if we asked to exec someting with argv[0] == known_applet" Use it in init. Also respect PATH in init, remove explicit "/sbin" etc from exec. Patch by Gabriel L. Somlo <somlo@cmu.edu>
2007-01-20- get_terminal_width_height does not and should never write to fd. Cosmetic ↵Bernhard Reutner-Fischer
Precaution
2007-01-19strdup -> xstrdupDenis Vlasenko
sed: de-obfuscate piece of code
2007-01-19ls: use get_cached_username/groupnameDenis Vlasenko
2007-01-19openvt,getty,vfork_daemon_rexec,mount: tighten up fd cleanup codeDenis Vlasenko
(will close all fd's > 2 on daemonization now) getty: fix "getty -" support, and also do not try to chown/chmod "-" telnetd: fix "lost ctty" bug Yet another attempt on saner function names: bb_sanitize_server_stdio(0/1) -> bb_sanitize_stdio() + bb_daemonize();
2007-01-17sed,get_line_from_file: improve commentsDenis Vlasenko
2007-01-14Rename bb_sanitize_stdio -> bb_sanitize_server_stdioDenis Vlasenko
(name is still bad - it doesn't hint that function may do daemonization trick for you if asked to). Small fixes to fakeidentd.
2007-01-14By popular request reinstate fakeidentd's standalone mode.Denis Vlasenko
Since this is also needed for other applets like telnetd, introduce generic driver for such things. It even supports inetd-wait ('linger') mode, when inetd hands out listen socket to child and waits to it to die, instead of handing out accepted socket and continuing listening itself (nowait mode). Code growth ~200 bytes. NB: our inetd doesn't support wait mode yet (or mabe it is buggy).
2007-01-13small fixes to ipv6 infrastructureDenis Vlasenko
2007-01-12random small size optimizationsDenis Vlasenko
2007-01-12next part of ipv6-ization. mostly netcat.Denis Vlasenko
2007-01-12next part of ipv6-ization is here: wget & httpdDenis Vlasenko
2007-01-11Trailing whitespace removal over entire treeDenis Vlasenko
2007-01-11ipv6-ization efforts continue. Few bugs are found,Denis Vlasenko
unknown number likely introduced...
2007-01-10a bit more IPv6-ization workDenis Vlasenko
syslogd: converted to use it (in -R host:port)
2007-01-10Improve generic ipv4+ipv6 support in libbb.Denis Vlasenko
Convert telnet to it. Now this works: telnetd -b [::1]:1234 - bind to IPv6 non-standard port telnet [::1]:1234 - connect to IPv6 non-standard port telnet ::1 1234 - same This does not require ANY ipv6-specific code in applets (no struct sockaddr_in6. In fact, no sockaddr_in, too).
2007-01-04new libbb func: xmalloc_realpath (+ use it where makes sense)Denis Vlasenko
syslogd, logread: add debugging code (disabled) syslogs: drastically smaller bss; fix "-C n" behaviour
2007-01-03convert calloc to xzallocDenis Vlasenko
fix sleep-on-die option
2006-12-30about.html: update maintainer nameDenis Vlasenko
libbb/Kbuild: less needs xregcomp.o
2006-12-30next bunch of fixes for bugs found by randconfigDenis Vlasenko
2006-12-28bb_xget[pw/gr]nam were horribly misnamed - fixed.Denis Vlasenko
uidgid_get -> get_uidgid, add additional param (numeric_ok). Make chown use it. chown: fix "chown user: ...." install: fix incorrect use of bb_xget[pw/gr]nam
2006-12-26merge post-1.3.0 fixesDenis Vlasenko
2006-12-26style fixesDenis Vlasenko
last xcalloc replaced by xzalloc
2006-12-26chattr: bugfixes and size reductionDenis Vlasenko
2006-12-26leftover of e2fsck surgeryDenis Vlasenko
2006-12-24small stupid changes. no code changesDenis Vlasenko
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 '+'