X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/c968dc2f44b02858606af3d07aed189b735ecb76..89409d33dc8d3156d089f4f90a02b39a04a9d952:/methods/ftp.cc diff --git a/methods/ftp.cc b/methods/ftp.cc index 89f144fe5..10f1406f5 100644 --- a/methods/ftp.cc +++ b/methods/ftp.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: ftp.cc,v 1.27 2001/04/10 04:51:50 jgg Exp $ +// $Id: ftp.cc,v 1.29 2002/04/24 05:35:13 jgg Exp $ /* ###################################################################### FTP Aquire Method - This is the FTP aquire method for APT. @@ -28,6 +28,7 @@ #include #include #include +#include // Internet stuff #include @@ -40,6 +41,8 @@ #include "ftp.h" /*}}}*/ +using namespace std; + /* This table is for the EPRT and EPSV commands, it maps the OS address family to the IETF address families */ struct AFMap @@ -1092,7 +1095,7 @@ int main(int argc,const char *argv[]) putenv("no_proxy="); // Run the http method - string Path = flNotFile(argv[0]) + "/http"; + string Path = flNotFile(argv[0]) + "http"; execl(Path.c_str(),Path.c_str(),0); cerr << "Unable to invoke " << Path << endl; exit(100);