summaryrefslogtreecommitdiff
path: root/apps/plugins/doom/m_misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/doom/m_misc.c')
-rw-r--r--apps/plugins/doom/m_misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/doom/m_misc.c b/apps/plugins/doom/m_misc.c
index 1e4b75d8e1..586a4a1c2f 100644
--- a/apps/plugins/doom/m_misc.c
+++ b/apps/plugins/doom/m_misc.c
@@ -96,7 +96,7 @@ boolean M_WriteFile(char const* name,void* source,int length)
96 int handle; 96 int handle;
97 int count; 97 int count;
98 98
99 handle = open ( name, O_WRONLY | O_CREAT | O_TRUNC); 99 handle = open ( name, O_WRONLY | O_CREAT | O_TRUNC, 0666);
100 100
101 if (handle == -1) 101 if (handle == -1)
102 return false; 102 return false;
@@ -805,7 +805,7 @@ void M_SaveDefaults (void)
805 uint32_t magic = DOOM_CONFIG_MAGIC; 805 uint32_t magic = DOOM_CONFIG_MAGIC;
806 uint32_t ver = DOOM_CONFIG_VERSION; 806 uint32_t ver = DOOM_CONFIG_VERSION;
807 807
808 fd = open (GAMEBASE"default.dfg", O_WRONLY|O_CREAT|O_TRUNC); 808 fd = open (GAMEBASE"default.dfg", O_WRONLY|O_CREAT|O_TRUNC, 0666);
809 if (fd<0) 809 if (fd<0)
810 return; // can't write the file, but don't complain 810 return; // can't write the file, but don't complain
811 811