summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-05-27 11:22:30 +0000
committerocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-05-27 11:22:30 +0000
commit8b33b47ea0005ceadd817a42eee2222184dc74ea (patch)
tree2d8940b1a8fb10eb17115dcdbe60aebcd023c7d5 /io.c
parentf4c7c5dc07c4f47b6b222386841d7dfbb40d0234 (diff)
* 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
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
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