aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--io.c4
2 files changed, 6 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index f3f7e7e0..9399620c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2013-04-28 Eli Zaretskii <eliz@gnu.org>
+
+ * io.c (redirect): Remove the HACK that called close_one when
+ errno was zero in the MinGW build. This prevents failure in
+ several tests in the test suite, e.g., closebad.
+
2013-04-28 Arnold D. Robbins <arnold@skeeve.com>
* bootstrap.sh: Fix a comment.
diff --git a/io.c b/io.c
index c8bd9b24..7e3626bf 100644
--- a/io.c
+++ b/io.c
@@ -902,10 +902,6 @@ redirect(NODE *redir_exp, int redirtype, int *errflg)
/* too many files open -- close one and try again */
if (errno == EMFILE || errno == ENFILE)
close_one();
-#if defined __MINGW32__
- else if (errno == 0) /* HACK! */
- close_one();
-#endif
#ifdef VMS
/* Alpha/VMS V7.1's C RTL is returning this instead
of EMFILE (haven't tried other post-V6.2 systems) */