Backport #1916
closed
File.open crashes when flags File::RDONLY | File::APPEND are passed
Added by tmat (Tomas Matousek) over 14 years ago.
Updated about 13 years ago.
Description
=begin
File.open("x.txt", File::RDONLY | File::APPEND) { |f|
p f.read(1)
}
a.rb:15: [BUG] rb_sys_fail(x.txt) - errno == 0
content of x.txt is
fooxxzzzqqqzqq
=end
- Assignee set to usa (Usaku NAKAMURA)
- Status changed from Open to Closed
- % Done changed from 0 to 100
=begin
Applied in changeset r24496.
=end
=begin
Applied in changeset r24824.
=end
- Status changed from Closed to Assigned
- Assignee changed from usa (Usaku NAKAMURA) to wyhaines (Kirk Haines)
- Status changed from Assigned to Closed
=begin
This issue was solved with changeset r26455.
Tomas, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
Also available in: Atom
PDF
Like0
Like0Like0Like0Like0Like0