[vlc-commits] Add missing argument to fcntl(F_DUPFD_CLOEXEC)
Rémi Denis-Courmont
git at videolan.org
Sat Apr 12 10:36:04 CEST 2014
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Apr 12 11:35:31 2014 +0300| [25d5ddb5053f98f4f73f24f853a5ebdf9ce60173] | committer: Rémi Denis-Courmont
Add missing argument to fcntl(F_DUPFD_CLOEXEC)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=25d5ddb5053f98f4f73f24f853a5ebdf9ce60173
---
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 326af9e..e26d3cd 100644
--- a/src/posix/filesystem.c
+++ b/src/posix/filesystem.c
@@ -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
{
More information about the vlc-commits
mailing list