aboutsummaryrefslogtreecommitdiffstats
path: root/slowcgi.c (unfollow)
Commit message (Expand)AuthorLines
2021-05-27Ignore SIGPIPE by default and restore default behaviour before executing the ...claudio-8/+4
2021-05-27accept_reserve() counter function argument doesn't need to be volatile. Revis...millert-4/+3
2021-01-26Do not send debug messages to syslog by default6.8.1Wynn Wolf Arbor-0/+3
2020-05-24Allow specifying -d multiple times. Only print the fcgi header data if debug ...claudio-7/+4
2020-05-24Just a bit of KNF. OK florian@claudio-4/+4
2020-05-24Use -1 instead of WAIT_ANYWynn Wolf Arbor-1/+1
2020-05-24Add getdtablecount(2)Wynn Wolf Arbor-0/+1
2020-05-24Include grp.hWynn Wolf Arbor-0/+1
2020-05-24Add queue.h from OpenBSDWynn Wolf Arbor-1/+2
2020-05-24Add strlcpy(3) from OpenBSDWynn Wolf Arbor-0/+6
2020-05-24Use pledge(2) only on OpenBSDWynn Wolf Arbor-0/+4
2020-05-24Use corresponding attributes for __packed and __deadWynn Wolf Arbor-0/+8
2020-05-24When calculating the fd limit before accepting a new connection also account ...claudio-2/+2
2020-05-24Call daemon with 0 as first argument so that it changes the cwd to /. It is n...florian-2/+2
2020-05-24Make the owner of fcgi socket configurable.florian-6/+12
2020-05-24consistently use the evtimer wrappers around the connection timeout.florian-3/+3
2020-05-24Sync the severity of the syslog_* functions shared between identd, slowcgi, t...florian-5/+5
2020-05-24Add format attribute to logger functions. Fix format string while here. Input...florian-15/+28
2020-05-24As suggested by the FastCGI spec, zero-pad the response buffers to be aligned...reyk-3/+22
2020-05-24typo in error message: to -> tootb@openbsd.org-2/+2
2020-05-24pledge(2) for slowcgi. After initialization slowcgi accepts from a AF_UNIX so...florian-1/+6
2020-05-24re-shuffle slowcgi_listen to run less code as root. OK benno@florian-15/+16
2020-05-24Output the contents of the environment in debug mode which is most helpful in...millert-1/+2
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