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/pdbox/PDa/src | |
parent | 3772a0872989447a275073eec8d9ced3e38d03a5 (diff) | |
download | rockbox-930a8a5050e46fb1c190b701d4913466beeb76e4.tar.gz rockbox-930a8a5050e46fb1c190b701d4913466beeb76e4.zip |
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/pdbox/PDa/src')
-rw-r--r-- | apps/plugins/pdbox/PDa/src/d_soundfile.c | 4 | ||||
-rw-r--r-- | apps/plugins/pdbox/PDa/src/m_binbuf.c | 2 |
2 files changed, 1 insertions, 5 deletions
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, 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 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) mode |= O_BINARY; #endif sys_bashfilename(s, namebuf); - return (open(namebuf, mode)); + return (open(namebuf, mode, 0666)); } #ifndef ROCKBOX |