[FFmpeg-cvslog] av_tempfile: change mode for fallback to 0600 to match mkstemp()

Michael Niedermayer git at videolan.org
Sun Oct 16 22:43:11 CEST 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Oct 16 22:13:20 2011 +0200| [e8e13358adea658869b83d73a94bd1b8d79f837b] | committer: Michael Niedermayer

av_tempfile: change mode for fallback to 0600 to match mkstemp()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e8e13358adea658869b83d73a94bd1b8d79f837b
---

 libavutil/file.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavutil/file.c b/libavutil/file.c
index 882a985..88f2b52 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);



More information about the ffmpeg-cvslog mailing list