aboutsummaryrefslogtreecommitdiff
path: root/libbb (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Patch from Stefan Soucek <ssoucek@coactive.com> toandersen2001-10-181-1/+1
| | | | | | | ignore extra empty lines in fgets_str git-svn-id: svn://busybox.net/trunk/busybox@3536 69ca8d6d-28ef-0310-b511-8ec308f3f277
* unarchive function changed to support both exclude and include lists, ↵bug12001-10-132-19/+20
| | | | | | applets that use unarchive changed to match. git-svn-id: svn://busybox.net/trunk/busybox@3516 69ca8d6d-28ef-0310-b511-8ec308f3f277
* match exclude/include names with trailing '/'bug12001-10-131-2/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3513 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use fnmatch() to compare excluded/included filesbug12001-10-131-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3512 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Cleanup memory usage properlybug12001-10-081-3/+7
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3501 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Free some variables after usebug12001-10-081-0/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3500 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Invert FILEUTILS_PRESERVE_SYMLINKS into FILEUTILS_DEREFERENCE.kraai2001-10-052-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3489 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix BB_FEATURE_MTAB_SUPPORT test (report and patch by Magnus Damm).kraai2001-10-041-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3487 69ca8d6d-28ef-0310-b511-8ec308f3f277
* List full path instead of relative path if prefix is specified (this was ↵bug12001-09-241-1/+1
| | | | | | supposed to be in last patch) git-svn-id: svn://busybox.net/trunk/busybox@3432 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Commit my changes to arith.c which fixed a couple of bugs and decreasedmjn32001-09-111-143/+253
| | | | | | | | code size. Please read the TODO comments regarding accessing shell variables from the arith() funciton. git-svn-id: svn://busybox.net/trunk/busybox@3410 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use the correct buffer when calling dirname, improve an error message, andkraai2001-08-281-2/+5
| | | | | | | plug some memory leaks. Patch by Laurence Anderson. git-svn-id: svn://busybox.net/trunk/busybox@3375 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Eliminate improper consts and allow standard version to override.kraai2001-08-242-3/+7
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3352 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Canonicalize dirname(3) behavior.kraai2001-08-243-9/+17
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3350 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix a memory leak if parent directory creation failed.kraai2001-08-241-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3349 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add #include <sys/param.h> to ensure PATH_MAX is definedandersen2001-08-221-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3333 69ca8d6d-28ef-0310-b511-8ec308f3f277
* dfp might be used uninitialized. NULL it.andersen2001-08-211-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3323 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Rewritten by Manuel Novoa III.kraai2001-08-141-39/+28
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3283 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Commit Vladimir's simplify_path.kraai2001-08-102-0/+79
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3240 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix exclude list handlingbug12001-08-041-7/+18
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3210 69ca8d6d-28ef-0310-b511-8ec308f3f277
* More libc5 fixupsandersen2001-08-022-9/+77
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@3195 69ca8d6d-28ef-0310-b511-8ec308f3f277