From 9dbc282796e9a4d5a2a8cc7d1c8e29b9154e91c0 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Tue, 22 Jan 2013 10:26:41 +0900 Subject: [PATCH] Add missing file descriptor to F_DUPFD_CLOEXEC Patch from Matthieu Herrb --- src/fccompat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fccompat.c b/src/fccompat.c index 2aa29dd..5ec2135 100644 --- a/src/fccompat.c +++ b/src/fccompat.c @@ -84,7 +84,7 @@ FcMakeTempfile (char *template) # ifdef F_DUPFD_CLOEXEC if (fd != -1) { - int newfd = fcntl(fd, F_DUPFD_CLOEXEC); + int newfd = fcntl(fd, F_DUPFD_CLOEXEC, STDIN_FILENO); close(fd); fd = newfd;