Skip to content
Snippets Groups Projects
Commit c599a0b2 authored by rswindell's avatar rswindell
Browse files

Ignore (and delete) TOREADER.EXT (a QWKE additional metadata file) if it

exists in a .QWK packet. Also, delete the other control/metadata files
case-insensitively (just in case).
parent d68bb4a5
No related branches found
No related tags found
No related merge requests found
......@@ -355,13 +355,15 @@ bool sbbs_t::unpack_qwk(char *packet,uint hubnum)
delfiles(cfg.temp_dir,"*.NDX");
SAFEPRINTF(str,"%sMESSAGES.DAT",cfg.temp_dir);
remove(str);
removecase(str);
SAFEPRINTF(str,"%sDOOR.ID",cfg.temp_dir);
remove(str);
removecase(str);
SAFEPRINTF(str,"%sCONTROL.DAT",cfg.temp_dir);
remove(str);
removecase(str);
SAFEPRINTF(str,"%sNETFLAGS.DAT",cfg.temp_dir);
remove(str);
removecase(str);
SAFEPRINTF(str,"%sTOREADER.EXT",cfg.temp_dir);
removecase(str);
dir=opendir(cfg.temp_dir);
while(dir!=NULL && (dirent=readdir(dir))!=NULL) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment