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 8fed93191514de87bbc05184020f12a09e84850a Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Date: Tue Jan 28 13:44:39 2014 +0100 Log SSHFS output and errors to ~/.x2go/C-<session>/sshfs-mounts.log. (Fixes: #415). --- debian/changelog | 4 +++- x2goserver/bin/x2gomountdirs | 7 ++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/debian/changelog b/debian/changelog index d9d9018..a121f94 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,8 @@ x2goserver (4.0.1.14-0x2go1) UNRELEASED; urgency=low - * Continue development on main release/4.0.1.x branch... + * New upstream release (4.0.1.14): + - Log SSHFS output and errors to ~/.x2go/C-<session>/sshfs-mounts.log. + (Fixes: #415). -- Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Tue, 28 Jan 2014 13:41:38 +0100 diff --git a/x2goserver/bin/x2gomountdirs b/x2goserver/bin/x2gomountdirs index 1ec563e..1dafe3b 100755 --- a/x2goserver/bin/x2gomountdirs +++ b/x2goserver/bin/x2gomountdirs @@ -124,9 +124,10 @@ chmod(0600,"$key.ident"); my $mdir="$tmp_dir/.x2go-$ENV{'USER'}/media"; my $ldir="$ENV{'HOME'}/media"; -my $spooldir_lnk="$ENV{'HOME'}/.x2go/C-$session/spool"; +my $sessiondir="$ENV{'HOME'}/.x2go/C-$session"; +my $spooldir_lnk="$sessiondir/spool"; my $spooldir="$tmp_dir/.x2go-$ENV{'USER'}/spool"; -my $mimeboxdir_lnk="$ENV{'HOME'}/.x2go/C-$session/mimebox"; +my $mimeboxdir_lnk="$sessiondir/mimebox"; my $mimeboxdir="$tmp_dir/.x2go-$ENV{'USER'}/mimebox"; source_environment(xdg_config_home() . "/user-dirs.dirs"); @@ -288,7 +289,7 @@ for (my $i=0;$i<@dirs;$i++) $msg = "sshfs $code_conv -o idmap=user,uid=`id -u`,gid=`id -g`,$umaskstr,ServerAliveInterval=300,Cipher=blowfish,IdentityFile=$key,UserKnownHostsFile=$key.ident \"$user\"\@$host:\"@dirs[$i]\" \"$mntpath\" -p $port"; syslog('debug', "executing: $msg"); print "inserted, $msg\n"; - if (system("sshfs $code_conv -o idmap=user,uid=`id -u`,gid=`id -g`,$umaskstr,ServerAliveInterval=300,Cipher=blowfish,IdentityFile=$key,UserKnownHostsFile=$key.ident \"$user\"\@$host:\"@dirs[$i]\" \"$mntpath\" -p $port 2>>~/mounts.log")==0) + if (system("sshfs $code_conv -o idmap=user,uid=`id -u`,gid=`id -g`,$umaskstr,ServerAliveInterval=300,Cipher=blowfish,IdentityFile=$key,UserKnownHostsFile=$key.ident \"$user\"\@$host:\"@dirs[$i]\" \"$mntpath\" -p $port 2>&1 1>>$sessiondir/sshfs-mounts.log")==0) { print "mount @dirs[$i] ok\n"; syslog('notice', "successfully mounted $user\@$host:$port@dirs[$i] to $mntpath"); -- Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goserver.git