diff options
author | DJ Delorie <dj@delorie.com> | 2008-07-31 22:01:30 +0000 |
---|---|---|
committer | DJ Delorie <dj@delorie.com> | 2008-07-31 22:01:30 +0000 |
commit | d7f0aaaa936abdf891fc22a2287619bb7c562a08 (patch) | |
tree | 5b09ac187d3fa35ed15853343fa0182b2dc98441 /libiberty/mkstemps.c | |
parent | 06ff82f01ec2b6f88e50519a5ecc01b602d931c2 (diff) | |
download | binutils-redhat-d7f0aaaa936abdf891fc22a2287619bb7c562a08.tar.gz |
merge from gcc
Diffstat (limited to 'libiberty/mkstemps.c')
-rw-r--r-- | libiberty/mkstemps.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libiberty/mkstemps.c b/libiberty/mkstemps.c index 093b67af86..a0e68a73b4 100644 --- a/libiberty/mkstemps.c +++ b/libiberty/mkstemps.c @@ -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; |