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

Remove dummy utf8_open() mode parameter in absence of O_CREAT flag

parent aee03175
...@@ -1390,7 +1390,7 @@ static int ProbeDVD( demux_t *p_demux, char *psz_name ) ...@@ -1390,7 +1390,7 @@ static int ProbeDVD( demux_t *p_demux, char *psz_name )
if( !strcmp( psz_name, "-" ) ) /* stdin -> file access */ if( !strcmp( psz_name, "-" ) ) /* stdin -> file access */
return VLC_EGENERIC; return VLC_EGENERIC;
if( (i_fd = utf8_open( psz_name, O_RDONLY |O_NONBLOCK, 0666 )) == -1 ) if( (i_fd = utf8_open( psz_name, O_RDONLY |O_NONBLOCK )) == -1 )
{ {
return VLC_SUCCESS; /* Let dvdnav_open() do the probing */ return VLC_SUCCESS; /* Let dvdnav_open() do the probing */
} }
......
...@@ -411,7 +411,7 @@ static int open_file (access_t *p_access, const char *path) ...@@ -411,7 +411,7 @@ static int open_file (access_t *p_access, const char *path)
path++; path++;
#endif #endif
int fd = utf8_open (path, O_RDONLY | O_NONBLOCK /* O_LARGEFILE*/, 0666); int fd = utf8_open (path, O_RDONLY | O_NONBLOCK);
if (fd == -1) if (fd == -1)
{ {
msg_Err (p_access, "cannot open file %s (%m)", path); msg_Err (p_access, "cannot open file %s (%m)", path);
......
...@@ -94,7 +94,7 @@ static int Open (vlc_object_t *p_this) ...@@ -94,7 +94,7 @@ static int Open (vlc_object_t *p_this)
else else
{ {
msg_Dbg (p_access, "opening file %s", path); msg_Dbg (p_access, "opening file %s", path);
fd = utf8_open (path, O_RDONLY | O_NOCTTY, 0666); fd = utf8_open (path, O_RDONLY | O_NOCTTY);
} }
if (fd == -1) if (fd == -1)
......
...@@ -299,7 +299,7 @@ static int Control( access_t *p_access, int i_query, va_list args ) ...@@ -299,7 +299,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
*****************************************************************************/ *****************************************************************************/
static int open_file( access_t *p_access, const char *path ) static int open_file( access_t *p_access, const char *path )
{ {
int fd = utf8_open( path, O_RDONLY | O_NONBLOCK /* O_LARGEFILE*/, 0666 ); int fd = utf8_open( path, O_RDONLY | O_NONBLOCK );
if( fd == -1 ) if( fd == -1 )
{ {
msg_Err( p_access, "cannot open file %s (%m)", path ); msg_Err( p_access, "cannot open file %s (%m)", path );
......
...@@ -873,7 +873,7 @@ static int OpenVCDImage( vlc_object_t * p_this, const char *psz_dev, ...@@ -873,7 +873,7 @@ static int OpenVCDImage( vlc_object_t * p_this, const char *psz_dev,
msg_Dbg( p_this,"guessing vcd image file: %s", psz_vcdfile ); msg_Dbg( p_this,"guessing vcd image file: %s", psz_vcdfile );
p_vcddev->i_vcdimage_handle = utf8_open( psz_vcdfile, p_vcddev->i_vcdimage_handle = utf8_open( psz_vcdfile,
O_RDONLY | O_NONBLOCK | O_BINARY, 0666 ); O_RDONLY | O_NONBLOCK | O_BINARY );
while( fgets( line, 1024, cuefile ) && !b_found ) while( fgets( line, 1024, cuefile ) && !b_found )
{ {
...@@ -903,7 +903,7 @@ static int OpenVCDImage( vlc_object_t * p_this, const char *psz_dev, ...@@ -903,7 +903,7 @@ static int OpenVCDImage( vlc_object_t * p_this, const char *psz_dev,
} else psz_vcdfile = strdup( filename ); } else psz_vcdfile = strdup( filename );
msg_Dbg( p_this,"using vcd image file: %s", psz_vcdfile ); msg_Dbg( p_this,"using vcd image file: %s", psz_vcdfile );
p_vcddev->i_vcdimage_handle = utf8_open( psz_vcdfile, p_vcddev->i_vcdimage_handle = utf8_open( psz_vcdfile,
O_RDONLY | O_NONBLOCK | O_BINARY, 0666 ); O_RDONLY | O_NONBLOCK | O_BINARY );
} }
b_found = true; b_found = true;
default: default:
......
...@@ -587,7 +587,7 @@ gnutls_Addx509File( vlc_object_t *p_this, ...@@ -587,7 +587,7 @@ gnutls_Addx509File( vlc_object_t *p_this,
{ {
struct stat st; struct stat st;
int fd = utf8_open (psz_path, O_RDONLY, 0); int fd = utf8_open (psz_path, O_RDONLY);
if (fd == -1) if (fd == -1)
goto error; goto error;
......
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