diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:54:20 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:54:20 +0000 |
commit | 9505213b4c7a4058ca353dd84db45abcfd47641a (patch) | |
tree | 777fd4407297b22fd8ce9fbb5c4f56df9cd61e33 /methods/ftp.cc | |
parent | 470773ca75ff6883599e9439c703f3aec43b616c (diff) |
Better handling of missing services
Author: jgg
Date: 1999-07-18 23:06:56 GMT
Better handling of missing services
Diffstat (limited to 'methods/ftp.cc')
-rw-r--r-- | methods/ftp.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/methods/ftp.cc b/methods/ftp.cc index 7bd0a3e18..420b44764 100644 --- a/methods/ftp.cc +++ b/methods/ftp.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: ftp.cc,v 1.13 1999/05/29 03:25:03 jgg Exp $ +// $Id: ftp.cc,v 1.14 1999/07/18 23:06:56 jgg Exp $ /* ###################################################################### HTTP Aquire Method - This is the FTP aquire method for APT. @@ -125,7 +125,7 @@ bool FTPConn::Open(pkgAcqMethod *Owner) } // Connect to the remote server - if (Connect(Host,Port,"ftp",ServerFd,TimeOut,Owner) == false) + if (Connect(Host,Port,"ftp",21,ServerFd,TimeOut,Owner) == false) return false; socklen_t Len = sizeof(Peer); if (getpeername(ServerFd,(sockaddr *)&Peer,&Len) != 0) |