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 82426c1bab..abdaeae9ae 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) | |||
1484 | if (strcmp(outfilename, "-")) | 1484 | if (strcmp(outfilename, "-")) |
1485 | { | 1485 | { |
1486 | fileout = open(outfilename, firstfile ? O_WRONLY | O_CREAT : | 1486 | fileout = open(outfilename, firstfile ? O_WRONLY | O_CREAT : |
1487 | O_WRONLY | O_APPEND); | 1487 | O_WRONLY | O_APPEND, 0666); |
1488 | if (fileout < 0) | 1488 | if (fileout < 0) |
1489 | { | 1489 | { |
1490 | printf( "Could not open -dehout file %s\n... using stdout.\n", | 1490 | 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 f970b66b5a..8aab9fc3cf 100644 --- a/apps/plugins/doom/g_game.c +++ b/apps/plugins/doom/g_game.c | |||
@@ -2770,7 +2770,7 @@ boolean G_CheckDemoStatus (void) | |||
2770 | int endtime = I_GetTime (); | 2770 | int endtime = I_GetTime (); |
2771 | // killough -- added fps information and made it work for longer demos: | 2771 | // killough -- added fps information and made it work for longer demos: |
2772 | unsigned realtics = endtime-starttime; | 2772 | unsigned realtics = endtime-starttime; |
2773 | int fd=open(GAMEBASE "timedemo.txt",O_WRONLY | O_CREAT); | 2773 | int fd=open(GAMEBASE "timedemo.txt",O_WRONLY | O_CREAT,0666); |
2774 | fdprintf (fd,"Timed %d gametics in %d realtics = %d frames per second", | 2774 | fdprintf (fd,"Timed %d gametics in %d realtics = %d frames per second", |
2775 | (unsigned) gametic, realtics, | 2775 | (unsigned) gametic, realtics, |
2776 | (unsigned) gametic * TICRATE/ realtics); | 2776 | (unsigned) gametic * TICRATE/ realtics); |
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 | ||
diff --git a/apps/plugins/doom/r_data.c b/apps/plugins/doom/r_data.c index f6328dac17..17800f231c 100644 --- a/apps/plugins/doom/r_data.c +++ b/apps/plugins/doom/r_data.c | |||
@@ -721,7 +721,7 @@ cache; | |||
721 | 721 | ||
722 | // Use cached translucency filter if it's available | 722 | // Use cached translucency filter if it's available |
723 | 723 | ||
724 | if ((cachefd<0) ? cachefd = open(GAMEBASE"tranmap.dat",O_WRONLY | O_CREAT) , 1 : | 724 | if ((cachefd<0) ? cachefd = open(GAMEBASE"tranmap.dat",O_WRONLY | O_CREAT, 0666) , 1 : |
725 | read(cachefd, &cache, sizeof(cache)) != sizeof(cache) || | 725 | read(cachefd, &cache, sizeof(cache)) != sizeof(cache) || |
726 | cache.pct != tran_filter_pct || | 726 | cache.pct != tran_filter_pct || |
727 | memcmp(cache.playpal, playpal, sizeof cache.playpal) || | 727 | 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 c8016ff302..9aea9ca8f4 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, | |||
727 | 727 | ||
728 | canvas_makefilename(canvas, filenamebuf, buf2, MAXPDSTRING); | 728 | canvas_makefilename(canvas, filenamebuf, buf2, MAXPDSTRING); |
729 | sys_bashfilename(buf2, buf2); | 729 | sys_bashfilename(buf2, buf2); |
730 | #ifdef ROCKBOX | ||
731 | if ((fd = open(buf2, BINCREATE)) < 0) | ||
732 | #else | ||
733 | if ((fd = open(buf2, BINCREATE, 0666)) < 0) | 730 | if ((fd = open(buf2, BINCREATE, 0666)) < 0) |
734 | #endif | ||
735 | return (-1); | 731 | return (-1); |
736 | 732 | ||
737 | if (write(fd, headerbuf, headersize) < headersize) | 733 | 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 6c7316aca7..b7c9a925d4 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) | |||
641 | mode |= O_BINARY; | 641 | mode |= O_BINARY; |
642 | #endif | 642 | #endif |
643 | sys_bashfilename(s, namebuf); | 643 | sys_bashfilename(s, namebuf); |
644 | return (open(namebuf, mode)); | 644 | return (open(namebuf, mode, 0666)); |
645 | } | 645 | } |
646 | 646 | ||
647 | #ifndef ROCKBOX | 647 | #ifndef ROCKBOX |