intfiction.org

The Interactive Fiction Community Forum
It is currently Tue Sep 25, 2018 6:59 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Sun Sep 09, 2018 7:53 pm 
Offline
User avatar

Joined: Mon Dec 12, 2011 7:03 pm
Posts: 554
Location: Washington
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.

_________________
David Griffith


Top
 Profile Send private message  
Reply with quote  
PostPosted: Sun Sep 09, 2018 8:14 pm 
Offline

Joined: Sat Jan 23, 2010 4:56 pm
Posts: 5754
It's not used by the standard library. You can run Glulxercise (type "restore" to run the relevant test).


Top
 Profile Send private message  
Reply with quote  
PostPosted: Sun Sep 09, 2018 9:39 pm 
Offline
User avatar

Joined: Mon Dec 12, 2011 7:03 pm
Posts: 554
Location: Washington
Looks good. Thanks! I've submitted a pull request for fixing this in glkterm.

_________________
David Griffith


Top
 Profile Send private message  
Reply with quote  
PostPosted: Sun Sep 09, 2018 9:41 pm 
Offline

Joined: Sat Jan 23, 2010 4:56 pm
Posts: 5754
Thanks. That warning has been around forever, of course, and I've been lazy about it.


Top
 Profile Send private message  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group