projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e1715f
)
fix which-uses-default-path
author
Denis Vlasenko
<vda.linux@googlemail.com>
Sun, 28 Jan 2007 15:31:19 +0000
(15:31 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Sun, 28 Jan 2007 15:31:19 +0000
(15:31 -0000)
debianutils/which.c
patch
|
blob
|
history
diff --git
a/debianutils/which.c
b/debianutils/which.c
index a715a2664409cddd0bba1c8aa68af19e437c8fec..79b2a4f830c76cbf5a55562be0be207699dc5123 100644
(file)
--- a/
debianutils/which.c
+++ b/
debianutils/which.c
@@
-21,6
+21,10
@@
int which_main(int argc, char **argv)
bb_show_usage();
}
+ if (!getenv("PATH")) {
+ setenv("PATH", "/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin", 1);
+ }
+
while (--argc > 0) {
argv++;
if (strchr(*argv, '/')) {