diff options
| author | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-05-27 11:22:30 +0000 |
|---|---|---|
| committer | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-05-27 11:22:30 +0000 |
| commit | 7ebf21fe5ed61cbb30b443875b3b53b720d7f485 (patch) | |
| tree | 2d8940b1a8fb10eb17115dcdbe60aebcd023c7d5 | |
| parent | 2f35c3faf88dfed13ce17c71e397d2c768751e33 (diff) | |
| download | ruby-7ebf21fe5ed61cbb30b443875b3b53b720d7f485.tar.gz ruby-7ebf21fe5ed61cbb30b443875b3b53b720d7f485.tar.xz ruby-7ebf21fe5ed61cbb30b443875b3b53b720d7f485.zip | |
* io.c (rb_io_fwrite): check all case errno != 0 [ruby-dev:23648]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | io.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Thu May 27 20:22:05 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp> + + * io.c (rb_io_fwrite): check all case errno != 0 [ruby-dev:23648] + Thu May 27 14:53:13 2004 WATANABE Hirofumi <eban@ruby-lang.org> * io.c (rb_io_fwrite): workaround for bcc32's fwrite bug. @@ -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 |
