Project

General

Profile

Actions

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

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0