]> git.saurik.com Git - apt.git/blobdiff - methods/ftp.cc
merged from debian-experimental2
[apt.git] / methods / ftp.cc
index 861647aeab9b2423ed318d84786dd1268dcffb2b..ad8a7b828a2ce0563014fb6591a9641061cafbd3 100644 (file)
@@ -22,6 +22,7 @@
 #include <apt-pkg/error.h>
 #include <apt-pkg/hashes.h>
 #include <apt-pkg/netrc.h>
+#include <apt-pkg/configuration.h>
 
 #include <sys/stat.h>
 #include <sys/time.h>
@@ -867,7 +868,7 @@ bool FTPConn::Get(const char *Path,FileFd &To,unsigned long long Resume,
    
    if (Resume != 0)
    {
-      if (Hash.AddFD(To.Fd(),Resume) == false)
+      if (Hash.AddFD(To,Resume) == false)
       {
         _error->Errno("read",_("Problem hashing file"));
         return false;