summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dist/fontconfig/src/fccompat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dist/fontconfig/src/fccompat.c b/dist/fontconfig/src/fccompat.c
index 169cab9ed..a2c3bf349 100644
--- a/dist/fontconfig/src/fccompat.c
+++ b/dist/fontconfig/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;