X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=debianutils%2Fwhich.c;h=b556a9fd96392f5f5c96a691909b91405295be98;hb=ebeaea04dc2b2e75048262355fbfb970e5c92595;hp=79b2a4f830c76cbf5a55562be0be207699dc5123;hpb=9d938732d0e613d97e59e37f8c251f945e0350ae;p=oweals%2Fbusybox.git diff --git a/debianutils/which.c b/debianutils/which.c index 79b2a4f83..b556a9fd9 100644 --- a/debianutils/which.c +++ b/debianutils/which.c @@ -10,8 +10,9 @@ * Based on which from debianutils */ -#include "busybox.h" +#include "libbb.h" +int which_main(int argc, char **argv); int which_main(int argc, char **argv) { int status = EXIT_SUCCESS; @@ -21,9 +22,11 @@ int which_main(int argc, char **argv) bb_show_usage(); } +/* We shouldn't do this. Ever. Not our business. if (!getenv("PATH")) { - setenv("PATH", "/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin", 1); + putenv((char*)bb_PATH_root_path); } +*/ while (--argc > 0) { argv++;