diff options
| author | Teruaki Kawashima <teru@rockbox.org> | 2010-11-07 11:45:20 +0000 |
|---|---|---|
| committer | Teruaki Kawashima <teru@rockbox.org> | 2010-11-07 11:45:20 +0000 |
| commit | 930a8a5050e46fb1c190b701d4913466beeb76e4 (patch) | |
| tree | a73696c6cdc3e1a8afcb9cce2d1b5c1c2c87831c /apps/plugins/doom/m_misc.c | |
| parent | 3772a0872989447a275073eec8d9ced3e38d03a5 (diff) | |
| download | rockbox-930a8a5050e46fb1c190b701d4913466beeb76e4.zip rockbox-930a8a5050e46fb1c190b701d4913466beeb76e4.tar.gz rockbox-930a8a5050e46fb1c190b701d4913466beeb76e4.tar.bz2 rockbox-930a8a5050e46fb1c190b701d4913466beeb76e4.tar.xz | |
set mode argument for open() where O_CREAT flag is/can be set.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28527 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/doom/m_misc.c')
| -rw-r--r-- | apps/plugins/doom/m_misc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/doom/m_misc.c b/apps/plugins/doom/m_misc.c index 1e4b75d..586a4a1 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) int handle; int count; - handle = open ( name, O_WRONLY | O_CREAT | O_TRUNC); + handle = open ( name, O_WRONLY | O_CREAT | O_TRUNC, 0666); if (handle == -1) return false; @@ -805,7 +805,7 @@ void M_SaveDefaults (void) uint32_t magic = DOOM_CONFIG_MAGIC; uint32_t ver = DOOM_CONFIG_VERSION; - fd = open (GAMEBASE"default.dfg", O_WRONLY|O_CREAT|O_TRUNC); + fd = open (GAMEBASE"default.dfg", O_WRONLY|O_CREAT|O_TRUNC, 0666); if (fd<0) return; // can't write the file, but don't complain |