comparison stream/stream_file.c @ 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 110286e8bbec
children 829b1f30a07f
comparison
equal deleted inserted replaced
21672:7438195728a0 21673:38cbc1a55fb5
134 } 134 }
135 } else { 135 } else {
136 if(mode == STREAM_READ) 136 if(mode == STREAM_READ)
137 f=open(filename,m); 137 f=open(filename,m);
138 else 138 else
139 f=open(filename,m, S_IRUSR|S_IWUSR); 139 f=open(filename,m, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH);
140 if(f<0) { 140 if(f<0) {
141 mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_FileNotFound,filename); 141 mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_FileNotFound,filename);
142 m_struct_free(&stream_opts,opts); 142 m_struct_free(&stream_opts,opts);
143 return STREAM_ERROR; 143 return STREAM_ERROR;
144 } 144 }