include /usr/local/bin in $PATH
related to https://github.com/gokrazy/gokrazy/issues/124
This commit is contained in:
parent
629a19f92d
commit
5a97592967
2
ssh.go
2
ssh.go
@ -163,7 +163,7 @@ func expandPath(env []string) []string {
|
|||||||
found = true
|
found = true
|
||||||
}
|
}
|
||||||
if !found {
|
if !found {
|
||||||
const busyboxDefaultPATH = "/sbin:/usr/sbin:/bin:/usr/bin"
|
const busyboxDefaultPATH = "/usr/local/sbin:/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin"
|
||||||
env = append(env, fmt.Sprintf("PATH=%s:/user:%s", pwd, busyboxDefaultPATH))
|
env = append(env, fmt.Sprintf("PATH=%s:/user:%s", pwd, busyboxDefaultPATH))
|
||||||
}
|
}
|
||||||
return env
|
return env
|
||||||
|
Loading…
x
Reference in New Issue
Block a user