openssh: Fix sshd env setup
authorFredrik Fornwall <fredrik@fornwall.net>
Sun, 26 Jun 2016 21:56:11 +0000 (17:56 -0400)
committerFredrik Fornwall <fredrik@fornwall.net>
Sun, 26 Jun 2016 21:56:11 +0000 (17:56 -0400)
commitdd9da8b3ad5cbc7d92fbeee836ae21acd9bd5e85
treea0a38d4de2c5660cea9123e566df6a52af473430
parentf0c703ce5fdeb438755bfa89fed718072c37c668
openssh: Fix sshd env setup

The previous patched session.c just took the existing environment
and kept it. The new copies over a few specific variables needed
but otherwise does the normal setup.

Fixes #341 (TERM being ignored).
Fixes #290 (SSH_CONNECTION/SSH_CLIENT/SSH_TTY not setup).
Fixes https://github.com/termux/termux-app/issues/108 (SSH agent
forwarding not working).
packages/openssh/build.sh
packages/openssh/session_c_tmpdir.patch