Subject: Problem unmounting x2go-mounted filesystems

From: Tony Travis <[email-masked]>
Date: Mon, 17 Jun 2013 16:05:25 +0100

Package: x2goserver
Version: 4.0.1.0-0~688~precise1

> atravis@bifx-rta:~$ x2golistsessions
> 7451|atravis-51-1371206912_stDGNOME_dp24|51|bifx-rta|R|2013-06-14T11:48:32|aa83a6ecf78fcc08f45b22ae4797d92c|81.139.146.221|30004|30005|2013-06-17T13:22:08|atravis|265997|30006|
> atravis@bifx-rta:~$ x2gosuspend-session atravis-51-1371206912_stDGNOME_dp24
> Bareword found where operator expected at /usr/bin/x2goumount-session line 137, near "] e"
> 	(Missing operator before e?)
> Bareword found where operator expected at /usr/bin/x2goumount-session line 141, near "] e"
> 	(Missing operator before e?)
> syntax error at /usr/bin/x2goumount-session line 137, near "] e "
> syntax error at /usr/bin/x2goumount-session line 141, near "] e "
> Global symbol "$only_path_uncpath" requires explicit package name at /usr/bin/x2goumount-session line 141.
> Global symbol "$only_path_uncpath" requires explicit package name at /usr/bin/x2goumount-session line 143.
> syntax error at /usr/bin/x2goumount-session line 146, near "}"
> Global symbol "@line" requires explicit package name at /usr/bin/x2goumount-session line 152.
> Global symbol "@line" requires explicit package name at /usr/bin/x2goumount-session line 152.
> Global symbol "@line" requires explicit package name at /usr/bin/x2goumount-session line 163.
> Global symbol "@line" requires explicit package name at /usr/bin/x2goumount-session line 165.
> Global symbol "@line" requires explicit package name at /usr/bin/x2goumount-session line 171.
> Global symbol "@line" requires explicit package name at /usr/bin/x2goumount-session line 174.
> Global symbol "@line" requires explicit package name at /usr/bin/x2goumount-session line 178.
> Global symbol "@line" requires explicit package name at /usr/bin/x2goumount-session line 234.
> Global symbol "@line" requires explicit package name at /usr/bin/x2goumount-session line 235.
> syntax error at /usr/bin/x2goumount-session line 238, near "}"
> /usr/bin/x2goumount-session has too many errors.

Running under 64-bit Ubuntu 12.04.2 LTS

HTH,

  Tony Travis.
--- /usr/bin/x2goumount-session.orig	2013-06-08 04:35:03.000000000 +0100
+++ /usr/bin/x2goumount-session	2013-06-17 13:49:17.001198571 +0100
@@ -19,6 +19,8 @@
 #
 # Copyright (C) 2007-2012  Oleksandr Shneyder <[email-masked]>
 # Copyright (C) 2007-2012  Heinz-Markus Graesing <[email-masked]>
+#
+# 2013-06-17  A.J.Travis  Corrected errors "q" -> "eq"
 
 use strict;
 use Sys::Hostname;
@@ -134,11 +136,11 @@
 				syslog('debug', "skipping non-requested path @line[1]");
 				goto cont;
 			}
-			if (@line[1] e $only_path_windrive)
+			if (@line[1] eq $only_path_windrive)
 			{
 				$only_path = $only_path_windrive;
 			}
-			if (@line[1] e $only_path_uncpath)
+			if (@line[1] eq $only_path_uncpath)
 			{
 				$only_path = $only_path_uncpath;
 			}