aboutsummaryrefslogtreecommitdiffstats
path: root/slowcgi.c (unfollow)
Commit message (Expand)AuthorLines
2020-05-24Clean up includes, while here fix a white space which lead to a false positiv...florian-5/+5
2020-05-24The kernel doesn't actually care what a sockaddr's sa_len is on input, so don...guenther-5/+3
2020-05-24Replace <sys/param.h> with <limits.h> and other less dirty headers where poss...deraadt-4/+5
2020-05-24read(2) returns ssize_t, not size_tblambert-2/+3
2020-05-24Bail out if the buffer is too small to contain the length of a parameter valu...florian-4/+4
2020-05-24dead stores; pointed out by llvm scan-build; no binary changeflorian-5/+1
2020-05-24pause shadows global; pointed out by gcc; no binary changeflorian-5/+5
2020-05-24mode is unused; pointed out by gcc; no binary changeflorian-2/+2
2020-05-24declare lerr and lerrx __dead; unconfuses llvm scan-buildflorian-12/+12
2020-05-24Instead of doing the fcntl(2) and ioctl(2) song and dance just tell socket(2)...florian-11/+5
2020-05-24Use lerrx instead of errx since the logging subsystem is already initialized....claudio-3/+3
2020-05-24Implement -u (user to drop privs to) and -p flag (path to chroot to). This al...florian-12/+29
2020-05-24Cleanup socket creation. Input ajacoutot some time ago; OK henning@florian-10/+7
2020-05-24My previous attempt to chdir(2) to the directory containing the cgi script wa...florian-5/+10
2020-05-24Calculate the length of name and value for parameters the right way around fo...florian-6/+6
2020-05-24httpd(8) did a chdir(2) to the directory containing the cgi script. As there ...florian-1/+10
2020-05-24jturner pointed out that if one wants to run cgi scripts outside /cgi-bin SCR...florian-2/+6
2020-05-24fix reaper loop that could run indefinitelydjm-2/+5
2020-05-24Initialize sun_len, pointed out by deraadt@. While there also check length of...florian-2/+6
2020-05-24Fix a potential file descriptor overlap in exec_cgi() by making sure that fil...florian-2/+26
2020-05-24We need to loop around waitpid to catch all exited children as we are not gua...florian-19/+20
2020-05-24Do not leak fds in fork(2) error path. pointed out by deraadt@florian-1/+17
2020-05-24Check for EINTR, too. pointed out by deraadt@florian-3/+3
2020-05-24No need for volatile here. pointed out by deraadt@florian-2/+2
2020-05-24spelling, spacing, etcderaadt-18/+20
2020-05-24reserve file descriptors for incoming connections so we will be able to actua...benno-3/+35
2020-05-24Keep track of which fds were closed before and only close those still open. O...florian-4/+16
2020-05-24Do not fiddle with the response queue directly but go through a new slowcgi_a...florian-9/+12
2020-05-24Logging to syslog works better with openlog(3). OK blambertflorian-1/+7
2020-05-24Use a dedicated socketpair for stdin, makes the code more symetric and gets r...florian-15/+25
2020-05-24Calculate correct pointer for fcgi_{begin,end}_request_body. input / OK blambertflorian-3/+3
2020-05-24Calculate correct pointer for end_request; while there initialize reserved to...florian-3/+6
2020-05-24set FD_CLOEXEC OK blambertflorian-1/+8
2020-05-24adjust the names to more accurately reflect the names of structs and function...blambert-65/+65
2020-05-24Sprinkle some comments which clarify the protocol/process flow.blambert-1/+18
2020-05-24When dumping FastCGI protocol headers during debug, dump the "request begin" ...blambert-8/+43
2020-05-24Use the correct buffer size for memory allocation and reads.blambert-5/+9
2020-05-24If the CGI script died due to receipt of signal, pass that back to the HTTP f...blambert-6/+20
2020-05-24slowcgi grows an option to specify an alternate FastCGI socket on which to li...blambert-6/+11
2020-05-24Give slowcgi a style(9) scrubbing. No functional change.blambert-41/+47
2020-05-24move bgplg and slowcgi sockets to /var/www/run input reyk@, guenther@ "move f...florian-2/+2
2020-05-24off by one, from Henri Kemppainen <duclare-at-guu.fi>, thanks!florian-2/+2
2020-05-24Fix pasto where 'c' instead of 'clients' is checked for NULL and add missing ...jasper-2/+3