Actions
Bug #5645
closedYAML.load_file prevents following File.delete
Description
In ruby 1.9.2 and earlier this works:
d = YAML::load_file(fname)
File.delete(fname)
In 1.9.3 the delete fails with permission denied.
The work around is to use:
d = File.open(fname) { |f| YAML::load(f) }
File.delete(fname)
Actions
Like0
Like0