From 073dc86aceaa060597d7653747c3c6c14d0ed59d Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 24 Apr 2012 18:45:21 -0500 Subject: Fix sftp when nonstandard port is specified in ssh config --- kioslave/sftp/kio_sftp.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'kioslave/sftp/kio_sftp.cpp') diff --git a/kioslave/sftp/kio_sftp.cpp b/kioslave/sftp/kio_sftp.cpp index 2316c8c2d..04a2b331c 100644 --- a/kioslave/sftp/kio_sftp.cpp +++ b/kioslave/sftp/kio_sftp.cpp @@ -481,11 +481,7 @@ void sftpProtocol::setHost (const TQString& h, int port, const TQString& user, c if( port > 0 ) mPort = port; else { - struct servent *pse; - if( (pse = getservbyname("ssh", "tcp") ) == NULL ) - mPort = 22; - else - mPort = ntohs(pse->s_port); + mPort = -1; } mUsername = user; -- cgit v1.2.1