@matheusbsbs / matheus-bagliano / commits / 56ac168f6f
Fork 0

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>

Johannes Schindelin committed Jul 18, 2006 at 19:46 UTC 56ac168f6f89bebf2846c4bafed01318fe3f25cd
1 file changed +1 -1
builtin-apply.c
+1 -1
@@ -2034,7 +2034,7 @@ static void create_one_file(char *path, unsigned mode, const char *buf, unsigned
2034 return;
2035 }
2036
2037 - if (errno == EEXIST) {
2037 + if (errno == EEXIST || errno == EACCES) {
2038 /* We may be trying to create a file where a directory
2039 * used to be.
2040 */