Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
951dd377
Commit
951dd377
authored
Feb 14, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use vlc_openat, fix support for non-
UTF-8
systems
parent
37ae6248
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
modules/access/directory.c
modules/access/directory.c
+1
-2
modules/access/file.c
modules/access/file.c
+2
-2
No files found.
modules/access/directory.c
View file @
951dd377
...
...
@@ -316,8 +316,7 @@ block_t *DirBlock (access_t *p_access)
DIR
*
handle
;
#ifdef HAVE_FDOPENDIR
/* TODO: ToLocale */
int
fd
=
openat
(
dirfd
(
current
->
handle
),
entry
,
O_RDONLY
);
int
fd
=
vlc_openat
(
dirfd
(
current
->
handle
),
entry
,
O_RDONLY
);
if
(
fd
!=
-
1
)
{
handle
=
fdopendir
(
fd
);
...
...
modules/access/file.c
View file @
951dd377
...
...
@@ -149,10 +149,10 @@ int Open( vlc_object_t *p_this )
else
if
(
*
end
==
'/'
&&
end
>
path
)
{
char
*
name
=
decode_URI_duplicate
(
end
-
1
);
if
(
name
!=
NULL
)
/* TODO: ToLocale(), FD_CLOEXEC */
if
(
name
!=
NULL
)
{
name
[
0
]
=
'.'
;
fd
=
openat
(
oldfd
,
name
,
O_RDONLY
|
O_NONBLOCK
);
fd
=
vlc_
openat
(
oldfd
,
name
,
O_RDONLY
|
O_NONBLOCK
);
free
(
name
);
}
}
...
...
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