From 8b33b47ea0005ceadd817a42eee2222184dc74ea Mon Sep 17 00:00:00 2001 From: ocean Date: Thu, 27 May 2004 11:22:30 +0000 Subject: * io.c (rb_io_fwrite): check all case errno != 0 [ruby-dev:23648] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'io.c') diff --git a/io.c b/io.c index 00f97be61a..363e839cb7 100644 --- a/io.c +++ b/io.c @@ -396,7 +396,7 @@ rb_io_fwrite(ptr, len, f) while (errno = 0, ptr += (r = fwrite(ptr, 1, n, f)), (n -= r) > 0) { if (ferror(f) #if defined __BORLANDC__ - || errno == EBADF || errno == ENOENT + || errno #endif ) { #ifdef __hpux -- cgit v1.2.3