summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2013-03-09 14:01:05 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2013-03-09 14:01:05 +0000
commit8ae9e4f43e887b8911e599fc9c67c8812da49949 (patch)
treed6d993cf0cee6983c992df2003415978a791df23
parent5fae7d64945e138d615ae096ceb020c3af050169 (diff)
Add missing fcntl(..., F_DUPFD_CLOEXEC) argument.
-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;