Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
ff1dbb48
Commit
ff1dbb48
authored
Aug 15, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove dummy utf8_open() mode parameter in absence of O_CREAT flag
parent
aee03175
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
7 deletions
+7
-7
modules/access/dvdnav.c
modules/access/dvdnav.c
+1
-1
modules/access/file.c
modules/access/file.c
+1
-1
modules/access/mmap.c
modules/access/mmap.c
+1
-1
modules/access/mtp.c
modules/access/mtp.c
+1
-1
modules/access/vcd/cdrom.c
modules/access/vcd/cdrom.c
+2
-2
modules/misc/gnutls.c
modules/misc/gnutls.c
+1
-1
No files found.
modules/access/dvdnav.c
View file @
ff1dbb48
...
...
@@ -1390,7 +1390,7 @@ static int ProbeDVD( demux_t *p_demux, char *psz_name )
if
(
!
strcmp
(
psz_name
,
"-"
)
)
/* stdin -> file access */
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 */
}
...
...
modules/access/file.c
View file @
ff1dbb48
...
...
@@ -411,7 +411,7 @@ static int open_file (access_t *p_access, const char *path)
path
++
;
#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
)
{
msg_Err
(
p_access
,
"cannot open file %s (%m)"
,
path
);
...
...
modules/access/mmap.c
View file @
ff1dbb48
...
...
@@ -94,7 +94,7 @@ static int Open (vlc_object_t *p_this)
else
{
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
)
...
...
modules/access/mtp.c
View file @
ff1dbb48
...
...
@@ -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
)
{
int
fd
=
utf8_open
(
path
,
O_RDONLY
|
O_NONBLOCK
/* O_LARGEFILE*/
,
0666
);
int
fd
=
utf8_open
(
path
,
O_RDONLY
|
O_NONBLOCK
);
if
(
fd
==
-
1
)
{
msg_Err
(
p_access
,
"cannot open file %s (%m)"
,
path
);
...
...
modules/access/vcd/cdrom.c
View file @
ff1dbb48
...
...
@@ -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
);
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
)
{
...
...
@@ -903,7 +903,7 @@ static int OpenVCDImage( vlc_object_t * p_this, const char *psz_dev,
}
else
psz_vcdfile
=
strdup
(
filename
);
msg_Dbg
(
p_this
,
"using vcd image file: %s"
,
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
;
default:
...
...
modules/misc/gnutls.c
View file @
ff1dbb48
...
...
@@ -587,7 +587,7 @@ gnutls_Addx509File( vlc_object_t *p_this,
{
struct
stat
st
;
int
fd
=
utf8_open
(
psz_path
,
O_RDONLY
,
0
);
int
fd
=
utf8_open
(
psz_path
,
O_RDONLY
);
if
(
fd
==
-
1
)
goto
error
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment