conf-parser: only read the first found main config file

Follow-up for 93f1da4556
and 8ea288db01

Before the offending commits, we only read the first found
main config file. If the main config file is symlinked to/as
a drop-in, we should break instead of continuing, for it to
be read later.
This commit is contained in:
Mike Yuan
2023-11-22 17:44:54 +00:00
committed by Luca Boccassi
parent 40e1100283
commit 0ca66adfcc
+3 -1
View File
@@ -557,7 +557,7 @@ static int config_parse_many_files(
if (set_contains(inodes, &st)) {
log_debug("%s: symlink to/symlinked as drop-in, will be read later.", *fn);
continue;
break;
}
}
@@ -571,6 +571,8 @@ static int config_parse_many_files(
if (r < 0)
return r;
}
break;
}
/* Then read all the drop-ins. */