Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
04b1b0a6
Commit
04b1b0a6
authored
Mar 19, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vlc_opendir: simplify and partly revert previous commit
opendir() sets close-on-exec anyway.
parent
09814f3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
12 deletions
+1
-12
src/posix/filesystem.c
src/posix/filesystem.c
+1
-12
No files found.
src/posix/filesystem.c
View file @
04b1b0a6
...
...
@@ -133,18 +133,7 @@ int vlc_mkdir (const char *dirname, mode_t mode)
*/
DIR
*
vlc_opendir
(
const
char
*
dirname
)
{
#ifdef O_DIRECTORY
int
fd
=
vlc_open
(
dirname
,
O_RDONLY
|
O_DIRECTORY
);
#else
/* If O_DIRECTORY is missing. fdopendir() will deal with ENOTDIR. */
int
fd
=
vlc_open
(
dirname
,
O_RDONLY
);
#endif
if
(
fd
==
-
1
)
return
NULL
;
DIR
*
dir
=
fdopendir
(
fd
);
if
(
dir
==
NULL
)
close
(
fd
);
return
dir
;
return
opendir
(
dirname
);
}
/**
...
...
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