Commit 0acee310 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Forget to change the call to nscheck in beginexp to obey the new

protocol for external scripts. Now that Mike has been successfully
embarrased in front of everyone, I will document said protocol:

	$status < 0 - Fatal error. Email output to tbops.
	$status = 0 - Everything okay!
	$status > 0 - Expected error. Give results to user only.

Of course, only 4 scripts have been adapted to the new protocol, but
thats okay. I'm sure Mike will trip over them all eventually.
parent a764da8b
......@@ -716,7 +716,7 @@ if (isset($syntax)) {
echo "<h2>Syntax Check Results</h2>\n";
echo "</center>\n";
if ($retval) {
if ($retval < 0) {
SUEXECERROR(SUEXEC_ACTION_DIE);
#
# Never returns ...
......@@ -724,6 +724,17 @@ if (isset($syntax)) {
die("");
}
# Parse Error.
if ($retval) {
echo "<br><br><h2>
Parse Failure($retval): Output as follows:
</h2>
<br>
<XMP>$suexec_output</XMP>\n";
PAGEFOOTER();
die("");
}
echo "<center><br>";
echo "<br>";
echo "<h3>Your NS file looks good!</h3>";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment