in WRITE mode open the output file with mode 0666; umask will filter it
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21689 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
1 parent
a650f2a9d7
commit
b8ec24807b
1 file changed
+1
-1
@@ -136,7 +136,7 @@ static int open_f(stream_t *stream,int mode, void* opts, int* file_format) {
|
||||
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);
|
||||
|
||||
Reference in new issue
Block a user