I noticed that glkterm creates temp files unsafely, so I applied a simple fix, but I don’t know how to cause glk_fileref_create_temp() to execute so as to test my fix. Under what circumstances will a GLK-enabled interpreter use glk_fileref_create_temp()? I used Glulxe on some test programs written in Inform6 and tried all the verbs that cause file IO without success.
It’s not used by the standard library. You can run Glulxercise (type “restore” to run the relevant test).
Looks good. Thanks! I’ve submitted a pull request for fixing this in glkterm.
Thanks. That warning has been around forever, of course, and I’ve been lazy about it.