X2Go Bug report logs -
#67
Bug when you mount more 1 folder at login
Reported by: Pascal Vibet - ADACIS <pvibet@gmail.com>
Date: Fri, 30 Nov 2012 07:03:01 UTC
Severity: normal
Tags: pending
Done: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Bug is archived. No further changes may be made.
Full log
🔗
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
This is an automatic notification regarding your Bug report
which was filed against the x2goserver package:
#67: Bug when you mount more 1 folder at login
It has been closed by Mike Gabriel <mike.gabriel@das-netzwerkteam.de>.
Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact Mike Gabriel <mike.gabriel@das-netzwerkteam.de> by
replying to this email.
--
X2Go Bug Tracking System
Contact git-admin@x2go.org with problems
[Message part 2 (message/rfc822, inline)]
[Message part 3 (text/plain, inline)]
close #67
thanks
The reported issue has been fixed in release 4.0.0.0 of X2Go Server.
light+love,
Mike
--
DAS-NETZWERKTEAM
mike gabriel, rothenstein 5, 24214 neudorf-bornstein
fon: +49 (1520) 1976 148
GnuPG Key ID 0x25771B31
mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb
[Message part 4 (application/pgp-signature, inline)]
[Message part 5 (message/rfc822, inline)]
[Message part 6 (text/plain, inline)]
Package: x2goserver
Version: 3.1.1.3-0~571~precise1_amd64
I want to mount 3 folder at login. Only the first one is mount at
login.
This is log file: cat ~/mounts.log
SSHFS version 2.3
Server version: 3
Extension: posix-rename@openssh.com <1>
Extension: statvfs@openssh.com <2>
Extension: fstatvfs@openssh.com <2>
Extension: hardlink@openssh.com <1>
fuse: bad mount point
`/tmp/.x2go-xxxxxxx/media/disk/disk/_home_xxxxxxx_folder2': No such file
or directory
fuse: bad mount point
`/tmp/.x2go-xxxxxxx/media/disk/disk/disk/_home_xxxxxxx_folder3': No such
file or directory
The bug is in /usr/bin/x2gomountdirs, explication:
the $mdir variable is initialize line:
87 my $mdir="$tmp_dir/.x2go-$ENV{'USER'}/media";
but in code bloc
162 for (my $i=0;$i<@dirs;$i++)
163 {
164 my $printspool=0;
165 my $mimeboxspool=0;
166 my $mntpath;
167 if(@dirs[$i]=~m/__PRINT_SPOOL_/)
168 {
169 @dirs[$i]=~s/__PRINT_SPOOL_//;
170 $printspool=1;
171 $mntpath=$spooldir;
172 syslog('debug', "mounting $spooldir, mount point type is print
spool directory");
173 }
174 elsif(@dirs[$i]=~m/__MIMEBOX_SPOOL_/)
175 {
176 @dirs[$i]=~s/__MIMEBOX_SPOOL_//;
177 $mimeboxspool=1;
178 $mntpath=$mimeboxdir;
179 syslog('debug', "mounting $mimeboxdir, mount point type is
MIME box directory");
180 }
181 else
182 {
183 my $p=@dirs[$i];
184 if ($type ne "dir")
185 {
186 $p=~s/\/ramdrive\/mnt\///;
187 if ($p =~ m/CDROM/)
188 {
189 $mdir=$mdir."/cd";
190 }
191 else
192 {
193 $mdir=$mdir."/rm";
194 }
195 }
196 else
197 {
198 $mdir=$mdir."/disk";
199 }
200 $p=~s/\//_/g;
201 $p=~s/ /_/g;
202 $p=~s/~_cygdrive_//;
203 $p=~s/~_windrive_//;
204 $p=~s/~//g;
205 mkdir("$mdir/$p");
206 $mntpath="$mdir/$p";
207 }
if we have more than 1 folder to share, $mdir variable will became:
first time:
$mdir="$tmp_dir/.x2go-$ENV{'USER'}/media/disk"
second time:
$mdir="$tmp_dir/.x2go-$ENV{'USER'}/media/disk/disk";
third time:
$mdir="$tmp_dir/.x2go-$ENV{'USER'}/media/disk/disk/disk";
Solution is to fix $mdir variable in begin for loop. Add
$mdir="$tmp_dir/.x2go-$ENV{'USER'}/media" in line:
164 my $printspool=0;
165 my $mimeboxspool=0;
166 my $mntpath;
=> 167 $mdir="$tmp_dir/.x2go-$ENV{'USER'}/media";
Regards
---------------------------------
Pascal Vibet
[Message part 7 (text/html, inline)]
Send a report that this bug log contains spam.
X2Go Developers <owner@bugs.x2go.org>.
Last modified:
Wed Nov 5 07:45:02 2025;
Machine Name:
ymir.das-netzwerkteam.de
X2Go Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.