wsapi.cgi uses "$@" to get the path to the script. This doesn't work if the script path is a relative filename such as 'fnord.cgi'; the path parsing fails later on as it gets confused about where the script is.
I've managed to bodge it by using "$PWD/$@", but it should really be canonicalising the path.
(Apache's suexec does this; it seems to cd into the cgi-bin directory before running the script.)
wsapi.cgi uses "$@" to get the path to the script. This doesn't work if the script path is a relative filename such as 'fnord.cgi'; the path parsing fails later on as it gets confused about where the script is.
I've managed to bodge it by using "$PWD/$@", but it should really be canonicalising the path.
(Apache's suexec does this; it seems to cd into the cgi-bin directory before running the script.)