[X2Go-Commits] [x2goserver] 01/01: Be a bit more tolerant when trying to detect if a desktop icon is to be removed (using regexp, not eq).

git-admin at x2go.org git-admin at x2go.org
Tue Oct 7 22:07:59 CEST 2014


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository x2goserver.

commit 00426c89ca0aaa2552ac64e02fa3f2874b1f5fc4
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Tue Oct 7 22:07:44 2014 +0200

    Be a bit more tolerant when trying to detect if a desktop icon is to be removed (using regexp, not eq).
---
 debian/changelog                  |    3 +++
 x2goserver/bin/x2goumount-session |    2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index bf5209f..73d5838 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -132,6 +132,9 @@ x2goserver (4.0.1.19-0x2go1) UNRELEASED; urgency=medium
   * New upstream version (4.0.1.19):
     - Use File::Which to detect if sshfs command is available
       before trying to mount a client-side folder.
+    - Be a bit more tolerant when trying to detect if a
+      desktop icon is to be removed (using regexp, not
+      eq).
   * debian/control:
     + Add D (x2goserver): libfile-which-perl.
   * x2goserver.spec:
diff --git a/x2goserver/bin/x2goumount-session b/x2goserver/bin/x2goumount-session
index bc37400..9a85170 100755
--- a/x2goserver/bin/x2goumount-session
+++ b/x2goserver/bin/x2goumount-session
@@ -219,7 +219,7 @@ break:
 			my @desktop_file_content=<DF>;
 			close(DF);
 
-			if ( "@desktop_file_content[1]" eq "$session\n" ) {
+			if ( @desktop_file_content[1] =~ m/$session\/ ) {
 				syslog('info', "removing desktop icon ,,$desktop_dir/$desktop_file''");
 				unlink("$desktop_dir/$desktop_file");
 			}

--
Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goserver.git


More information about the x2go-commits mailing list