From 94e5d6ba19ffd14e5c97fa2f428296def9f03ae5 Mon Sep 17 00:00:00 2001 From: ocean Date: Thu, 27 May 2004 11:22:30 +0000 Subject: [PATCH] * io.c (rb_io_fwrite): check all case errno != 0 [ruby-dev:23648] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 +++++- io.c | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4997e419d3..910b333cd9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Thu May 27 20:02:09 Hirokazu Yamamoto + + * io.c (rb_io_fwrite): check all case errno != 0 [ruby-dev:23648] + Thu May 27 15:54:02 2004 Shugo Maeda * lib/net/ftp.rb (MDTM_REGEXP): fix for demon's ftp server. @@ -8,7 +12,7 @@ Thu May 27 14:53:13 2004 WATANABE Hirofumi * io.c (rb_io_fwrite): workaround for bcc32's fwrite bug. add errno checking. [ruby-dev:23627] - * io.c (rb_io_fwrite): should check if errnro == ENOENT, too. + * io.c (rb_io_fwrite): should check if errno == ENOENT, too. Thu May 27 11:25:03 2004 NAKAMURA, Hiroshi diff --git a/io.c b/io.c index ecc297117d..7f6b8f438e 100644 --- a/io.c +++ b/io.c @@ -411,7 +411,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