[X2Go-Commits] [x2goserver] 01/02: If x2goumount-session is used without cmd option <session_id>, then the env var $X2GO_SESSION (current session) will be attempted to used.
git-admin at x2go.org
git-admin at x2go.org
Fri Feb 28 16:18:37 CET 2014
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 16bb3b6a562632b5ba7e8eea316399fcf01987ab
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Fri Feb 28 16:17:39 2014 +0100
If x2goumount-session is used without cmd option <session_id>, then the env var $X2GO_SESSION (current session) will be attempted to used.
---
debian/changelog | 2 ++
x2goserver/bin/x2golistmounts | 2 +-
x2goserver/bin/x2goumount-session | 2 +-
3 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 9ad3570..d482c66 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,8 @@ x2goserver (4.0.1.14-0x2go1) UNRELEASED; urgency=low
(Fixes: #415).
- If x2golistmounts is used with out cmd options <session_id>, then
the env var $X2GO_SESSION (current session) will be used.
+ - If x2goumount-session is used without cmd option <session_id>, then
+ the env var $X2GO_SESSION (current session) will be attempted to used.
- Fix x2gostartagent. Make sure the -nolisten tcp option is configurable
via x2goagent.options. (Fixes: #424).
- Safely remove desktop files for client-side shared folders. Remove
diff --git a/x2goserver/bin/x2golistmounts b/x2goserver/bin/x2golistmounts
index fa1b6c9..8947ef9 100755
--- a/x2goserver/bin/x2golistmounts
+++ b/x2goserver/bin/x2golistmounts
@@ -31,7 +31,7 @@ openlog($0,'cons,pid','user');
setlogmask( LOG_UPTO(x2gologlevel()) );
-my $session_id=shift || $ENV{'X2GO_SESSION'} or die;
+my $session_id=shift || $ENV{'X2GO_SESSION'} or die "no valid session name that we can use";
my $mounts = join("\n", db_getmounts($session_id));
print "$mounts\n";
diff --git a/x2goserver/bin/x2goumount-session b/x2goserver/bin/x2goumount-session
index 372acad..8e0c6d1 100755
--- a/x2goserver/bin/x2goumount-session
+++ b/x2goserver/bin/x2goumount-session
@@ -61,7 +61,7 @@ sub source_environment {
my $tmp_dir = '/tmp';
-my $session=shift;
+my $session=shift || $ENV{'X2GO_SESSION'} or die "no valid session name that we can use";
my $only_path=shift;
my $uname="$ENV{'USER'}";
my $serv=hostname;
--
Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goserver.git
More information about the x2go-commits
mailing list