merge from gcc
This commit is contained in:
parent
f562800dc4
commit
8975bb3072
2 changed files with 9 additions and 1 deletions
|
@ -127,7 +127,11 @@ mkstemps (char *pattern, int suffix_len)
|
|||
if (fd >= 0)
|
||||
/* The file does not exist. */
|
||||
return fd;
|
||||
if (errno != EEXIST)
|
||||
if (errno != EEXIST
|
||||
#ifdef EISDIR
|
||||
&& errno != EISDIR
|
||||
#endif
|
||||
)
|
||||
/* Fatal error (EPERM, ENOSPC etc). Doesn't make sense to loop. */
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue