explicitly set TMPDIR
programs such as podman will otherwise default to /var/tmp (see https://github.com/containers/podman/pull/5412/files) related to https://github.com/gokrazy/gokrazy/issues/124
This commit is contained in:
parent
5a97592967
commit
564a0eceaf
4
ssh.go
4
ssh.go
@ -315,7 +315,9 @@ func (s *session) request(ctx context.Context, req *ssh.Request) error {
|
||||
}
|
||||
log.Printf("Starting cmd %q", cmd.Args)
|
||||
env := expandPath(s.env)
|
||||
env = append(env, "HOME=/perm/home")
|
||||
env = append(env,
|
||||
"HOME=/perm/home",
|
||||
"TMPDIR=/tmp")
|
||||
cmd.Env = env
|
||||
cmd.SysProcAttr = &syscall.SysProcAttr{}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user