Delete temporary string within demangler even in failure cases.
[deliverable/binutils-gdb.git] / libiberty / mkstemps.c
index 093b67af868baa27dc58a07e77a7abbb5f0ba434..a0e68a73b4915d27d97b3b9d5d3779f6c3f7023f 100644 (file)
@@ -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;
 
This page took 0.023667 seconds and 4 git commands to generate.