OSDN Git Service
(root)
/
android-x86
/
external-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
a715a26
..
79b2a4f
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, '/')) {