diff options
Diffstat (limited to 'apps/settings.c')
-rw-r--r-- | apps/settings.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/settings.c b/apps/settings.c index 0c5560a522..690243b537 100644 --- a/apps/settings.c +++ b/apps/settings.c | |||
@@ -193,7 +193,7 @@ static bool write_nvram_data(char* buf, int max_len) | |||
193 | max_len-NVRAM_DATA_START-1,0xffffffff); | 193 | max_len-NVRAM_DATA_START-1,0xffffffff); |
194 | memcpy(&buf[4],&crc32,4); | 194 | memcpy(&buf[4],&crc32,4); |
195 | #ifndef HAVE_RTC_RAM | 195 | #ifndef HAVE_RTC_RAM |
196 | fd = open(NVRAM_FILE,O_CREAT|O_TRUNC|O_WRONLY); | 196 | fd = open(NVRAM_FILE,O_CREAT|O_TRUNC|O_WRONLY, 0666); |
197 | if (fd >= 0) | 197 | if (fd >= 0) |
198 | { | 198 | { |
199 | int len = write(fd,buf,max_len); | 199 | int len = write(fd,buf,max_len); |
@@ -532,7 +532,7 @@ static bool settings_write_config(const char* filename, int options) | |||
532 | int i; | 532 | int i; |
533 | int fd; | 533 | int fd; |
534 | char value[MAX_PATH]; | 534 | char value[MAX_PATH]; |
535 | fd = open(filename,O_CREAT|O_TRUNC|O_WRONLY); | 535 | fd = open(filename,O_CREAT|O_TRUNC|O_WRONLY, 0666); |
536 | if (fd < 0) | 536 | if (fd < 0) |
537 | return false; | 537 | return false; |
538 | fdprintf(fd, "# .cfg file created by rockbox %s - " | 538 | fdprintf(fd, "# .cfg file created by rockbox %s - " |