Subject: Patch

From: Arne Wichmann <[email-masked]>
Date: Wed, 8 Mar 2017 13:44:11 +0100

tag #1122 patch
thanks

Hi...

So, I created an experimental patch which makes the problem go away.

cu

AW

----
diff --git a/debian/changelog b/debian/changelog
index dc1fbbf..c57c678 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+x2goclient (4.1.0.1-0x2go1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Do not ask passphrase on autologin
+
+ -- Arne Wichmann <[email-masked]>  Wed, 08 Mar 2017 13:32:51 +0100
+
 x2goclient (4.1.0.1-0x2go1) UNRELEASED; urgency=medium
 
   [ Mihai Moldovan ]
diff --git a/src/sshmasterconnection.cpp b/src/sshmasterconnection.cpp
index 8e620c2..ab6398e 100644
--- a/src/sshmasterconnection.cpp
+++ b/src/sshmasterconnection.cpp
@@ -1150,6 +1150,8 @@ bool SshMasterConnection::userAuthAuto()
 {
     int rc = ssh_userauth_autopubkey ( my_ssh_session, "" );
     int i=0;
+#define NO_PASSPHRASE_ON_AUTOLOGIN
+#ifndef NO_PASSPHRASE_ON_AUTOLOGIN
     while(rc != SSH_AUTH_SUCCESS)
     {
         keyPhraseReady=false;
@@ -1173,6 +1175,7 @@ bool SshMasterConnection::userAuthAuto()
             break;
         }
     }
+#endif
 
     if ( rc != SSH_AUTH_SUCCESS )
     {
----

-- 
[...] If you don't want to be restricted, don't agree to it. If you are
coerced, comply as much as you must to protect yourself, just don't support
it. Noone can free you but yourself. (crag, on Debian Planet)
Arne Wichmann ([email-masked])