aboutsummaryrefslogtreecommitdiff
path: root/findutils/which.c
AgeCommit message (Collapse)Author
2002-01-14Do not segfault if PATH is unset.Matt Kraai
2001-10-24Major rework of the directory structure and the entire build system.Eric Andersen
-Erik
2001-05-16Change 'printf("%s\n", ...)' into 'puts(...)'. Noted and patched in hostname.cMatt Kraai
by Larry Doolittle.
2001-05-07A bug fix from Vladimir for a memory leak I stupidlyEric Andersen
added to which.c.
2001-05-04Larry suggested using concat_path_file() would be an even safer betEric Andersen
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
2001-05-04Fix a buffer overflow. Which accounted for the size of the path, plus the theEric Andersen
'/', plus the size of the test command. It did not account for the terminating NULL, which overwrote the end of the string. -Erik
2001-03-09Patch from Jeff Garzik marking a few 'getopt not needed' apps.Eric Andersen
2001-02-20It turns out that DODMALLOC was broken when I reorganized busybox.hEric Andersen
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
2001-02-14This patch, put together by Manuel Novoa III, is a merge of workEric Andersen
done by Evin Robertson (bug#1105) and work from Manuel to make usage messages occupy less space and simplify how usage messages are displayed.
2001-01-27Fix up copyright msgs. Bump version to 0.49 in preparation forEric Andersen
a release. Update the website with release details. -Erik
2001-01-27Fix header file usage -- there were many unnecessary header files included inEric Andersen
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
2000-11-18Fixed return status (thanks to David Douthitt for the fix).Matt Kraai
2000-09-25Renamed "internal.h" to the more sensible "busybox.h".Eric Andersen
-Erik
2000-09-18Path count was out by one, fixed itGlenn L McGrath
2000-09-18Simplify and remove dependence on PATH_MAXGlenn L McGrath
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.
2000-09-13Fix calls to {m,c,re}alloc so that they use x{m,c,re}alloc instead ofMatt Kraai
segfaulting or handling errors the same way themselves.
2000-08-10Some #include updates.Eric Andersen
-Erik
2000-07-16Extract usage information into a separate file.Matt Kraai
2000-07-14Don't use strings directly in calls to usage(). This is in preparationMatt Kraai
for their extraction to a separate file.
2000-06-19Updates to a number of apps to remove warnings/compile errors under libc5.Eric Andersen
Tested under both libc5 and libc6 and all seems well with these fixes. -Erik
2000-06-05"which" rewritten to use stat(). Fixes to improve its compatabilityPavel Roskin
with traditional implementations
2000-05-19More libc portability updates, add in the website (which has not beenErik Andersen
archived previously). Wrote 'which' during the meeting today. -Erik