Skip to content
Snippets Groups Projects
Commit bb22b358 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Merge branch 'master' of gitlab.synchro.net:main/sbbs

parents eb5cfeca 10af0650
Branches
Tags
No related merge requests found
...@@ -801,6 +801,10 @@ long sbbs_t::exec_bin(const char *cmdline, csi_t *csi, const char* startup_dir) ...@@ -801,6 +801,10 @@ long sbbs_t::exec_bin(const char *cmdline, csi_t *csi, const char* startup_dir)
SAFEPRINTF2(str,"%s%s",cfg.exec_dir,modname); SAFEPRINTF2(str,"%s%s",cfg.exec_dir,modname);
fexistcase(str); fexistcase(str);
} }
if(!fexist(str)) {
errormsg(WHERE, ERR_EXEC, mod, 0, "module doesn't exist");
return -1;
}
if((file=nopen(str,O_RDONLY))==-1) { if((file=nopen(str,O_RDONLY))==-1) {
errormsg(WHERE,ERR_OPEN,str,O_RDONLY); errormsg(WHERE,ERR_OPEN,str,O_RDONLY);
return(-1); return(-1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment