Commit 7c0169e8 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Don't try to be more clever than umask()

parent 522c49b5
...@@ -42,12 +42,6 @@ ...@@ -42,12 +42,6 @@
#endif #endif
/* For those platforms that don't use these */ /* For those platforms that don't use these */
#ifndef S_IRGRP
# define S_IRGRP 0
#endif
#ifndef S_IROTH
# define S_IROTH 0
#endif
#ifndef STDOUT_FILENO #ifndef STDOUT_FILENO
# define STDOUT_FILENO 1 # define STDOUT_FILENO 1
#endif #endif
...@@ -138,8 +132,7 @@ static int Open( vlc_object_t *p_this ) ...@@ -138,8 +132,7 @@ static int Open( vlc_object_t *p_this )
msg_Dbg( p_access, "using stdout" ); msg_Dbg( p_access, "using stdout" );
} }
else if( ( p_access->p_sys->i_handle = else if( ( p_access->p_sys->i_handle =
open( p_access->psz_name, i_flags, open( p_access->psz_name, i_flags, 0666 ) ) == -1 )
S_IWRITE | S_IREAD | S_IRGRP | S_IROTH ) ) == -1 )
{ {
msg_Err( p_access, "cannot open `%s'", p_access->psz_name ); msg_Err( p_access, "cannot open `%s'", p_access->psz_name );
free( p_access->p_sys ); free( p_access->p_sys );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment