зеркало из https://github.com/microsoft/git.git
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:
Родитель
7f95aef28f
Коммит
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.
|
||||
*/
|
||||
|
|
Загрузка…
Ссылка в новой задаче