delete-file on stream deletes the file twice and raises error
Bug #406271 reported by
John Fremlin
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Fix Released
|
Medium
|
Unassigned |
Bug Description
(let ((stream (open "bug" :direction :output :if-does-not-exist :create)))
(assert stream)
(delete-file stream))
causes error couldn't delete bug: No such file or directory
[Condition of type SB-INT:
delete-file calls (close :abort t) first, which deletes the file, then tries to delete the file a second time, causing the error.
This is very annoying because it is useful to be able to detect if the file was safely deleted. It means anardb does not work on SBCL.
This is SBCL 1.0.29.11.debian,
Changed in sbcl: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in sbcl: | |
status: | Confirmed → Fix Committed |
Changed in sbcl: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Here's my take on it.