Subject: sshd not start on Windows XP

From: Mikhail Gonchar <[email-masked]>
Date: Fri, 07 Aug 2015 14:13:14 +0500

Package: x2goclient
Version: 4.0.5.0

sshd not start on Windows XP because of an error in its config file 
(sshd_config):

StrictModes no
UsePrivilegeSeparation no
PidFile C:/Documents and Settings/redge/.x2go/var/sshd.pid
Subsystem shell C:/PROGRA~1/X2GOCL~1/sh
Subsystem sftp C:/PROGRA~1/X2GOCL~1/sftp-server
AuthorizedKeysFile "/cygdrive/C/Documents and 
Settings/%u/.x2go/.ssh/authorized_keys"

The third line (PidFile ...) contains unquoted path with spaces.

As workaround one can add quotes and change config file permissions (so 
it won't be rewritten by x2goclient).
But this can be easily fixed in src/onmainwindow.cpp on the line 9997:

out<<"StrictModes no\n"<<
"UsePrivilegeSeparation no\n"<<
"PidFile " + varDir + "/sshd.pid\n" <<