PATH: add /user so that programs installed with gokrazy are found

This commit is contained in:
Michael Stapelberg 2022-03-31 19:33:58 +02:00
parent 0a14bc7f0c
commit 087335e682

2
ssh.go
View File

@ -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
}