diff options
Diffstat (limited to 'apps/plugins')
| -rw-r--r-- | apps/plugins/doom/d_deh.c | 2 | ||||
| -rw-r--r-- | apps/plugins/doom/g_game.c | 2 | ||||
| -rw-r--r-- | apps/plugins/doom/m_misc.c | 4 | ||||
| -rw-r--r-- | apps/plugins/doom/r_data.c | 2 | ||||
| -rw-r--r-- | apps/plugins/pdbox/PDa/src/d_soundfile.c | 4 | ||||
| -rw-r--r-- | apps/plugins/pdbox/PDa/src/m_binbuf.c | 2 |
6 files changed, 6 insertions, 10 deletions
diff --git a/apps/plugins/doom/d_deh.c b/apps/plugins/doom/d_deh.c index 82426c1..abdaeae 100644 --- a/apps/plugins/doom/d_deh.c +++ b/apps/plugins/doom/d_deh.c @@ -1484,7 +1484,7 @@ void ProcessDehFile(const char *filename, const char *outfilename, int lumpnum) if (strcmp(outfilename, "-")) { fileout = open(outfilename, firstfile ? O_WRONLY | O_CREAT : - O_WRONLY | O_APPEND); + O_WRONLY | O_APPEND, 0666); if (fileout < 0) { printf( "Could not open -dehout file %s\n... using stdout.\n", diff --git a/apps/plugins/doom/g_game.c b/apps/plugins/doom/g_game.c index f970b66..8aab9fc 100644 --- a/apps/plugins/doom/g_game.c +++ b/apps/plugins/doom/g_game.c @@ -2770,7 +2770,7 @@ boolean G_CheckDemoStatus (void) int endtime = I_GetTime (); // killough -- added fps information and made it work for longer demos: unsigned realtics = endtime-starttime; - int fd=open(GAMEBASE "timedemo.txt",O_WRONLY | O_CREAT); + int fd=open(GAMEBASE "timedemo.txt",O_WRONLY | O_CREAT,0666); fdprintf (fd,"Timed %d gametics in %d realtics = %d frames per second", (unsigned) gametic, realtics, (unsigned) gametic * TICRATE/ realtics); 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 diff --git a/apps/plugins/doom/r_data.c b/apps/plugins/doom/r_data.c index f6328da..17800f2 100644 --- a/apps/plugins/doom/r_data.c +++ b/apps/plugins/doom/r_data.c @@ -721,7 +721,7 @@ cache; // Use cached translucency filter if it's available - if ((cachefd<0) ? cachefd = open(GAMEBASE"tranmap.dat",O_WRONLY | O_CREAT) , 1 : + if ((cachefd<0) ? cachefd = open(GAMEBASE"tranmap.dat",O_WRONLY | O_CREAT, 0666) , 1 : read(cachefd, &cache, sizeof(cache)) != sizeof(cache) || cache.pct != tran_filter_pct || memcmp(cache.playpal, playpal, sizeof cache.playpal) || diff --git a/apps/plugins/pdbox/PDa/src/d_soundfile.c b/apps/plugins/pdbox/PDa/src/d_soundfile.c index c8016ff..9aea9ca 100644 --- a/apps/plugins/pdbox/PDa/src/d_soundfile.c +++ b/apps/plugins/pdbox/PDa/src/d_soundfile.c @@ -727,11 +727,7 @@ static int create_soundfile(t_canvas *canvas, const char *filename, canvas_makefilename(canvas, filenamebuf, buf2, MAXPDSTRING); sys_bashfilename(buf2, buf2); -#ifdef ROCKBOX - if ((fd = open(buf2, BINCREATE)) < 0) -#else if ((fd = open(buf2, BINCREATE, 0666)) < 0) -#endif return (-1); if (write(fd, headerbuf, headersize) < headersize) diff --git a/apps/plugins/pdbox/PDa/src/m_binbuf.c b/apps/plugins/pdbox/PDa/src/m_binbuf.c index 6c7316a..b7c9a92 100644 --- a/apps/plugins/pdbox/PDa/src/m_binbuf.c +++ b/apps/plugins/pdbox/PDa/src/m_binbuf.c @@ -641,7 +641,7 @@ static int binbuf_doopen(char *s, int mode) mode |= O_BINARY; #endif sys_bashfilename(s, namebuf); - return (open(namebuf, mode)); + return (open(namebuf, mode, 0666)); } #ifndef ROCKBOX |