diff options
author | Akira TAGOH <akira@tagoh.org> | 2013-01-22 10:26:41 +0900 |
---|---|---|
committer | Akira TAGOH <akira@tagoh.org> | 2013-01-22 10:26:41 +0900 |
commit | 9dbc282796e9a4d5a2a8cc7d1c8e29b9154e91c0 (patch) | |
tree | 2817d86ede248234a4fced4a45b6f37e4e35ffa1 | |
parent | 6118781f7f5dba672d19a841cc231661bf5fb59d (diff) |
Add missing file descriptor to F_DUPFD_CLOEXEC
Patch from Matthieu Herrb
-rw-r--r-- | src/fccompat.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |