From 56ac168f6f89bebf2846c4bafed01318fe3f25cd Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Tue, 18 Jul 2006 19:46:34 +0200 Subject: [PATCH] Fix t4114 on cygwin On cygwin, when you try to create a symlink over a directory, you do not get EEXIST, but EACCES. Signed-off-by: Johannes Schindelin Signed-off-by: Junio C Hamano --- builtin-apply.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin-apply.c b/builtin-apply.c index 8f7cf44c6..d924ac3d0 100644 --- a/builtin-apply.c +++ b/builtin-apply.c @@ -2034,7 +2034,7 @@ static void create_one_file(char *path, unsigned mode, const char *buf, unsigned return; } - if (errno == EEXIST) { + if (errno == EEXIST || errno == EACCES) { /* We may be trying to create a file where a directory * used to be. */ -- 2.30.2