Skip to content
Snippets Groups Projects
Commit 68df9812 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 9a269b15
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #4559 passed
...@@ -1793,6 +1793,7 @@ void alter_areas(str_list_t add_area, str_list_t del_area, fidoaddr_t addr, cons ...@@ -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 */ if(rename(outpath,cfg.areafile)) /* Rename new AREAS.BBS file */
lprintf(LOG_ERR,"ERROR line %d renaming %s to %s",__LINE__,outpath,cfg.areafile); 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) 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