aboutsummaryrefslogtreecommitdiffhomepage
path: root/stream
diff options
context:
space:
mode:
authorGravatar nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-12-19 21:11:58 +0000
committerGravatar nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-12-19 21:11:58 +0000
commitb8ec24807b5dc4bbbb9a23f36d716967474efed5 (patch)
tree321467e794fa3594ac913dffa486d31813bfbed3 /stream
parenta650f2a9d784f4ef789cee806c42d656b6ce2a5a (diff)
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
Diffstat (limited to 'stream')
-rw-r--r--stream/stream_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/stream_file.c b/stream/stream_file.c
index f2b3ccdf59..fa5b0126b9 100644
--- a/stream/stream_file.c
+++ b/stream/stream_file.c
@@ -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);