]> git.saurik.com Git - apt.git/blobdiff - methods/ftp.cc
try to avoid direct usage of .Fd() if possible and do read()s and co
[apt.git] / methods / ftp.cc
index 2ca0ac6f702f80b704589064f1325c8cedffa694..ad8a7b828a2ce0563014fb6591a9641061cafbd3 100644 (file)
@@ -868,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;