diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-03-07 19:14:02 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-03-07 19:14:02 -0800 |
commit | a0674f7b85430201ab40b73d775781d9eeeed065 (patch) | |
tree | ab520d62f8bf89ae1f0b79e49986bde7f92bb6b5 /lisp.lua | |
parent | 88827db20d7a2d1acde328f0b77351475d516d4a (diff) | |
download | teliva-a0674f7b85430201ab40b73d775781d9eeeed065.tar.gz |
hokey primitive to create temporary file
The trouble with os.tmpname() is that it always creates in /tmp. If /tmp is in a different volume from our real filename, os.rename() will fail. This new primitive doesn't support primitive paths yet. I'm also again nervous about the security implications of my whole approach. What if we create an inner function called start_writing? Would we be able to do anything inside it? I'm starting to suspect this whole approach of going by caller name is broken. An app could also create inner functions called 'main'..
Diffstat (limited to 'lisp.lua')
0 files changed, 0 insertions, 0 deletions