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

Always delete the AREASxxxxxx temp file

When there are no changes (areas added or removed) via an areafix message, the
data/AREASxxxxxx temp file would be left behind. The file was only removed if
areas were added or removed from the area file via areafix message.

The orphaned data/AREASxxxxxxx files were reported via DOVE-Net by Gamgee (PALANTIR)
If you have these stale files, you can safely delete them.
parent addbfc73
Branches
Tags
No related merge requests found
......@@ -1793,6 +1793,7 @@ void alter_areas(str_list_t add_area, str_list_t del_area, fidoaddr_t addr, cons
if(rename(outpath,cfg.areafile)) /* Rename new AREAS.BBS file */
lprintf(LOG_ERR,"ERROR line %d renaming %s to %s",__LINE__,outpath,cfg.areafile);
}
remove(outpath); // expected to fail (file does not exist) much of the time
}
bool add_sub_to_arealist(sub_t* sub, fidoaddr_t uplink)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment