[Fontconfig] [PATCH] Add missing fcntl(..., F_DUPFD_CLOEXEC) argument.
Akira TAGOH
akira at tagoh.org
Mon Jan 21 17:37:51 PST 2013
Thanks for the patch. merged.
On Sun, Jan 20, 2013 at 6:54 AM, Matthieu Herrb <matthieu.herrb at laas.fr>wrote:
> Signed-off-by: Matthieu Herrb <matthieu.herrb at laas.fr>
> ---
> 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 at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/fontconfig
>
--
Akira TAGOH
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/fontconfig/attachments/20130122/3f8e25c7/attachment.html>
More information about the Fontconfig
mailing list