Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2006-07-18 21:46:34 +0400
committerJunio C Hamano <junkio@cox.net>2006-07-24 10:27:41 +0400
commit56ac168f6f89bebf2846c4bafed01318fe3f25cd (patch)
tree4ddf6cc0968cfc21625b41496b2e8ae414f6e5a7 /builtin-apply.c
parent7f95aef28fa1e2662aebb4556c71ad6912d395e5 (diff)
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 <Johannes.Schindelin@gmx.de> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin-apply.c')
-rw-r--r--builtin-apply.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-apply.c b/builtin-apply.c
index 8f7cf44c69..d924ac3d0a 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.
*/