# [PATCH] Fix t4114 on cygwin

2 messages from 2006-07-18 to 2006-07-24. Participants: Johannes Schindelin, Junio C Hamano.
Thread: https://gitlist.dev/t/4916

## Johannes Schindelin, 2006-07-18 17:46

Subject: [PATCH] Fix t4114 on cygwin
Message-ID: <Pine.LNX.4.63.0607181946090.29667@wbgn013.biozentrum.uni-wuerzburg.de>
URL: https://gitlist.dev/e/Pine.LNX.4.63.0607181946090.29667%40wbgn013.biozentrum.uni-wuerzburg.de

```

On cygwin, when you try to create a symlink over a directory, you do
not get EEXIST, but EACCES.

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
---
 builtin-apply.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/builtin-apply.c b/builtin-apply.c
index 8f7cf44..d924ac3 100644
--- a/builtin-apply.c
+++ b/builtin-apply.c
@@ -2034,7 +2034,7 @@ static void create_one_file(char *path, 
 			return;
 	}
 
-	if (errno == EEXIST) {
+	if (errno == EEXIST || errno == EACCES) {
 		/* We may be trying to create a file where a directory
 		 * used to be.
 		 */
-- 
1.4.2.rc1.gaf40

```

## Junio C Hamano, 2006-07-24 06:41

Subject: Re: [PATCH] Fix t4114 on cygwin
Message-ID: <7vvepnfqry.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7vvepnfqry.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <Pine.LNX.4.63.0607181946090.29667@wbgn013.biozentrum.uni-wuerzburg.de>

```
Thanks.

```
