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)
Updated by tenderlovemaking (Aaron Patterson) about 13 years ago
- Status changed from Open to Closed
- Assignee set to tenderlovemaking (Aaron Patterson)
- % Done changed from 0 to 100
This was fixed by r33775, but the ticket wasn't closed automatically. :-/
Closing now. Thanks for the bug report!
Actions
Like0
Like0