[FFmpeg-devel] [PATCH] av_tempfile: use avpriv_open()

Michael Niedermayer michaelni at gmx.at
Thu Aug 8 21:38:18 CEST 2013


Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
 libavutil/file.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/file.c b/libavutil/file.c
index 8d03534..7e762dc 100644
--- a/libavutil/file.c
+++ b/libavutil/file.c
@@ -188,7 +188,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, 0600);
+    fd = avpriv_open(*filename, O_RDWR | O_BINARY | O_CREAT | O_EXCL, 0600);
 #else
     snprintf(*filename, len, "/tmp/%sXXXXXX", prefix);
     fd = mkstemp(*filename);
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list