You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These need a condition handler around rename-file and delete-file to handle implementations that raise file-error if there is an error, the solution isn't probe-file because of the inherent TOCTTOU in probe-file:
I'm open to fixes like from #223 - I didn't even know LOAD had a keyword
like that, so that's a nice solution.
For other stuff, it depends on how complicated it gets.
The probe-file in the first copy-file could probably be a truename instead.
The duplicate copy-file is probably unintentional.
The code is littered with TOCTTOU issues.
These need a condition handler around
rename-file
anddelete-file
to handle implementations that raisefile-error
if there is an error, the solution isn'tprobe-file
because of the inherent TOCTTOU inprobe-file
:quicklisp-client/quicklisp/utils.lisp
Lines 28 to 32 in 10b61e5
quicklisp-client/quicklisp/utils.lisp
Lines 55 to 57 in 10b61e5
This
probe-file
incopy-file
seems completely unneeded:quicklisp-client/quicklisp/utils.lisp
Line 50 in 10b61e5
Also, it appears there's a duplicate version of copy-file:
quicklisp-client/quicklisp/bundle.lisp
Lines 270 to 283 in 10b61e5
I sent a PR with an example: #233
If such fixes are acceptable, I'll work on this issue.
The text was updated successfully, but these errors were encountered: