commit:     4db7e4be4eb444afc5c074bed7b68dcfc8954c3f
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 20 22:03:17 2018 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Tue Jun 26 08:18:50 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4db7e4be

net-misc/openssh: send & accept COLORTERM env var #658540

For terminal emulators that set this variable, pass it along.

Url: https://gist.github.com/XVilka/8346728
Bug: https://bugs.gentoo.org/658540

 net-misc/openssh/openssh-7.7_p1-r102.ebuild | 6 ++++++
 net-misc/openssh/openssh-7.7_p1-r6.ebuild   | 6 ++++++
 2 files changed, 12 insertions(+)

diff --git a/net-misc/openssh/openssh-7.7_p1-r102.ebuild 
b/net-misc/openssh/openssh-7.7_p1-r102.ebuild
index 5bea8702b07..c4747a2597e 100644
--- a/net-misc/openssh/openssh-7.7_p1-r102.ebuild
+++ b/net-misc/openssh/openssh-7.7_p1-r102.ebuild
@@ -345,6 +345,9 @@ tweak_ssh_configs() {
 
        # Allow client to pass locale environment variables. #367017
        AcceptEnv ${locale_vars[*]}
+
+       # Allow client to pass COLORTERM to match TERM. #658540
+       AcceptEnv COLORTERM
        EOF
 
        # Then the client config.
@@ -352,6 +355,9 @@ tweak_ssh_configs() {
 
        # Send locale environment variables. #367017
        SendEnv ${locale_vars[*]}
+
+       # Send COLORTERM to match TERM. #658540
+       SendEnv COLORTERM
        EOF
 
        if use pam ; then

diff --git a/net-misc/openssh/openssh-7.7_p1-r6.ebuild 
b/net-misc/openssh/openssh-7.7_p1-r6.ebuild
index 3e0ed629bbc..a8c8b20d4c2 100644
--- a/net-misc/openssh/openssh-7.7_p1-r6.ebuild
+++ b/net-misc/openssh/openssh-7.7_p1-r6.ebuild
@@ -345,6 +345,9 @@ tweak_ssh_configs() {
 
        # Allow client to pass locale environment variables. #367017
        AcceptEnv ${locale_vars[*]}
+
+       # Allow client to pass COLORTERM to match TERM. #658540
+       AcceptEnv COLORTERM
        EOF
 
        # Then the client config.
@@ -352,6 +355,9 @@ tweak_ssh_configs() {
 
        # Send locale environment variables. #367017
        SendEnv ${locale_vars[*]}
+
+       # Send COLORTERM to match TERM. #658540
+       SendEnv COLORTERM
        EOF
 
        if use pam ; then

Reply via email to