which: fix testsuite failure

pidof: do not output empty line if nothing found
testsuite: disable false positive
This commit is contained in:
Denis Vlasenko
2007-11-25 04:54:13 +00:00
parent 72e76044cf
commit 6446c2d4ab
5 changed files with 13 additions and 8 deletions

View File

@ -22,11 +22,11 @@ int which_main(int argc, char **argv)
bb_show_usage();
}
/* We shouldn't do this. Ever. Not our business.
/* This matches what is seen on e.g. ubuntu
* "which" there is a shell script */
if (!getenv("PATH")) {
putenv((char*)bb_PATH_root_path);
}
*/
while (--argc > 0) {
argv++;