]> git.saurik.com Git - apt.git/blobdiff - methods/mirror.cc
apply various suggestions made by cppcheck
[apt.git] / methods / mirror.cc
index d3aef91bcd3d68054a96754152f418b463d09d8f..56362d317a9dfc499f56f3fa5803456fbfbbe197 100644 (file)
@@ -122,7 +122,7 @@ bool MirrorMethod::Clean(string Dir)
       }
       // nothing found, nuke it
       if (I == list.end())
-        unlink(Dir->d_name);
+        RemoveFile("mirror", Dir->d_name);
    }
 
    closedir(D);