This is an automated email from the git hooks/post-receive script. x2go pushed a change to branch release/4.0.1.x in repository x2goserver. from 0a44b34 sync x2goserver.spec from master branch to release/4.0.1.x branch new b0ee871 Legacy for applications (and X2Go scripts) that expect $SSH_CLIENT to be set in the X2Go session's environment. (Fixes: #644). The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Summary of changes: debian/changelog | 2 ++ x2goserver/bin/x2goruncommand | 7 +++++++ 2 files changed, 9 insertions(+) -- Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goserver.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch release/4.0.1.x in repository x2goserver. commit b0ee871a4a710cf33f54e058e41f61ceaf358f64 Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Date: Thu Feb 5 12:14:22 2015 +0100 Legacy for applications (and X2Go scripts) that expect $SSH_CLIENT to be set in the X2Go session's environment. (Fixes: #644). --- debian/changelog | 2 ++ x2goserver/bin/x2goruncommand | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/debian/changelog b/debian/changelog index 25b004c..1839221 100644 --- a/debian/changelog +++ b/debian/changelog @@ -69,6 +69,8 @@ x2goserver (4.0.1.19-0x2go1) UNRELEASED; urgency=medium SLE 11.x. - Only call $dbh->sqlite_busy_timeout() if the $dbh object is capable of that. Works around a too-old DBD::SQLite package on SLE 11.x. + - Legacy for applications (and X2Go scripts) that expect $SSH_CLIENT to be + set in the X2Go session's environment. (Fixes: #644). * debian/control: + Add D (x2goserver): libfile-which-perl. + Add C (x2goserver: x2godesktopsharing (<< 3.1.1.2-0~). (Fixes: #700). diff --git a/x2goserver/bin/x2goruncommand b/x2goserver/bin/x2goruncommand index 71dbca1..e7e20e2 100755 --- a/x2goserver/bin/x2goruncommand +++ b/x2goserver/bin/x2goruncommand @@ -31,6 +31,13 @@ X2GO_LIB_PATH="$(x2gopath libexec)"; "$X2GO_LIB_PATH/x2gosyslog" "$0" "info" "$(basename $0) called with options: $@" +# newer SSH daemons don't set $SSH_CLIENT anymore... +if [ -z "$SSH_CLIENT" ] && [ -n "$SSH_CONNECTION" ]; then + set -- $SSH_CONNECTION + SSH_CLIENT="$1 $2 $4" + export SSH_CLIENT +fi + export DISPLAY export XAUTHORITY=${XAUTHORITY:-"$HOME/.Xauthority"} export X2GO_AGENT_PID -- Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goserver.git