Temporary files used to accept file uploads were not closed properly. This resulted in a file descriptor leak, which was unlikely to be serious because of the short lifespan of CGI programs and the fact that very few forms upload many files at once. However, on the Windows platform and possibly some others, file locking semantics prevented file uploads from working at all with these files not properly closed. Fixed in 2.05. Changes 2.04: Documentation fixes: the cgiHtmlEscape, cgiHtmlEscapeData, cgiValueEscape, and cgiValueEscapeData routines were named incorrectly in the manual. No code changes in version 2.04. Changes 2.03: Support for setting cookies has been reimplemented. The new code closely follows the actual practice of web sites that successfully use cookies, rather than attempting to implement the specification. The new code can successfully set more than one cookie at a time in typical web browsers.
19 lines
388 B
Text
19 lines
388 B
Text
$NetBSD: patch-af,v 1.2 2006/01/06 22:46:51 adam Exp $
|
|
|
|
--- cgictest.c.orig 2004-04-22 22:49:47.000000000 +0200
|
|
+++ cgictest.c
|
|
@@ -42,7 +42,13 @@ void Cookies();
|
|
void LoadEnvironment();
|
|
void SaveEnvironment();
|
|
|
|
-int cgiMain() {
|
|
+int main() {
|
|
+
|
|
+ /*
|
|
+ * Initialize the library environment.
|
|
+ */
|
|
+ cgiInit();
|
|
+
|
|
#ifdef DEBUG
|
|
LoadEnvironment();
|
|
#endif /* DEBUG */
|