From 7edb3deecb08ff096297122c256199fca504454c Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Mon, 27 Jun 2016 10:51:42 -0400 Subject: [PATCH] openssh: Retain LANG in sshd (closes #343) --- packages/openssh/build.sh | 2 +- packages/openssh/session_c_tmpdir.patch | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/openssh/build.sh b/packages/openssh/build.sh index 0e1dd3334..9cf735921 100755 --- a/packages/openssh/build.sh +++ b/packages/openssh/build.sh @@ -1,7 +1,7 @@ TERMUX_PKG_HOMEPAGE=http://www.openssh.com/ TERMUX_PKG_DESCRIPTION="Secure shell for logging into a remote machine" TERMUX_PKG_VERSION=7.2p2 -TERMUX_PKG_BUILD_REVISION=5 +TERMUX_PKG_BUILD_REVISION=6 TERMUX_PKG_SRCURL=http://ftp.eu.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_DEPENDS="libandroid-support, ldns, openssl" # --disable-strip to prevent host "install" command to use "-s", which won't work for target binaries: diff --git a/packages/openssh/session_c_tmpdir.patch b/packages/openssh/session_c_tmpdir.patch index 28f841b5f..7cdff260e 100644 --- a/packages/openssh/session_c_tmpdir.patch +++ b/packages/openssh/session_c_tmpdir.patch @@ -24,7 +24,7 @@ diff -u -r ../openssh-7.2p2/session.c ./session.c child_set_env(&env, &envsize, "TZ", getenv("TZ")); +#ifdef __ANDROID__ -+ char const* envs_to_keep[] = {"LD_LIBRARY_PATH", "PATH", "ANDROID_ROOT", "ANDROID_DATA", "EXTERNAL_STORAGE"}; ++ char const* envs_to_keep[] = {"LD_LIBRARY_PATH", "PATH", "ANDROID_ROOT", "ANDROID_DATA", "EXTERNAL_STORAGE", "LANG"}; + for (i = 0; i < (sizeof(envs_to_keep) / sizeof(envs_to_keep[0])); i++) { + char const* env_to_keep_name = envs_to_keep[i]; + char const* env_to_keep_value = getenv(env_to_keep_name);