Clean up another instance of unlink that was explicitly chmod(, 0666)ed.

This commit is contained in:
Johannes Sixt
2007-01-23 14:45:09 +01:00
parent e40c594146
commit 5835281874

View File

@@ -26,10 +26,6 @@ static void prune_dir(int i, DIR *dir, char *pathname, int len, int opts)
if (opts & DRY_RUN)
printf("rm -f %s\n", pathname);
else {
#ifdef __MINGW32__
/* read-only files cannot be removed */
chmod(pathname, 0666);
#endif
if (unlink(pathname) < 0)
error("unable to unlink %s", pathname);
}