summaryrefslogtreecommitdiff
path: root/apps/plugins/frotz/files.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/frotz/files.c')
-rw-r--r--apps/plugins/frotz/files.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/frotz/files.c b/apps/plugins/frotz/files.c
index 1baaa4073f..7ca916186c 100644
--- a/apps/plugins/frotz/files.c
+++ b/apps/plugins/frotz/files.c
@@ -74,7 +74,7 @@ void script_open (void)
74 74
75 /* Opening in "at" mode doesn't work for script_erase_input... */ 75 /* Opening in "at" mode doesn't work for script_erase_input... */
76 76
77 if ((sfp = rb->open (script_name, O_RDWR|O_CREAT)) != -1) { 77 if ((sfp = rb->open (script_name, O_RDWR|O_CREAT, 0666)) != -1) {
78 78
79 fseek (sfp, 0, SEEK_END); 79 fseek (sfp, 0, SEEK_END);
80 80
@@ -290,7 +290,7 @@ void record_open (void)
290 290
291 strcpy (command_name, new_name); 291 strcpy (command_name, new_name);
292 292
293 if ((rfp = rb->open (new_name, O_WRONLY|O_CREAT|O_TRUNC)) != -1) 293 if ((rfp = rb->open (new_name, O_WRONLY|O_CREAT|O_TRUNC, 0666)) != -1)
294 ostream_record = TRUE; 294 ostream_record = TRUE;
295 else 295 else
296 print_string ("Cannot open file\n"); 296 print_string ("Cannot open file\n");