OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74dbb53
)
av_tempfile: change mode for fallback to 0600 to match mkstemp()
author
Michael Niedermayer
<michaelni@gmx.at>
Sun, 16 Oct 2011 20:13:20 +0000
(22:13 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sun, 16 Oct 2011 20:13:20 +0000
(22:13 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavutil/file.c
patch
|
blob
|
history
diff --git
a/libavutil/file.c
b/libavutil/file.c
index
882a985
..
88f2b52
100644
(file)
--- a/
libavutil/file.c
+++ b/
libavutil/file.c
@@
-156,7
+156,7
@@
int av_tempfile(const char *prefix, char **filename, int log_offset, void *log_c
# ifndef O_EXCL
# define O_EXCL 0
# endif
- fd = open(*filename, O_RDWR | O_BINARY | O_CREAT | O_EXCL, 0
444
);
+ fd = open(*filename, O_RDWR | O_BINARY | O_CREAT | O_EXCL, 0
600
);
#else
snprintf(*filename, len, "/tmp/%sXXXXXX", prefix);
fd = mkstemp(*filename);