openbsd-ports/www/dillo/patches/patch-src_cookies_c
pvalchev 695561419c Update to new version (0.8.6) and unbreak.
From new maintainer Jim Uhl <juhl@mala.bc.ca>
2006-09-22 04:13:19 +00:00

29 lines
824 B
Plaintext

$OpenBSD: patch-src_cookies_c,v 1.5 2006/09/22 04:13:19 pvalchev Exp $
--- src/cookies.c.orig Wed Mar 29 10:48:13 2006
+++ src/cookies.c Sun Jul 2 18:00:44 2006
@@ -15,7 +15,6 @@
* http://www.cis.ohio-state.edu/cs/Services/rfc/rfc-text/rfc2965.txt
*/
-#define DEBUG_LEVEL 10
#include "debug.h"
@@ -97,13 +96,13 @@ static FILE *Cookies_fopen(const char *f
DEBUG_MSG(10, "Cookies: Created file: %s\n", filename);
F_in = Cookies_fopen(filename, NULL);
+
+ /* set close on exec */
+ fcntl(fileno(F_in), F_SETFD, FD_CLOEXEC | fcntl(fileno(F_in), F_GETFD));
} else {
DEBUG_MSG(10, "Cookies: Could not create file: %s!\n", filename);
}
}
-
- /* set close on exec */
- fcntl(fileno(F_in), F_SETFD, FD_CLOEXEC | fcntl(fileno(F_in), F_GETFD));
return F_in;
}