changeset 21673:38cbc1a55fb5

in WRITE mode open the output file with mode 0666; umask will filter it
author nicodvb
date Tue, 19 Dec 2006 21:11:58 +0000
parents 7438195728a0
children 74d09d421f72
files stream/stream_file.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/stream/stream_file.c	Tue Dec 19 17:58:59 2006 +0000
+++ b/stream/stream_file.c	Tue Dec 19 21:11:58 2006 +0000
@@ -136,7 +136,7 @@
     if(mode == STREAM_READ)
       f=open(filename,m);
     else
-      f=open(filename,m, S_IRUSR|S_IWUSR);
+      f=open(filename,m, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH);
     if(f<0) {
       mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_FileNotFound,filename);
       m_struct_free(&stream_opts,opts);