summaryrefslogtreecommitdiff
path: root/apps/playlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/playlist.c')
-rw-r--r--apps/playlist.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/playlist.c b/apps/playlist.c
index d90de38f37..da801968ef 100644
--- a/apps/playlist.c
+++ b/apps/playlist.c
@@ -336,7 +336,7 @@ static void new_playlist(struct playlist_info* playlist, const char *dir,
336static void create_control(struct playlist_info* playlist) 336static void create_control(struct playlist_info* playlist)
337{ 337{
338 playlist->control_fd = open(playlist->control_filename, 338 playlist->control_fd = open(playlist->control_filename,
339 O_CREAT|O_RDWR|O_TRUNC); 339 O_CREAT|O_RDWR|O_TRUNC, 0666);
340 if (playlist->control_fd < 0) 340 if (playlist->control_fd < 0)
341 { 341 {
342 if (check_rockboxdir()) 342 if (check_rockboxdir())
@@ -414,7 +414,7 @@ static int recreate_control(struct playlist_info* playlist)
414 return -1; 414 return -1;
415 415
416 playlist->control_fd = open(playlist->control_filename, 416 playlist->control_fd = open(playlist->control_filename,
417 O_CREAT|O_RDWR|O_TRUNC); 417 O_CREAT|O_RDWR|O_TRUNC, 0666);
418 if (playlist->control_fd < 0) 418 if (playlist->control_fd < 0)
419 return -1; 419 return -1;
420 420
@@ -3375,7 +3375,7 @@ int playlist_save(struct playlist_info* playlist, char *filename)
3375 else 3375 else
3376 { 3376 {
3377 /* some applications require a BOM to read the file properly */ 3377 /* some applications require a BOM to read the file properly */
3378 fd = open(path, O_CREAT|O_WRONLY|O_TRUNC); 3378 fd = open(path, O_CREAT|O_WRONLY|O_TRUNC, 0666);
3379 } 3379 }
3380 if (fd < 0) 3380 if (fd < 0)
3381 { 3381 {