aboutsummaryrefslogtreecommitdiff
path: root/libbb (follow)
Commit message (Collapse)AuthorAgeFilesLines
* - Forgot to cvs add bb_asprintf.c (from vodz' patch #50)sandman2002-07-192-3/+91
| | | | | | | | | | | | | - Applied Joel Coltoff's xconnect patch: On both my host system and with mipsel-linux for my embedded systems the function getservbyname() gives the port number already in host order. In fact, this is how it was used by rdate in version 0.60.3. The snapshot I have of the development tree from July 12, 2002 takes the port number and stuffs it into htons() before it uses it. This causes bugs in rdate, telnet and wget. This patch fixes that. git-svn-id: svn://busybox.net/trunk/busybox@5070 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Applied vodz' patches #49 and #50 (with a small correction in runshell.c)sandman2002-07-195-8/+6
| | | | | | | | | | | | #49: I found one memory overflow and memory leak in "ln" applet. Last patch reduced also 54 bytes. ;) #50: I found bug in loginutils/Makefile.in. New patch have also new function to libbb and aplied this to applets and other cosmetic changes. git-svn-id: svn://busybox.net/trunk/busybox@5066 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Brad Campbell <brad@seme.com.au> notes thatandersen2002-07-111-1/+2
| | | | | | | | xconnect.c needs #include <netinet/in.h> to compile if CONFIG_FEATURE_IPV6 is not defined git-svn-id: svn://busybox.net/trunk/busybox@5041 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Scrub pwd.h and grp.h handling so we don't have to play anyandersen2002-07-035-10/+10
| | | | | | | | silly games. -Erik git-svn-id: svn://busybox.net/trunk/busybox@5011 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A patch from Bart Visscher <magick@linux-fan.com> to add anandersen2002-07-031-0/+78
| | | | | | | | | | | | xconnect helper routine which does: -address and port resolving -tries to connect to all resolved addresses until connected -uses getaddrinfo, so works for IPv6 too This patch also ports rdate, telnet, and wget to use the new xconnect function. Thanks Bart! git-svn-id: svn://busybox.net/trunk/busybox@5004 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This patch from Bart Visscher <magick@linux-fan.com> addsandersen2002-07-035-7/+238
| | | | | | | | | | | | | | | | | | IPV6 support to busybox. This patch does the following: * Add IPv6 support to libbb * Enable IPv6 interface address display * Add IPv6 config option * Adds ping6, an adaptation of the ping applet for IPv6 * Adds support routines for ping6: - xgethostbyname2 - create_icmp6_socket * Adds ifconfig support for IPv6 * Add support IPv6 to netstat * Add IPv6 support to route Thanks Bart! git-svn-id: svn://busybox.net/trunk/busybox@5003 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Cleanup shadow.h stuff so it behaves as intendedandersen2002-07-031-1/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@4990 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove advertising clauses in accordance withaaronl2002-06-231-5/+1
| | | | | | | ftp://ftp.cs.berkeley.edu/ucb/4bsd/README.Impt.License.Change git-svn-id: svn://busybox.net/trunk/busybox@4971 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Needs shadow.h; otherwise wont compile without CONFIG_USE_BB_SHADOWaaronl2002-06-231-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@4969 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Port over the last of the tinylogin appletsandersen2002-06-2311-3/+791
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@4961 69ca8d6d-28ef-0310-b511-8ec308f3f277
* * libbb/copy_file.c (copy_file): Check st_dev instead of st_rdev.kraai2002-06-111-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@4882 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Gyepi SAM <gyepi@praxis-sw.com>:andersen2002-06-061-2/+7
| | | | | | | | | When DEBUG is defined 1. need to include resolv.h (for _resinit()) 2. remove _() call around string. It appears to be a remnant of i18n or some such notion git-svn-id: svn://busybox.net/trunk/busybox@4864 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix for broken handling off BusyBox's own pwd/grp implementationssandman2002-06-045-5/+5
| | | | | | | [Parts of this patch may overlap with my other two patches] git-svn-id: svn://busybox.net/trunk/busybox@4856 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Support old-style compress (.Z) files via libbb / unzip( ) callssandman2002-05-191-0/+313
| | | | | | | | | (configurable) - When enabled an applet "uncompress" is also made available (oddname to gunzip) [the cvs add for this file got lost somehow...] git-svn-id: svn://busybox.net/trunk/busybox@4784 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Support old-style compress (.Z) files via libbb / unzip( ) callssandman2002-05-152-2/+18
| | | | | | | | (configurable) - When enabled an applet "uncompress" is also made available (oddname to gunzip) git-svn-id: svn://busybox.net/trunk/busybox@4778 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Silly meandersen2002-04-131-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@4617 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Stupid gcc always includes its own builtin strlen()...andersen2002-04-131-0/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@4608 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Completely rework the config system so that it no longer annoys me to work onandersen2002-04-122-48/+74
| | | | | | | | | | the busybox development tree. This eliminates the use of recursive make, and once again allows us to run 'make' in a subdirectory with the expected result. And things are now much faster too. Greatly improved IMHO... -Erik git-svn-id: svn://busybox.net/trunk/busybox@4595 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix devfs loop device supportandersen2002-03-201-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@4447 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Reinitialize initial shift register value for on each pass.andersen2002-03-201-1/+3
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@4436 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Cleanup a libc5 compatibility hackandersen2002-03-122-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@4359 69ca8d6d-28ef-0310-b511-8ec308f3f277
* * libbb/xfuncs.c (xmalloc, xcalloc): Do not exit if a zero-length buffer iskraai2002-02-261-16/+5
| | | | | | | | requested. (xrealloc): Simplify. git-svn-id: svn://busybox.net/trunk/busybox@4296 69ca8d6d-28ef-0310-b511-8ec308f3f277
* chomp should only remove the newline if it occurs at the end of the input.kraai2002-01-021-3/+5
| | | | | | | | | This was caught by the test suite (in sed/sed-aic-commands). * libbb/chomp.c: Revert to revision 1.5. git-svn-id: svn://busybox.net/trunk/busybox@3992 69ca8d6d-28ef-0310-b511-8ec308f3f277
* unzip applet by Laurence Andersonbug12002-01-021-25/+23
| | | | | | | ---------------------------------------------------------------------- git-svn-id: svn://busybox.net/trunk/busybox@3988 69ca8d6d-28ef-0310-b511-8ec308f3f277
* optimize this a little bit.andersen2001-12-291-5/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3964 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove `== TRUE' tests and convert `!= TRUE' and `== FALSE' tests to use !.kraai2001-12-203-12/+12
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3925 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Make cp and mv optionally preserve hard links.kraai2001-12-173-2/+31
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3894 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Open the source before creating the destination.kraai2001-12-111-8/+11
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3882 69ca8d6d-28ef-0310-b511-8ec308f3f277
* If find_pid_by_name() had an error, it was returning -1, but storingandersen2001-12-061-21/+9
| | | | | | | | | | | that into a pid_t, which is unsigned on a number archs. Furthermore, find_pid_by_name() would _never_ return an error if the intended proces was "init", but instead would return 1, meaning we would fail to work on 2.4.x kernels running an initrd... -Erik git-svn-id: svn://busybox.net/trunk/busybox@3854 69ca8d6d-28ef-0310-b511-8ec308f3f277
* More copyright and email addr cleanupsandersen2001-12-064-9/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3843 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Silly cosmetic problem in the commentandersen2001-12-061-1/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3840 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Commit my improvement on Rodney Brown's patch to g(un)zip, decreasingaaronl2001-12-061-26/+29
| | | | | | | binary size. git-svn-id: svn://busybox.net/trunk/busybox@3831 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Simplify unzip(), remove unused checks and unneccessary variablesbug12001-12-051-51/+27
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3830 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Simplify CRC table generationbug12001-12-051-11/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3829 69ca8d6d-28ef-0310-b511-8ec308f3f277
* New version to cut size. Includes optional basename() compatibility, butmjn32001-12-051-36/+27
| | | | | | | enabling that would break the basename applet at least for one corner case. git-svn-id: svn://busybox.net/trunk/busybox@3825 69ca8d6d-28ef-0310-b511-8ec308f3f277
* gunzip was incorrectly reporting a failed crc and length (discovered bybug12001-11-291-0/+8
| | | | | | | | Chang, Shu-Hao). The bitbuffer needs to be unwound after decompression, as it was eating into the crc/size field. git-svn-id: svn://busybox.net/trunk/busybox@3815 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Treat NUL as the end-of-line.kraai2001-11-201-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3756 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove unnecessary errno handling.kraai2001-11-121-5/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3669 69ca8d6d-28ef-0310-b511-8ec308f3f277
* I forgot to add these. Part of the patch from vodzandersen2001-11-101-0/+174
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3650 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Latest patch from vodz:andersen2001-11-102-193/+8
| | | | | | | | | | -- reverse resolve network name and cache in route and ifconfig applets, fix print nslookup server name if compile without uClibc, fix route crashe 'route add', fix warnings compile networking and pwd_grp applets git-svn-id: svn://busybox.net/trunk/busybox@3645 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Introduce od and hexdump appletsbug12001-11-022-1/+864
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3625 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Be extra pedantic about printing the correct type for an addressandersen2001-10-271-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3593 69ca8d6d-28ef-0310-b511-8ec308f3f277
* rEcover from my previous commitbug12001-10-251-7/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3586 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Move libbb/unarchive functions to ./archival/libunarchivebug12001-10-251-627/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3584 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Modify applets to use libunarchivebug12001-10-251-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3582 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Major rework of the directory structure and the entire build system.andersen2001-10-2461-720/+331
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@3561 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Accomodate older glibc, which also lacks the module syscallsandersen2001-10-241-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3560 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Return NULL if EOF is encountered before terminating_string.kraai2001-10-181-10/+7
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3545 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Revert that change. As Matt Kraai rightly points out,andersen2001-10-181-1/+1
| | | | | | | | this is not a bug. What I was I thinking when I committed this. Doh! git-svn-id: svn://busybox.net/trunk/busybox@3542 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Scrub up some function prototypes.andersen2001-10-183-7/+5
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@3540 69ca8d6d-28ef-0310-b511-8ec308f3f277