From 4429c3ce301af72e04967d41573a59343894c9d2 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Wed, 7 Mar 2018 00:57:02 +0000
Subject: [PATCH] Change for Nelgin: If the sysop does not specify a file
 transfer path for a directory, but did specify a custom data directory, use
 the custom data directory as the parent of the auto-generated sub-directory
 to use for the file storage path. If this breaks existing configs (are you
 files are offline?), sorry.

---
 src/sbbs3/load_cfg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/sbbs3/load_cfg.c b/src/sbbs3/load_cfg.c
index 3a97d0c2e7..5fdacc7744 100644
--- a/src/sbbs3/load_cfg.c
+++ b/src/sbbs3/load_cfg.c
@@ -199,7 +199,7 @@ void prep_cfg(scfg_t* cfg)
 		strlwr(cfg->dir[i]->code); 		/* data filenames are all lowercase */
 
 		if(!cfg->dir[i]->path[0])		/* no file storage path specified */
-            sprintf(cfg->dir[i]->path,"%sdirs/%s/",cfg->data_dir,cfg->dir[i]->code);
+            sprintf(cfg->dir[i]->path,"%s%s/",cfg->dir[i]->data_dir,cfg->dir[i]->code);
 		else if(cfg->lib[cfg->dir[i]->lib]->parent_path[0])
 			prep_dir(cfg->lib[cfg->dir[i]->lib]->parent_path, cfg->dir[i]->path, sizeof(cfg->dir[i]->path));
 		else
-- 
GitLab