]> git.pld-linux.org Git - packages/lighttpd.git/blob - lighttpd-bug-1836.patch
- deny access to CVS files; rel 6
[packages/lighttpd.git] / lighttpd-bug-1836.patch
1 Index: mod_cgi.c
2 ===================================================================
3 --- mod_cgi.c   (revision 2162)
4 +++ mod_cgi.c   (revision 2163)
5 @@ -987,6 +987,8 @@
6                         *c = '/';
7                 }
8  
9 +               openDevNull(STDERR_FILENO);
10 +
11                 /* we don't need the client socket */
12                 for (i = 3; i < 256; i++) {
13                         if (i != srv->errorlog_fd) close(i);
14 @@ -995,7 +997,7 @@
15                 /* exec the cgi */
16                 execve(args[0], args, env.ptr);
17  
18 -               log_error_write(srv, __FILE__, __LINE__, "sss", "CGI failed:", strerror(errno), args[0]);
19 +               /* log_error_write(srv, __FILE__, __LINE__, "sss", "CGI failed:", strerror(errno), args[0]); */
20  
21                 /* */
22                 SEGFAULT();
This page took 0.027515 seconds and 3 git commands to generate.