]> git.pld-linux.org Git - packages/lighttpd.git/blob - lighttpd-empty_cgi_handler.patch
- fix for ticket #31 (http://trac.lighttpd.net/trac/ticket/31)
[packages/lighttpd.git] / lighttpd-empty_cgi_handler.patch
1 from http://trac.lighttpd.net/trac/changeset/35
2
3 --- trunk/src/mod_cgi.c (revision 34)
4 +++ trunk/src/mod_cgi.c (revision 35)
5 @@ -690,12 +690,14 @@
6         
7  #ifndef __WIN32        
8         
9 -       /* stat the exec file */
10 -       if (-1 == (stat(cgi_handler->ptr, &st))) {
11 -               log_error_write(srv, __FILE__, __LINE__, "sbss", 
12 -                               "stat for cgi-handler", cgi_handler,
13 -                               "failed:", strerror(errno));
14 -               return -1;
15 +       if (cgi_handler->used > 1) {
16 +               /* stat the exec file */
17 +               if (-1 == (stat(cgi_handler->ptr, &st))) {
18 +                       log_error_write(srv, __FILE__, __LINE__, "sbss", 
19 +                                       "stat for cgi-handler", cgi_handler,
20 +                                       "failed:", strerror(errno));
21 +                       return -1;
22 +               }
23         }
24         
25         if (pipe(to_cgi_fds)) {
This page took 0.048782 seconds and 3 git commands to generate.