diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2009-12-09 10:16:32 +0100 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2009-12-09 10:16:32 +0100 |
commit | 366cff695ae0a228300817e278c7ddf62ca52c34 (patch) | |
tree | f1516a044d5ae14f14bb0c19c8cadd1815407898 /methods/ftp.cc | |
parent | 864cf8e52aa37de28f2fc9a66236713f1ba34409 (diff) | |
parent | 777b4ac6882b40f63f1aa9b6f4da78b8fdc56cbe (diff) |
merged from the mvo branch
Diffstat (limited to 'methods/ftp.cc')
-rw-r--r-- | methods/ftp.cc | 5 |
1 files changed, 4 insertions, 1 deletions
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 <apt-pkg/acquire-method.h> #include <apt-pkg/error.h> #include <apt-pkg/hashes.h> +#include <apt-pkg/netrc.h> #include <sys/stat.h> #include <sys/time.h> @@ -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) { |