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
68e1c0ad
Commit
68e1c0ad
authored
Aug 24, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
filesystem: deal with Linux O_TMPFILE open() flag correctly
parent
4a9766d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
src/posix/filesystem.c
src/posix/filesystem.c
+5
-2
No files found.
src/posix/filesystem.c
View file @
68e1c0ad
...
@@ -42,6 +42,9 @@
...
@@ -42,6 +42,9 @@
#endif
#endif
#include <dirent.h>
#include <dirent.h>
#include <sys/socket.h>
#include <sys/socket.h>
#ifndef O_TMPFILE
# define O_TMPFILE 0
#endif
#include <vlc_common.h>
#include <vlc_common.h>
#include <vlc_fs.h>
#include <vlc_fs.h>
...
@@ -53,7 +56,7 @@ int vlc_open (const char *filename, int flags, ...)
...
@@ -53,7 +56,7 @@ int vlc_open (const char *filename, int flags, ...)
va_list
ap
;
va_list
ap
;
va_start
(
ap
,
flags
);
va_start
(
ap
,
flags
);
if
(
flags
&
O_CREAT
)
if
(
flags
&
(
O_CREAT
|
O_TMPFILE
)
)
mode
=
va_arg
(
ap
,
unsigned
int
);
mode
=
va_arg
(
ap
,
unsigned
int
);
va_end
(
ap
);
va_end
(
ap
);
...
@@ -73,7 +76,7 @@ int vlc_openat (int dir, const char *filename, int flags, ...)
...
@@ -73,7 +76,7 @@ int vlc_openat (int dir, const char *filename, int flags, ...)
va_list
ap
;
va_list
ap
;
va_start
(
ap
,
flags
);
va_start
(
ap
,
flags
);
if
(
flags
&
O_CREAT
)
if
(
flags
&
(
O_CREAT
|
O_TMPFILE
)
)
mode
=
va_arg
(
ap
,
unsigned
int
);
mode
=
va_arg
(
ap
,
unsigned
int
);
va_end
(
ap
);
va_end
(
ap
);
...
...
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