git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Fix t4114 on cygwin

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jul 18, 2006, 17:46 UTC
Message-ID
<Pine.LNX.4.63.0607181946090.29667@wbgn013.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
Next: Junio C Hamano
Message 1 of 2 in “Fix t4114 on cygwin”
  1. Fix t4114 on cygwinJohannes Schindelin, Jul 18, 2006
  2. Junio C HamanoJul 24, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.