conf-parser: add a boolean flag for config_get_stats_by_path() to control if drop-in configs are checked

Preparation for later commits.
This commit is contained in:
Yu Watanabe
2022-07-23 15:03:48 +09:00
parent d7bddfa109
commit 3f4dfd9d87
3 changed files with 30 additions and 23 deletions
+2 -2
View File
@@ -347,9 +347,9 @@ bool link_config_should_reload(LinkConfigContext *ctx) {
assert(ctx);
r = config_get_stats_by_path(".link", NULL, 0, NETWORK_DIRS, &stats_by_path);
r = config_get_stats_by_path(".link", NULL, 0, NETWORK_DIRS, /* check_dropins = */ true, &stats_by_path);
if (r < 0) {
log_warning_errno(r, "Failed to get stats of .link files: %m");
log_warning_errno(r, "Failed to get stats of .link files, ignoring: %m");
return true;
}