mirror of
https://github.com/git/git
synced 2024-08-24 18:26:02 +00:00
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>
This commit is contained in:
parent
7f95aef28f
commit
56ac168f6f
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue