summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7f95aef)
raw | patch | inline | side by side (parent: 7f95aef)
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | |
Tue, 18 Jul 2006 17:46:34 +0000 (19:46 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 24 Jul 2006 06:27:41 +0000 (23:27 -0700) |
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>
Signed-off-by: Junio C Hamano <junkio@cox.net>
not get EEXIST, but EACCES.
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-apply.c | patch | blob | history |
diff --git a/builtin-apply.c b/builtin-apply.c
index 8f7cf44c6945b8cfd41a36134374192e92b9789f..d924ac3d0ab663c2ceb05c2cb9943f6caa23c0ef 100644 (file)
--- 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.
*/