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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for the patch. merged.


On Sun, Jan 20, 2013 at 6:54 AM, Matthieu Herrb <matthieu.herrb@xxxxxxx> wrote:
Signed-off-by: Matthieu Herrb <matthieu.herrb@xxxxxxx>
---
 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

_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/fontconfig



--
Akira TAGOH
_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/fontconfig

[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux