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

@ -34,7 +34,7 @@ int configfile_save(const char *filename, struct configdata *cfg,
char buf[MAX_PATH];
cfg_rb->snprintf(buf, MAX_PATH, "/.rockbox/rocks/%s", filename);
fd = cfg_rb->creat(buf, 0);
fd = cfg_rb->creat(buf, O_WRONLY);
if(fd < 0)
return fd*10 - 1;