diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-10-16 22:13:20 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-10-16 22:13:20 +0200 |
commit | e8e13358adea658869b83d73a94bd1b8d79f837b (patch) | |
tree | 017ace95564cd1f2de920c271717cffec50d4996 /libavutil/file.c | |
parent | 74dbb5388e356c085b2f426a5533c08cdc163488 (diff) | |
download | ffmpeg-e8e13358adea658869b83d73a94bd1b8d79f837b.tar.gz |
av_tempfile: change mode for fallback to 0600 to match mkstemp()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/file.c')
-rw-r--r-- | libavutil/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/file.c b/libavutil/file.c index 882a9855ef..88f2b52da1 100644 --- 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, 0444); + fd = open(*filename, O_RDWR | O_BINARY | O_CREAT | O_EXCL, 0600); #else snprintf(*filename, len, "/tmp/%sXXXXXX", prefix); fd = mkstemp(*filename); |