695561419c
From new maintainer Jim Uhl <juhl@mala.bc.ca>
29 lines
824 B
Plaintext
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;
|
|
}
|