[Fontconfig] [PATCH] Add missing fcntl(..., F_DUPFD_CLOEXEC) argument.

Matthieu Herrb matthieu.herrb at laas.fr
Sat Jan 19 13:54:07 PST 2013


Signed-off-by: Matthieu Herrb <matthieu.herrb at laas.fr>
---
 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;
-- 
1.8.0.1



More information about the Fontconfig mailing list