Only check for dangling symlinks, load enabled/*.conf file

In debug mode it's highly confusing to see Finit load available/*.conf
files when you expect it to only load finit.conf and enabled/*.conf,
so let's keep the dangling symlink check to itself and actually load
and parse from enabled/ as it was intended :)

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2021-03-20 14:40:11 +01:00
parent e437379939
commit 3bb1e41394
+1 -1
View File
@@ -677,7 +677,7 @@ int conf_reload(void)
/* Check for dangling symlinks */ /* Check for dangling symlinks */
if (S_ISLNK(st.st_mode)) { if (S_ISLNK(st.st_mode)) {
path = rp = realpath(path, NULL); rp = realpath(path, NULL);
if (!rp) { if (!rp) {
logit(LOG_WARNING, "Skipping %s, dangling symlink: %s", path, strerror(errno)); logit(LOG_WARNING, "Skipping %s, dangling symlink: %s", path, strerror(errno));
continue; continue;