diff options
Diffstat (limited to 'debianutils/which.c')
-rw-r--r-- | debianutils/which.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/debianutils/which.c b/debianutils/which.c index 2c71ed32d..b556a9fd9 100644 --- a/debianutils/which.c +++ b/debianutils/which.c | |||
@@ -22,9 +22,11 @@ int which_main(int argc, char **argv) | |||
22 | bb_show_usage(); | 22 | bb_show_usage(); |
23 | } | 23 | } |
24 | 24 | ||
25 | /* We shouldn't do this. Ever. Not our business. | ||
25 | if (!getenv("PATH")) { | 26 | if (!getenv("PATH")) { |
26 | setenv("PATH", "/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin", 1); | 27 | putenv((char*)bb_PATH_root_path); |
27 | } | 28 | } |
29 | */ | ||
28 | 30 | ||
29 | while (--argc > 0) { | 31 | while (--argc > 0) { |
30 | argv++; | 32 | argv++; |