[vlc-commits] posix: do not open("/tmp") on non-Linux

Rémi Denis-Courmont git at videolan.org
Mon Feb 12 22:58:07 CET 2018


vlc/vlc-3.0 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Feb 12 23:57:45 2018 +0200| [ba3ec085d02918f86fb495410c124b219768aa95] | committer: Rémi Denis-Courmont

posix: do not open("/tmp") on non-Linux

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=ba3ec085d02918f86fb495410c124b219768aa95
---

 src/posix/filesystem.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/posix/filesystem.c b/src/posix/filesystem.c
index 0a7f0a7ccb..2e393de719 100644
--- a/src/posix/filesystem.c
+++ b/src/posix/filesystem.c
@@ -112,7 +112,7 @@ int vlc_mkstemp (char *template)
 int vlc_memfd (void)
 {
     int fd;
-#ifdef O_TMPFILE
+#if O_TMPFILE
     fd = vlc_open ("/tmp", O_RDWR|O_TMPFILE, S_IRUSR|S_IWUSR);
     if (fd != -1)
         return fd;



More information about the vlc-commits mailing list