openbsd-ports/www/dillo/patches/patch-src_cookies_c
ajacoutot af93f62e24 - major upgrade to dillo 2.0
it now uses the fltk2 toolkit instead of gtk1
add a patch to fix accessing websites that have ipv6 addr while you don't

full changelog:
http://cvs.auriga.wearlab.de/cgi-bin/cvsweb.cgi/dillo2/ChangeLog?rev=HEAD;cvsroot=dillo

from new MAINTAINER James Turner (former maintainer Jim Uhl resigned)
requested by kili@
2008-10-19 08:42:55 +00:00

14 lines
543 B
Plaintext

$OpenBSD: patch-src_cookies_c,v 1.6 2008/10/19 08:42:55 ajacoutot Exp $
--- src/cookies.c.orig Sat Oct 18 11:12:23 2008
+++ src/cookies.c Sat Oct 18 11:12:44 2008
@@ -92,6 +92,9 @@ static FILE *Cookies_fopen(const char *filename, char
MSG("Cookies: Created file: %s\n", filename);
F_in = fopen(filename, "r");
+
+ /* set close on exec */
+ fcntl(fileno(F_in), F_SETFD, FD_CLOEXEC | fcntl(fileno(F_in), F_GETFD));
} else {
MSG("Cookies: Could not create file: %s!\n", filename);
}