[X2Go-Commits] [x2goclient] 07/18: src/sshmasterconnection.cpp: replace deprecated channel_request_exec () function with ssh_channel_request_exec ().

git-admin at x2go.org git-admin at x2go.org
Wed Feb 8 20:50:25 CET 2017


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

x2go pushed a commit to branch feature/libssh-api-upgrade
in repository x2goclient.

commit 6e8faf2a4cec739dfd13de9eec2507be5cc5121c
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Sat Jan 28 17:52:29 2017 +0100

    src/sshmasterconnection.cpp: replace deprecated channel_request_exec () function with ssh_channel_request_exec ().
    
    Might break on ancient systems, but we don't care.
---
 debian/changelog            |    3 +++
 src/sshmasterconnection.cpp |    6 +++---
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 907966f..4b192be 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -582,6 +582,9 @@ x2goclient (4.1.0.0-0x2go1) UNRELEASED; urgency=medium
     - src/sshmasterconnection.cpp: replace deprecated channel_open_session ()
       function with ssh_channel_open_session (). Might break on ancient
       systems, but we don't care.
+    - src/sshmasterconnection.cpp: replace deprecated channel_request_exec ()
+      function with ssh_channel_request_exec (). Might break on ancient
+      systems, but we don't care.
 
   [ Bernard Cafarelli ]
   * New upstream version (4.1.0.0):
diff --git a/src/sshmasterconnection.cpp b/src/sshmasterconnection.cpp
index d671d35..8417d34 100644
--- a/src/sshmasterconnection.cpp
+++ b/src/sshmasterconnection.cpp
@@ -1611,11 +1611,11 @@ void SshMasterConnection::channelLoop()
                         x2goDebug<<errorMsg<<": "<<err<<endl;
 #endif
                     }
-                    else if ( channel_request_exec ( channel, channelConnections[i].command.toLatin1() ) != SSH_OK )
+                    else if ( ssh_channel_request_exec ( channel, channelConnections[i].command.toLatin1() ) != SSH_OK )
                     {
                         QString err=ssh_get_error ( my_ssh_session );
-                        QString errorMsg=tr ( "channel_request_exec failed" );
-                        emit ioErr ( channelConnections[i].creator, errorMsg, err );
+                        QString errorMsg=tr ( "ssh_channel_request_exec failed" );
+                        emit ioErr ( channelConnections[i].creator, errorMsg + ".", err );
 #ifdef DEBUG
                         x2goDebug<<errorMsg<<": "<<err<<endl;
 #endif

--
Alioth's /srv/git/code.x2go.org/x2goclient.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goclient.git


More information about the x2go-commits mailing list