Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit b6cd0cc0 authored by rswindell's avatar rswindell

A script premature terminating with exit(0) should no longer be considered

an errorneous exit (and trigger the -! pause on error).
parent 340fff3c
......@@ -991,7 +991,8 @@ long js_exec(const char *fname, char** args)
mfprintf(statfp,"Using JavaScript exit_code: %s",p);
free(p);
JS_ValueToInt32(js_cx,rval,&result);
}
} else if(!exec_result)
result = EXIT_FAILURE;
js_EvalOnExit(js_cx, js_glob, &cb);
JS_ReportPendingException(js_cx);
......@@ -1004,8 +1005,6 @@ long js_exec(const char *fname, char** args)
if(js_buf!=NULL)
free(js_buf);
if(result == 0 && !exec_result)
return EXIT_FAILURE;
return(result);
}
......
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