]> git.sesse.net Git - vlc/commitdiff
Add missing argument to fcntl(F_DUPFD_CLOEXEC)
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 12 Apr 2014 08:35:31 +0000 (11:35 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 12 Apr 2014 08:35:58 +0000 (11:35 +0300)
src/posix/filesystem.c

index 326af9ec30446e510a1eef87555757a2effd1ccb..e26d3cda2b7e3e2bc4261727b9e4c795945c09bf 100644 (file)
@@ -252,7 +252,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
     {