diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-21 10:09:33 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-21 10:09:33 +0000 |
commit | b1166a04694766f24385a5a91e028e39f7bd2461 (patch) | |
tree | d3e81fe5a5226b838aa9c8cdc6205b7f488464e2 /io.c | |
parent | ffc456d0ed1acf478ff991c88e35b2038dccb402 (diff) | |
download | ruby-b1166a04694766f24385a5a91e028e39f7bd2461.tar.gz |
* io.c (copy_stream_body): call rb_io_check_readable and
rb_io_check_writable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -6628,6 +6628,7 @@ copy_stream_body(VALUE arg) stp->close_src = 1; } GetOpenFile(src_io, src_fptr); + rb_io_check_readable(src_fptr); src_fd = src_fptr->fd; } stp->src_fd = src_fd; @@ -6660,6 +6661,7 @@ copy_stream_body(VALUE arg) stp->dst = dst_io; } GetOpenFile(dst_io, dst_fptr); + rb_io_check_writable(dst_fptr); dst_fd = dst_fptr->fd; } stp->dst_fd = dst_fd; |