Now that I've got Apache2 behaving fairly well, I'm getting a couple of errors returned from a cgi that has been working fine for a long time.

The syntax checks out fine, so there's obviously something I need to change with this setgid thing


"The server encountered an internal error or misconfiguration"

[error] [client 127.0.0.1] Premature end of script headers: stringcalc.cgi, referer: http://127.0.0.1/~jd/stringcalc.html

[error] [client 127.0.0.1] Insecure dependency in eval while running setgid at /cgi-bin/stringcalc.cgi line 273., referer: http://127.0.0.1/~jd/stringcalc.html


The chunk about l. 273 is like this:


sub getcopper {
undef $sc;
undef $cov1;
undef $cov2;

$cu = (($d * 10) - $mwg{$mwg}) * 100 / 2 / $loss;
for (25, 30, 40, 60, 70, 75) {
$x = $cu / 100 * $_;
eval("\$c$_ = sprintf \"%.0f\", $x");
} ### etc.

Any ideas?

JD


Reply via email to