1
0
Fork 0
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:
Dan Everton 2006-05-30 11:26:41 +00:00
parent e41c85806e
commit b2ec716534
10 changed files with 11 additions and 11 deletions

View file

@ -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;