diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-10-08 10:33:24 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-10-08 10:33:24 +0000 |
commit | 8fb6f790fed6f8d6fa33a80d83e55d793c9eb516 (patch) | |
tree | 27e627333cdc6c6fe7d4d06ee5c3eba6c057973e /io.c | |
parent | ea6b149fd8249ece25926b64d87940af32e800be (diff) | |
download | ruby-8fb6f790fed6f8d6fa33a80d83e55d793c9eb516.tar.gz |
* io.c (rb_io_init_copy): clear PREP flag for copied IO.
fixed: [ruby-dev:27371]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3433,7 +3433,7 @@ rb_io_init_copy(VALUE dest, VALUE io) rb_io_flush(io); /* copy OpenFile structure */ - fptr->mode = orig->mode; + fptr->mode = orig->mode & ~FMODE_PREP; fptr->pid = orig->pid; fptr->lineno = orig->lineno; if (orig->path) fptr->path = strdup(orig->path); |