A page in your DokuWiki was added or changed. Here are the details:

Date        : 2018/01/26 17:40
Browser     : Mozilla/5.0 (X11; Linux x86_64; rv:52.9) Gecko/20100101 
Goanna/3.4 Firefox/52.9 PaleMoon/27.7.0
IP-Address  : 134.3.37.90
Hostname    : HSI-KBW-134-3-37-90.hsi14.kabel-badenwuerttemberg.de
Old Revision: https://wiki.x2go.org/doku.php/doc:howto:tce?rev=1516897914
New Revision: https://wiki.x2go.org/doku.php/doc:howto:tce
Edit Summary: [Live-Patching the Build] fix vfat/ntfs detection, doesn't work 
in one mount command
User        : stefanbaur

@@ -297,10 +297,18 @@
                 # would only cause a mount of the iso9660 raw device,
                 # blocking the mount of individual partitions
                 # real optical media ->x2gocdmanager/x2gothinclient-cdmanager 
package
- if ( system("mount -tvfat,ntfs $dev /media/$name/$ldev -o uid=$user,sync,uni_xlate")==0 ) {
-                         syslog('notice', "USB device $name ($ldev)
successfully mounted (probably vfat or ntfs)");
+                 if ( system("mount -tntfs $dev /media/$name/$ldev -o 
uid=$user,sync,uni_xlate")==0 ) {
+                         syslog('notice', "USB device $name ($ldev) successfully 
mounted (ntfs detected)");
+                         # if mounted, inform x2goclient about it...
+                         system("touch $mntdir/$ldev.mounted");
+                         open 
(D,">",expand_filename("~$user/export/$name.$ldev"));
+                         print D "export=/media/$name/$ldev\n";
+                         close (D);
+                 }
+                 elsif ( system("mount -tvfat $dev /media/$name/$ldev -o 
uid=$user,sync,uni_xlate")==0 ) {
+                         syslog('notice', "USB device $name ($ldev) successfully 
mounted (vfat detected)");
                         # if mounted, inform x2goclient about it...
                         system("touch $mntdir/$ldev.mounted");
                         open
(D,">",expand_filename("~$user/export/$name.$ldev"));
                         print D "export=/media/$name/$ldev\n";


--
This mail was generated by DokuWiki at
https://wiki.x2go.org/

_______________________________________________
x2go-commits mailing list
[email protected]
https://lists.x2go.org/listinfo/x2go-commits

Reply via email to