Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Avoid a segfault (detected by Fabio Ferrari | Eric Andersen | 2001-07-07 | 2 | -3/+9 |
| | | | | | | <fabio.ferrari@digitro.com.br> in the wget applet) when concat_path_file() or last_char_is() were fed a NULL. -Erik | ||||
* | Removed obsolete function, strdup_substr. | Matt Kraai | 2001-07-05 | 3 | -39/+1 |
| | |||||
* | Fix a stupid thinko, and fix killall to cope with the updated | Eric Andersen | 2001-07-05 | 1 | -0/+2 |
| | | | | | find_pid_by_name() interface -Erik | ||||
* | Implement suggestion from Adam Slattery, (don't default to killing closing ↵ | Eric Andersen | 2001-07-05 | 1 | -3/+16 |
| | | | | bug #1190. | ||||
* | Generalize comment -- no longer ls specific | Eric Andersen | 2001-06-30 | 1 | -4/+3 |
| | |||||
* | All-integer version (but it does use an unsigned long long) which fixes | Manuel Novoa III | 2001-06-30 | 1 | -47/+70 |
| | | | | | | the problems of the previous version (used floating point, overflowed, didn't round properly). The comments at the top of the file are worth reading; especially note 2 concerning "ls -sh". | ||||
* | Add some missing includes to kill warnings when building with the default | Manuel Novoa III | 2001-06-29 | 8 | -0/+10 |
| | | | | | | | Config.h and using gcc's -fno-builtin. There are probably other files with the similar problems. Also, if building against uClibc, don't include asm/unistd.h in syscalls.c and module_syscalls.c. | ||||
* | Allow xrealloc to act as a free() when size=0, per SuS2. | Eric Andersen | 2001-06-28 | 1 | -1/+11 |
| | | | | -Erik | ||||
* | Fix a type promotion bug discivered and analyzed by Alan Modra | Eric Andersen | 2001-06-27 | 1 | -1/+1 |
| | | | | <amodra@bigpond.net.au>, which caused false checksum errors | ||||
* | Make it so we don't segfault when /proc isn't mounted -- guess pid 1... | Eric Andersen | 2001-06-26 | 1 | -0/+9 |
| | | | | -Erik | ||||
* | Don't use void * to pass pointers of known type | Eric Andersen | 2001-06-26 | 2 | -24/+23 |
| | |||||
* | Vladimir's last_patch_15 | Glenn L McGrath | 2001-06-26 | 1 | -1/+5 |
| | |||||
* | Nore unarchive (and doc) fixes from Laurence Anderson | Glenn L McGrath | 2001-06-24 | 2 | -10/+16 |
| | |||||
* | cpio applet, and changes to associated code | Glenn L McGrath | 2001-06-22 | 1 | -15/+70 |
| | |||||
* | Remove obsolete function declaration. | Matt Kraai | 2001-06-22 | 1 | -1/+0 |
| | |||||
* | stdlib.h defined free(), which this needs | Eric Andersen | 2001-06-22 | 1 | -0/+1 |
| | |||||
* | Fix the build process so it does not do the evil #ifdef BB_FOO stuff. | Eric Andersen | 2001-06-22 | 1 | -4/+21 |
| | | | | | | Build exactly one .o file per function, and let the linker throw away the junk it doesn't want. -Erik | ||||
* | Add in a missing header file | Eric Andersen | 2001-06-22 | 1 | -0/+2 |
| | |||||
* | Dont change date or chmod on symlinks, lchown on symlinks if lchown available | Glenn L McGrath | 2001-06-22 | 1 | -6/+16 |
| | |||||
* | remove defines around unarchive, its always used | Glenn L McGrath | 2001-06-22 | 1 | -2/+0 |
| | |||||
* | comment cleanup | Tim Riker | 2001-06-22 | 1 | -2/+1 |
| | |||||
* | create_path -> make_directory | Tim Riker | 2001-06-22 | 1 | -1/+1 |
| | |||||
* | Rewrote mkdir (and touched lots of things in the process). | Matt Kraai | 2001-06-21 | 5 | -71/+150 |
| | |||||
* | Reorganise unarchiving functions, more code re-use, only does single pass(no ↵ | Glenn L McGrath | 2001-06-20 | 10 | -623/+518 |
| | | | | | | more linked lists), basis for supporting a cpio (and cheaper untar) applet, but cpio applet isnt included in this. It effects ar, dpkg-deb applets only | ||||
* | With a bit of care I was able to save about 100 bytes. | Eric Andersen | 2001-06-15 | 1 | -2/+15 |
| | | | | -Erik | ||||
* | This isnt used anymore, replaced by seek_sub_file() in ./libbb/deb_extract.c | Glenn L McGrath | 2001-06-15 | 1 | -17/+0 |
| | |||||
* | I reworked make_human_readable_str so it now has a sane interface, | Eric Andersen | 2001-06-13 | 2 | -23/+27 |
| | | | | | | and then fixed up df, du, and ls to use the new interface. I also fixed up some formatting issues in ls while I was in there. -Erik | ||||
* | Reorganise unarchive functions, new files, removed some | Glenn L McGrath | 2001-06-13 | 8 | -263/+416 |
| | |||||
* | Reorganise archive extraction code | Glenn L McGrath | 2001-06-13 | 3 | -68/+94 |
| | |||||
* | Copy files until EOF, not the reported file size, to deal with bad sizes in | Matt Kraai | 2001-06-11 | 2 | -30/+39 |
| | | | | the proc filesystem. | ||||
* | Add padding to struct sysinfo needed by m68k (note and patch by Richard | Matt Kraai | 2001-06-08 | 1 | -0/+1 |
| | | | | Hirst). | ||||
* | Vladimir's last_patch13, containing several bugfixes. | Eric Andersen | 2001-06-01 | 3 | -51/+71 |
| | |||||
* | Patch from larry to fix some grammar errors. | Eric Andersen | 2001-05-23 | 1 | -1/+1 |
| | |||||
* | Make more robust (patch by Larry Doolittle). | Matt Kraai | 2001-05-23 | 1 | -5/+11 |
| | |||||
* | Rewrote copyfd to use library functions, terminate, and copy correct data. | Matt Kraai | 2001-05-18 | 2 | -25/+17 |
| | |||||
* | Switch from hstrerror to herror for libc5 systems. | Matt Kraai | 2001-05-17 | 1 | -3/+2 |
| | |||||
* | Add missing include, noted by Larry Doolittle. | Matt Kraai | 2001-05-16 | 1 | -0/+2 |
| | |||||
* | Add xgethostbyname and herror_msg* functions. | Matt Kraai | 2001-05-16 | 5 | -0/+188 |
| | |||||
* | This patch from Adam Heath <doogie@debian.org>, makes print_file | Eric Andersen | 2001-05-15 | 3 | -5/+70 |
| | | | | (used by cat, grep, sed, etc) quite a bit faster. | ||||
* | Patch from Vladimir: | Eric Andersen | 2001-05-15 | 5 | -24/+20 |
| | | | | | | | 1) fixed a bug that could crash df, mount, and umount applets if the root device name was longer then the word "root" (/dev/loop1 vs /dev/root) - 2) severl functions needed static declaration in the umount applet 3) update declaration for function in last_char_is() in libbb | ||||
* | Per suggestion from Vladimir, eliminate check_wildcard_match(), which | Eric Andersen | 2001-05-14 | 2 | -142/+0 |
| | | | | | | | | | | | was only being used by insmod these days. Also, I spent a minute adjusting insmod so that it first searches /lib/modules/`uname -r` and then (if that fails) searches /lib/modules, which makes bb insmod behave much more like the real insmod, and should avoid nasty surprises (such as the recent "Modutils vs. Busybox..." thread). -Erik | ||||
* | Fix a segfault in lash, hush, and cmdedit. Each of these used | Eric Andersen | 2001-05-11 | 2 | -0/+4 |
| | | | | | | xgetcwd, but did not check the return for a NULL, and then continued to call strlen on the NULL when the cwd had been removed from under it. -Erik | ||||
* | Fix symlink removal problem noted by Erik Andersen. | Matt Kraai | 2001-05-11 | 1 | -1/+2 |
| | |||||
* | This syncs things with Vladimir's latest patches. Also gets | Eric Andersen | 2001-05-07 | 1 | -4/+4 |
| | | | | | rid of useless 'const int' declarations. -Erik | ||||
* | This is Vladimir's update to last_char_is(). Since 'char *' is | Eric Andersen | 2001-05-07 | 1 | -4/+7 |
| | | | | | the least common denominator, I modified it to use that (not const), which will minimize the need for casting elsewhere. | ||||
* | A patch from Vladimir to simplify chomp() | Eric Andersen | 2001-05-07 | 1 | -7/+4 |
| | |||||
* | A patch from Vladimir to simplify concat_path_file() and | Eric Andersen | 2001-05-07 | 1 | -11/+7 |
| | | | | make it less likely to break. | ||||
* | Per some comments from Lars Kellogg-Stedman <lars@larsshack.org>, | Eric Andersen | 2001-05-07 | 1 | -3/+6 |
| | | | | | | make xreadlink() return NULL on failure, and make sure everyone uses the interface correctly. -Erik | ||||
* | include libbb.h after other includes | Glenn L McGrath | 2001-05-05 | 1 | -3/+2 |
| | |||||
* | Larry suggested using concat_path_file() would be an even safer bet | Eric Andersen | 2001-05-04 | 1 | -1/+3 |
| | | | | | | | for 'which'. I ageed, so I whipped this up -- which revealed a bug in concat_path_file. It turns out that that a '/' can be appended from either the path _or_ the filename, but only the former was checked. -Erik |