diff options
Diffstat (limited to 'apps/plugins/frotz')
-rw-r--r-- | apps/plugins/frotz/fastmem.c | 4 | ||||
-rw-r--r-- | apps/plugins/frotz/files.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/frotz/fastmem.c b/apps/plugins/frotz/fastmem.c index ba0c95f5ce..ce424af1f2 100644 --- a/apps/plugins/frotz/fastmem.c +++ b/apps/plugins/frotz/fastmem.c | |||
@@ -837,7 +837,7 @@ void z_save (void) | |||
837 | 837 | ||
838 | /* Open auxilary file */ | 838 | /* Open auxilary file */ |
839 | 839 | ||
840 | if ((gfp = rb->open (new_name, O_WRONLY|O_CREAT|O_TRUNC)) < 0) | 840 | if ((gfp = rb->open (new_name, O_WRONLY|O_CREAT|O_TRUNC, 0666)) < 0) |
841 | goto finished; | 841 | goto finished; |
842 | 842 | ||
843 | /* Write auxilary file */ | 843 | /* Write auxilary file */ |
@@ -859,7 +859,7 @@ void z_save (void) | |||
859 | 859 | ||
860 | /* Open game file */ | 860 | /* Open game file */ |
861 | 861 | ||
862 | if ((gfp = rb->open (new_name, O_WRONLY|O_CREAT|O_TRUNC)) < 0) | 862 | if ((gfp = rb->open (new_name, O_WRONLY|O_CREAT|O_TRUNC, 0666)) < 0) |
863 | goto finished; | 863 | goto finished; |
864 | 864 | ||
865 | success = save_quetzal (gfp, story_fp); | 865 | success = save_quetzal (gfp, story_fp); |
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"); |