X-Git-Url: https://git.hcoop.net/ntk/apt.git/blobdiff_plain/889053489a8b9b91feeb698fc164446e9b5f9c67..b8ad551295c70a882b629ee94668e8ea527d1a7d:/methods/ftp.cc diff --git a/methods/ftp.cc b/methods/ftp.cc index c91600ad..97248f90 100644 --- a/methods/ftp.cc +++ b/methods/ftp.cc @@ -19,6 +19,7 @@ #include #include #include +#include #include #include @@ -660,8 +661,7 @@ bool FTPConn::ModTime(const char *Path, time_t &Time) return true; // Parse it - StrToTime(Msg,Time); - return true; + return FTPMDTMStrToTime(Msg.c_str(), Time); } /*}}}*/ // FTPConn::CreateDataFd - Get a data connection /*{{{*/ @@ -982,7 +982,9 @@ bool FtpMethod::Fetch(FetchItem *Itm) FetchResult Res; Res.Filename = Itm->DestFile; Res.IMSHit = false; - + + maybe_add_auth (Get, _config->FindFile("Dir::Etc::netrc")); + // Connect to the server if (Server == 0 || Server->Comp(Get) == false) {