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 | bb88d4c2f57f44e6c39f54f7beb13eaf4ffd9405 (patch) | |
| tree | 27e627333cdc6c6fe7d4d06ee5c3eba6c057973e | |
| parent | 205fe5606697a5ff237336c5ddb062eafa0e969d (diff) | |
| download | ruby-bb88d4c2f57f44e6c39f54f7beb13eaf4ffd9405.tar.gz ruby-bb88d4c2f57f44e6c39f54f7beb13eaf4ffd9405.tar.xz ruby-bb88d4c2f57f44e6c39f54f7beb13eaf4ffd9405.zip | |
* io.c (rb_io_init_copy): clear PREP flag for copied IO.
fixed: [ruby-dev:27371]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | io.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Sat Oct 8 19:32:56 2005 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * io.c (rb_io_init_copy): clear PREP flag for copied IO. + fixed: [ruby-dev:27371] + Sat Oct 8 19:15:02 2005 Nobuyoshi Nakada <nobu@ruby-lang.org> * parse.y (rb_parser_malloc, rb_parser_free): manage parser stack on @@ -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); |
