wanted: open-temp-file and with-temp-file
I think SBCL should provide SB-EXT:
It should be based on tmpfile(3) on Unix, and whatever Windows provides.
I regularly see code that uses something like (open (make-temp-
contain a race condition that can be abused as a DoS attack -- depending on the
implementation of OPEN and :IF-EXISTS. SBCL seems to do it right, passing O_EXCL and
O_CREATE to open(3).
Providing such a function, and documenting it appropriately, may rise attention of the
problem. And, of course, it would be convenient for a need that comes up quite frequently.
|Tobias C. Rittweiler (tcr) wrote : Re: [Bug 393104] Re: wanted: open-temp-file and with-temp-file||#4|