X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/86d9e9635a23c7ecfe2de7f440a6acce320067bc..51f9f4d78deabf54dbbb6881139d2b1a319ffbfc:/methods/ftp.cc?ds=inline diff --git a/methods/ftp.cc b/methods/ftp.cc index c91600ad5..3e1725823 100644 --- a/methods/ftp.cc +++ b/methods/ftp.cc @@ -19,6 +19,7 @@ #include #include #include +#include #include #include @@ -982,7 +983,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) {