]> git.saurik.com Git - apt.git/blobdiff - methods/ftp.cc
First cut of i18n stuff
[apt.git] / methods / ftp.cc
index 89f144fe5d5a1cd5005abf904b28c769e050504c..10f1406f50223e502139d5f5e6f0c4d8ec029374 100644 (file)
@@ -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 <stdio.h>
 #include <errno.h>
 #include <stdarg.h>
+#include <iostream>
 
 // Internet stuff
 #include <netinet/in.h>
@@ -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);