Increase the depth of directories scanned for config files

Some users want to use more deeply nested folders than currently
supported. Increase the max depth to 20 which should be plenty for
all.

See also issue: # 364

Signed-off-by: Selva Nair <selva.nair@gmail.com>
pull/367/head
Selva Nair 2020-09-08 12:49:30 -04:00 committed by Gert Doering
parent 21ebb22dab
commit af7fc7d223
1 changed files with 2 additions and 2 deletions

View File

@ -306,7 +306,7 @@ BuildFileList0(const TCHAR *config_dir, int recurse_depth, int group, int flags)
FindClose(find_handle);
/* optionally loop over each subdir */
if (recurse_depth <= 1)
if (recurse_depth < 1)
return;
find_handle = FindFirstFile (find_string, &find_obj);
@ -337,7 +337,7 @@ void
BuildFileList()
{
static bool issue_warnings = true;
int recurse_depth = 4; /* read config_dir and 3 levels of sub-directories */
int recurse_depth = 20; /* maximum number of levels below config_dir to recurse into */
int flags = 0;
int root = 0;