]> gitweb.factorcode.org Git - factor.git/commit
io.files: implement (file-writer-secure)
authorDoug Coleman <doug.coleman@gmail.com>
Sun, 24 Mar 2024 17:14:11 +0000 (12:14 -0500)
committerDoug Coleman <doug.coleman@gmail.com>
Sun, 24 Mar 2024 17:14:11 +0000 (12:14 -0500)
commita259c0f4dbcb72ff726d0d6808a8b8f602700bab
treeb096195abcf3abb621471ba157f23f8f142f924d
parentcefa1516a76e64ee32a9a96bf3f4cf2fb8e6ac51
io.files: implement (file-writer-secure)

We want a way to open a temp file securely and return the stream.
Opening a file to reserve the filename is not enough in some cases according
to https://tldp.org/HOWTO/Secure-Programs-HOWTO/avoid-race.html
basis/io/files/unix/unix.factor
basis/io/files/windows/windows.factor
core/io/files/files.factor