From 026ba68c1056fb6729868456fba3382f8b9a0fcf Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Tue, 15 Sep 2020 18:50:42 +1200 Subject: Fix handling of FMODE_PREP. --- io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io.c b/io.c index e5fac3c18c..b615aca8c1 100644 --- a/io.c +++ b/io.c @@ -1306,7 +1306,7 @@ rb_io_from_fd(int f) rb_io_t *fptr; RB_IO_POINTER(io, fptr); - fptr->mode &= ~FMODE_PREP; + fptr->mode |= FMODE_PREP; return io; } -- cgit v1.2.3