projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f562800
)
merge from gcc
author
DJ Delorie
<dj@redhat.com>
Thu, 31 Jul 2008 22:01:30 +0000
(22:01 +0000)
committer
DJ Delorie
<dj@redhat.com>
Thu, 31 Jul 2008 22:01:30 +0000
(22:01 +0000)
libiberty/ChangeLog
patch
|
blob
|
history
libiberty/mkstemps.c
patch
|
blob
|
history
diff --git
a/libiberty/ChangeLog
b/libiberty/ChangeLog
index da52583c8f29ee79ad43a98539b1920cb61aa112..fa8abf51415ea6c32f1aab2a6bc54d1554acd6c0 100644
(file)
--- a/
libiberty/ChangeLog
+++ b/
libiberty/ChangeLog
@@
-1,3
+1,7
@@
+2008-07-31 Jakub Jelinek <jakub@redhat.com>
+
+ * mkstemps.c (mkstemps): Keep looping even for EISDIR.
+
2008-07-31 Denys Vlasenko <dvlasenk@redhat.com>
* mkstemps.c (mkstemps): If open failed with errno other than
diff --git
a/libiberty/mkstemps.c
b/libiberty/mkstemps.c
index 093b67af868baa27dc58a07e77a7abbb5f0ba434..a0e68a73b4915d27d97b3b9d5d3779f6c3f7023f 100644
(file)
--- 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;