ruby-changes:62963
From: Samuel <ko1@a...>
Date: Tue, 15 Sep 2020 19:53:35 +0900 (JST)
Subject: [ruby-changes:62963] 026ba68c10 (master): Fix handling of FMODE_PREP.
https://git.ruby-lang.org/ruby.git/commit/?id=026ba68c10 From 026ba68c1056fb6729868456fba3382f8b9a0fcf Mon Sep 17 00:00:00 2001 From: Samuel Williams <samuel.williams@o...> Date: Tue, 15 Sep 2020 18:50:42 +1200 Subject: Fix handling of FMODE_PREP. diff --git a/io.c b/io.c index e5fac3c..b615aca 100644 --- a/io.c +++ b/io.c @@ -1306,7 +1306,7 @@ rb_io_from_fd(int f) https://github.com/ruby/ruby/blob/trunk/io.c#L1306 rb_io_t *fptr; RB_IO_POINTER(io, fptr); - fptr->mode &= ~FMODE_PREP; + fptr->mode |= FMODE_PREP; return io; } -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/