summaryrefslogtreecommitdiffstats
path: root/kioslave
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-04-24 18:45:21 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-04-24 18:45:21 -0500
commit073dc86aceaa060597d7653747c3c6c14d0ed59d (patch)
tree5b59d50322429dbfcce40c3385b729dd6c40b2aa /kioslave
parent66a19439090d7b0945253cb813f0195488e1d8ff (diff)
downloadtdebase-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.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/kioslave/sftp/kio_sftp.cpp b/kioslave/sftp/kio_sftp.cpp
index 2316c8c2..04a2b331 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;