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 f0bbaa60 authored by rswindell's avatar rswindell
Browse files

Make the load()/require() search path of last resort the CWD. This makes the

error message if failure to find the file to load less confusing.
parent 47d7d8d0
......@@ -590,6 +590,10 @@ js_load(JSContext *cx, uintN argc, jsval *arglist)
/* lastly, search exec dir */
if(path[0]==0)
SAFEPRINTF2(path,"%s%s",p->cfg->exec_dir,filename);
if(!fexistcase(path)) {
SAFECOPY(path, filename);
}
}
free(filename);
......
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