Commit b6e7d7be authored by Leigh B Stoller's avatar Leigh B Stoller

Couple of little fixes to bitrotted NS file support.

parent ad8b9eac
......@@ -753,7 +753,18 @@ function Do_RunScript()
return;
}
}
if (preg_match("/^import/m", $script)) {
$command = "webrungenilib";
}
elseif (preg_match("/^source tb_compat/m", $script)) {
$command = "webns2rspec -a";
}
else {
SPITAJAX_ERROR(1, "Unknown script type");
return;
}
$infname = tempnam("/tmp", "genilibin");
$outfname = tempnam("/tmp", "genilibout");
......@@ -767,7 +778,7 @@ function Do_RunScript()
# Invoke the backend.
#
$retval = SUEXEC($this_uid, "nobody",
"webrungenilib -o $outfname $infname",
"$command -o $outfname $infname",
SUEXEC_ACTION_IGNORE);
if ($retval != 0) {
......
......@@ -425,6 +425,9 @@ function Do_CheckScript()
}
$command .= " -p " . $ajax_args["pid"];
}
else {
$command .= " -a ";
}
}
else {
SPITAJAX_ERROR(1, "Unknown script type");
......
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