From d241bd0d20a12908f0c2e1739da6f64629e7ee34 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Thu, 16 Aug 2018 06:40:22 +0000 Subject: [PATCH] When importing file areas from a file (e.g. FILEGATE.ZXX), and the dir's "short name" (e.g. derived from the "AREA tag" from FILEGATE.ZXX) is the same as a pre-existing dir, just over-write that dir - don't create a new one. --- src/sbbs3/scfg/scfgxfr2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sbbs3/scfg/scfgxfr2.c b/src/sbbs3/scfg/scfgxfr2.c index efd576f04f..0f8566c0db 100644 --- a/src/sbbs3/scfg/scfgxfr2.c +++ b/src/sbbs3/scfg/scfgxfr2.c @@ -841,6 +841,8 @@ void xfer_cfg() if(tmpdir.path[0] && strcmp(cfg.dir[j]->path, tmpdir.path) == 0) /* same path? overwrite the dir entry */ break; + if(stricmp(cfg.dir[j]->sname, tmpdir.sname) == 0) + break; } else { if((cfg.lib[i]->code_prefix[0] || cfg.lib[cfg.dir[j]->lib]->code_prefix[0])) continue; -- GitLab