mirror of
https://github.com/sheumann/hush.git
synced 2025-01-03 00:31:16 +00:00
fix which-uses-default-path
This commit is contained in:
parent
4e1715f4b9
commit
9d938732d0
@ -21,6 +21,10 @@ int which_main(int argc, char **argv)
|
|||||||
bb_show_usage();
|
bb_show_usage();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!getenv("PATH")) {
|
||||||
|
setenv("PATH", "/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin", 1);
|
||||||
|
}
|
||||||
|
|
||||||
while (--argc > 0) {
|
while (--argc > 0) {
|
||||||
argv++;
|
argv++;
|
||||||
if (strchr(*argv, '/')) {
|
if (strchr(*argv, '/')) {
|
||||||
|
Loading…
Reference in New Issue
Block a user