[vlc-commits] Add missing argument to fcntl(F_DUPFD_CLOEXEC)

Rémi Denis-Courmont git at videolan.org
Sat Apr 12 10:36:47 CEST 2014


vlc/vlc-2.1 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Apr 12 11:35:31 2014 +0300| [b136de89979c9d51fbc7fef001f0d24f7e1e5f4c] | committer: Rémi Denis-Courmont

Add missing argument to fcntl(F_DUPFD_CLOEXEC)

(cherry picked from commit 25d5ddb5053f98f4f73f24f853a5ebdf9ce60173)

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

 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 9e40f6d..1089677 100644
--- a/src/posix/filesystem.c
+++ b/src/posix/filesystem.c
@@ -268,7 +268,7 @@ int vlc_dup (int oldfd)
     int newfd;
 
 #ifdef F_DUPFD_CLOEXEC
-    newfd = fcntl (oldfd, F_DUPFD_CLOEXEC);
+    newfd = fcntl (oldfd, F_DUPFD_CLOEXEC, 0);
     if (unlikely(newfd == -1 && errno == EINVAL))
 #endif
     {



More information about the vlc-commits mailing list