diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-04-24 18:45:21 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-04-24 18:45:21 -0500 |
commit | 073dc86aceaa060597d7653747c3c6c14d0ed59d (patch) | |
tree | 5b59d50322429dbfcce40c3385b729dd6c40b2aa /kioslave | |
parent | 66a19439090d7b0945253cb813f0195488e1d8ff (diff) | |
download | tdebase-073dc86aceaa060597d7653747c3c6c14d0ed59d.tar.gz tdebase-073dc86aceaa060597d7653747c3c6c14d0ed59d.zip |
Fix sftp when nonstandard port is specified in ssh config
Diffstat (limited to 'kioslave')
-rw-r--r-- | kioslave/sftp/kio_sftp.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
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; |