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

Don't attempt to remove a non-existing qwk-pack semfile

Reduce occurrences of subsequent errors (unsure of root-cause):
!ERROR 2 (No such file or directory) in main.cpp line 2778 (event_thread) removing "/sbbs/data/pack0341.now"

This does seem to be the only location that deleted pack*.now files, so weird that they'd disappear sometime after calling glob(), but I do understand that its theoretically possible.
parent 0c3406ff
No related branches found
No related tags found
No related merge requests found
......@@ -2774,7 +2774,7 @@ void event_thread(void* arg)
sbbs->console&=~CON_L_ECHO;
sbbs->online=FALSE;
}
if(remove(g.gl_pathv[i]))
if(fexist(g.gl_pathv[i]) && remove(g.gl_pathv[i]) != 0)
sbbs->errormsg(WHERE, ERR_REMOVE, g.gl_pathv[i], 0);
if(remove(semfile))
sbbs->errormsg(WHERE, ERR_REMOVE, semfile, 0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment