forked from len0rd/rockbox
Use correct file mode when creating files. Fixes task 5452
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10020 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e41c85806e
commit
b2ec716534
10 changed files with 11 additions and 11 deletions
|
@ -140,7 +140,7 @@ static int write_file(void)
|
|||
|
||||
/* Create a temporary file */
|
||||
rb->snprintf(tmpfilename, MAX_PATH+1, "%s.tmp", filename);
|
||||
fd = rb->creat(tmpfilename, 0);
|
||||
fd = rb->creat(tmpfilename, O_WRONLY);
|
||||
if(fd < 0)
|
||||
return 10 * fd - 1;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue