mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
ea6b149fd8
commit
8fb6f790fe
2 changed files with 6 additions and 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
|
||||
|
|
2
io.c
2
io.c
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue