[X2Go-Commits] [x2gokdriveclient] 01/01: Check for sufficient server version in rootless mode.

git-admin at x2go.org git-admin at x2go.org
Thu Feb 17 16:39:41 CET 2022


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

x2go pushed a commit to branch feature/rootless-mode
in repository x2gokdriveclient.

commit dc6b2de4a2b8dde2cde317a17f3cb0d4d4f115a7
Author: Oleksandr Shneyder <o.shneyder at phoca-gmbh.de>
Date:   Thu Feb 17 09:39:27 2022 -0600

    Check for sufficient server version in rootless mode.
---
 client.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/client.cpp b/client.cpp
index 40bdbc7..29883ba 100644
--- a/client.cpp
+++ b/client.cpp
@@ -1736,6 +1736,11 @@ void Client::checkServerVersion()
         //if the server bversion is 0, we didn't init the geometry yet
         initGeometry();
     }
+    if(serverVersion<6 && rootless)
+    {
+        KDRStdErr(false)<<"Server Version "<<serverVersion<<" doesn't support rootless mode. Please update the server package"<<KDR_ENDL;
+        slotDisconnect();
+    }
 }
 
 void Client::initGeometry()

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2gokdriveclient.git


More information about the x2go-commits mailing list