My previous attempt to chdir(2) to the directory containing the cgi
authorflorian <florian@openbsd.org>
Wed, 16 Apr 2014 14:43:43 +0000 (14:43 +0000)
committerflorian <florian@openbsd.org>
Wed, 16 Apr 2014 14:43:43 +0000 (14:43 +0000)
commit76f0500effe48b79da2fda8f2da28045472c4f96
tree62120c6224b6b599cb29608ece984906cd95e558
parentede4ff048ebacf55beaf06b58614d64ec5558cde
My previous attempt to chdir(2) to the directory containing the cgi
script was not quite right. slowcgi would try to chdir("") with a
SCRIPT_NAME of /foo.cgi; chdir("/") in that case.
I'm not sure how one would configure nginx/slowcgi to get to that
point though.
OK benno@
usr.sbin/slowcgi/slowcgi.c