summaryrefslogtreecommitdiff
path: root/methods/ftp.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2009-10-16 15:42:05 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2009-10-16 15:42:05 +0200
commit1de1f70383ea2d44147ccaceff280fd70faf4c81 (patch)
tree198f17cfbacda989495923a6f34aed64313a86da /methods/ftp.cc
parent592b78001c381f9cca6f20d8d1d47696bb98c0d1 (diff)
add maybe_add_auth for ftp as well
Diffstat (limited to 'methods/ftp.cc')
-rw-r--r--methods/ftp.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/methods/ftp.cc b/methods/ftp.cc
index c91600ad5..eb398666f 100644
--- a/methods/ftp.cc
+++ b/methods/ftp.cc
@@ -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)
{