Author: glen                         Date: Mon Feb 21 09:14:54 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- back again, for 1.3.11

---- Files affected:
SOURCES:
   lighttpd-empty_cgi_handler.patch (1.2 -> 1.3)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/lighttpd-empty_cgi_handler.patch
diff -u /dev/null SOURCES/lighttpd-empty_cgi_handler.patch:1.3
--- /dev/null   Mon Feb 21 10:14:54 2005
+++ SOURCES/lighttpd-empty_cgi_handler.patch    Mon Feb 21 10:14:49 2005
@@ -0,0 +1,25 @@
+from http://trac.lighttpd.net/trac/changeset/35
+
+--- trunk/src/mod_cgi.c        (revision 34)
++++ trunk/src/mod_cgi.c        (revision 35)
+@@ -690,12 +690,14 @@
+       
+ #ifndef __WIN32       
+       
+-      /* stat the exec file */
+-      if (-1 == (stat(cgi_handler->ptr, &st))) {
+-              log_error_write(srv, __FILE__, __LINE__, "sbss", 
+-                              "stat for cgi-handler", cgi_handler,
+-                              "failed:", strerror(errno));
+-              return -1;
++      if (cgi_handler->used > 1) {
++              /* stat the exec file */
++              if (-1 == (stat(cgi_handler->ptr, &st))) {
++                      log_error_write(srv, __FILE__, __LINE__, "sbss", 
++                                      "stat for cgi-handler", cgi_handler,
++                                      "failed:", strerror(errno));
++                      return -1;
++              }
+       }
+       
+       if (pipe(to_cgi_fds)) {
================================================================

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to