]> git.pld-linux.org Git - packages/lighttpd.git/commitdiff
- back again, for 1.3.11
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 21 Feb 2005 09:14:49 +0000 (09:14 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    lighttpd-empty_cgi_handler.patch -> 1.3

lighttpd-empty_cgi_handler.patch [new file with mode: 0644]

diff --git a/lighttpd-empty_cgi_handler.patch b/lighttpd-empty_cgi_handler.patch
new file mode 100644 (file)
index 0000000..77ffafc
--- /dev/null
@@ -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)) {
This page took 0.113716 seconds and 4 git commands to generate.