summaryrefslogtreecommitdiff
path: root/which.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Change 'printf("%s\n", ...)' into 'puts(...)'. Noted and patched in hostname.cMatt Kraai2001-05-161-1/+1
| | | | by Larry Doolittle.
* A bug fix from Vladimir for a memory leak I stupidlyEric Andersen2001-05-071-2/+2
| | | | added to which.c.
* Larry suggested using concat_path_file() would be an even safer betEric Andersen2001-05-041-4/+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
* Fix a buffer overflow. Which accounted for the size of the path, plus the theEric Andersen2001-05-041-1/+1
| | | | | | '/', plus the size of the test command. It did not account for the terminating NULL, which overwrote the end of the string. -Erik
* Patch from Jeff Garzik marking a few 'getopt not needed' apps.Eric Andersen2001-03-091-0/+1
|
* It turns out that DODMALLOC was broken when I reorganized busybox.hEric Andersen2001-02-201-1/+1
| | | | | | header file usage before the 0.49 release. To fix it, I had to move the '#include "busybox.h"' to the end of the list of #include files. -Erik
* This patch, put together by Manuel Novoa III, is a merge of workEric Andersen2001-02-141-1/+1
| | | | | | done by Evin Robertson (bug#1105) and work from Manuel to make usage messages occupy less space and simplify how usage messages are displayed.
* Fix up copyright msgs. Bump version to 0.49 in preparation for0_49Eric Andersen2001-01-271-1/+1
| | | | | a release. Update the website with release details. -Erik
* Fix header file usage -- there were many unnecessary header files included inEric Andersen2001-01-271-0/+2
| | | | | | | busybox.h which slowed compiles. I left only what was needed and then fixed up all the apps to include their own header files. I also fixed naming for pwd.h and grp.h functions. Tested to compile and run with libc5, glibc, and uClibc. -Erik
* Fixed return status (thanks to David Douthitt for the fix).Matt Kraai2000-11-181-2/+6
|
* Renamed "internal.h" to the more sensible "busybox.h".Eric Andersen2000-09-251-1/+1
| | | | -Erik
* Path count was out by one, fixed itGlenn L McGrath2000-09-181-1/+1
|
* Simplify and remove dependence on PATH_MAXGlenn L McGrath2000-09-181-31/+12
| | | | | | buf[PATH_MAX] now defined using strlen to the exact size to be used. removed output that was displayed if which didnt find the command, this makes itmatch the behaviour of GNU's which. These modifications result in a slight size decrease.
* Fix calls to {m,c,re}alloc so that they use x{m,c,re}alloc instead ofMatt Kraai2000-09-131-1/+1
| | | | segfaulting or handling errors the same way themselves.
* Some #include updates.Eric Andersen2000-08-101-1/+0
| | | | -Erik
* Extract usage information into a separate file.Matt Kraai2000-07-161-7/+0
|
* Don't use strings directly in calls to usage(). This is in preparationMatt Kraai2000-07-141-7/+8
| | | | for their extraction to a separate file.
* Updates to a number of apps to remove warnings/compile errors under libc5.Eric Andersen2000-06-191-1/+1
| | | | | Tested under both libc5 and libc6 and all seems well with these fixes. -Erik
* "which" rewritten to use stat(). Fixes to improve its compatabilityPavel Roskin2000-06-051-18/+45
| | | | with traditional implementations
* More libc portability updates, add in the website (which has not beenErik Andersen2000-05-191-0/+73
archived previously). Wrote 'which' during the meeting today. -Erik