]> git.saurik.com Git - apt.git/blobdiff - methods/ftp.cc
wrap every unlink call to check for != /dev/null
[apt.git] / methods / ftp.cc
index d84a194ca3b4c3b72bed6d654cdf45ceeb6a68e5..360333107bdeac352181dc241ce53169baef17fc 100644 (file)
@@ -1090,7 +1090,7 @@ bool FtpMethod::Fetch(FetchItem *Itm)
         // If the file is missing we hard fail and delete the destfile
         // otherwise transient fail
         if (Missing == true) {
-           unlink(FailFile.c_str());
+           RemoveFile("ftp", FailFile);
            return false;
         }
         Fail(true);