PATH: add /user so that programs installed with gokrazy are found
This commit is contained in:
parent
0a14bc7f0c
commit
087335e682
2
ssh.go
2
ssh.go
@ -164,7 +164,7 @@ func expandPath(env []string) []string {
|
||||
}
|
||||
if !found {
|
||||
const busyboxDefaultPATH = "/sbin:/usr/sbin:/bin:/usr/bin"
|
||||
env = append(env, fmt.Sprintf("PATH=%s:%s", pwd, busyboxDefaultPATH))
|
||||
env = append(env, fmt.Sprintf("PATH=%s:/user:%s", pwd, busyboxDefaultPATH))
|
||||
}
|
||||
return env
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user