aboutsummaryrefslogtreecommitdiff
path: root/builtin-apply.c
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2006-07-18 19:46:34 +0200
committerJunio C Hamano <junkio@cox.net>2006-07-23 23:27:41 -0700
commit56ac168f6f89bebf2846c4bafed01318fe3f25cd (patch)
tree4ddf6cc0968cfc21625b41496b2e8ae414f6e5a7 /builtin-apply.c
parent7f95aef28fa1e2662aebb4556c71ad6912d395e5 (diff)
downloadgit-56ac168f6f89bebf2846c4bafed01318fe3f25cd.tar.gz
git-56ac168f6f89bebf2846c4bafed01318fe3f25cd.tar.xz
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 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.
*/