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
...@@ -355,13 +355,15 @@ bool sbbs_t::unpack_qwk(char *packet,uint hubnum) ...@@ -355,13 +355,15 @@ bool sbbs_t::unpack_qwk(char *packet,uint hubnum)
delfiles(cfg.temp_dir,"*.NDX"); delfiles(cfg.temp_dir,"*.NDX");
SAFEPRINTF(str,"%sMESSAGES.DAT",cfg.temp_dir); SAFEPRINTF(str,"%sMESSAGES.DAT",cfg.temp_dir);
remove(str); removecase(str);
SAFEPRINTF(str,"%sDOOR.ID",cfg.temp_dir); SAFEPRINTF(str,"%sDOOR.ID",cfg.temp_dir);
remove(str); removecase(str);
SAFEPRINTF(str,"%sCONTROL.DAT",cfg.temp_dir); SAFEPRINTF(str,"%sCONTROL.DAT",cfg.temp_dir);
remove(str); removecase(str);
SAFEPRINTF(str,"%sNETFLAGS.DAT",cfg.temp_dir); 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); dir=opendir(cfg.temp_dir);
while(dir!=NULL && (dirent=readdir(dir))!=NULL) { while(dir!=NULL && (dirent=readdir(dir))!=NULL) {
......
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