conf-files: introduce CONF_FILES_WARN flag and set it at various places

Closes #40285.
This commit is contained in:
Yu Watanabe
2026-01-16 23:05:33 +09:00
parent f25d9e7c0e
commit 2aa496312e
31 changed files with 144 additions and 107 deletions
+2 -1
View File
@@ -461,7 +461,8 @@ static int run(int argc, char *argv[]) {
} else {
_cleanup_strv_free_ char **files = NULL;
r = conf_files_list_strv(&files, ".conf", NULL, 0, (const char**) CONF_PATHS_STRV("sysctl.d"));
r = conf_files_list_strv(&files, ".conf", /* root= */ NULL, CONF_FILES_WARN,
(const char**) CONF_PATHS_STRV("sysctl.d"));
if (r < 0)
return log_error_errno(r, "Failed to enumerate sysctl.d files: %m");