1
0
mirror of https://github.com/mpv-player/mpv synced 2025-04-11 04:01:31 +00:00

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:
nicodvb 2006-12-19 21:11:58 +00:00
parent a650f2a9d7
commit b8ec24807b

View File

@ -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);