From 58352818740fff00666d23e8eaa102de1eb54747 Mon Sep 17 00:00:00 2001 From: Johannes Sixt Date: Tue, 23 Jan 2007 14:45:09 +0100 Subject: [PATCH] Clean up another instance of unlink that was explicitly chmod(, 0666)ed. --- builtin-prune-packed.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/builtin-prune-packed.c b/builtin-prune-packed.c index 639fbed2fc..6473d327e6 100644 --- a/builtin-prune-packed.c +++ b/builtin-prune-packed.c @@ -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); } -- 2.11.4.GIT