Add missing fcntl(..., F_DUPFD_CLOEXEC) argument.
This commit is contained in:
parent
ead261fb97
commit
de08f67d60
2
dist/fontconfig/src/fccompat.c
vendored
2
dist/fontconfig/src/fccompat.c
vendored
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user