From 3bb1e41394fdea6ff2937b21bbabd53b8eb4a681 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Sat, 20 Mar 2021 14:40:11 +0100 Subject: [PATCH] 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 --- src/conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conf.c b/src/conf.c index e40e84b7..1fa6d5b4 100644 --- a/src/conf.c +++ b/src/conf.c @@ -677,7 +677,7 @@ int conf_reload(void) /* Check for dangling symlinks */ if (S_ISLNK(st.st_mode)) { - path = rp = realpath(path, NULL); + rp = realpath(path, NULL); if (!rp) { logit(LOG_WARNING, "Skipping %s, dangling symlink: %s", path, strerror(errno)); continue;