1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix handling of FMODE_PREP.

This commit is contained in:
Samuel Williams 2020-09-15 18:50:42 +12:00
parent a9b2a96c5c
commit 026ba68c10
Notes: git 2020-09-15 19:53:42 +09:00

2
io.c
View file

@ -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;
}