mirror of
https://github.com/troglobit/finit.git
synced 2026-10-01 05:22:48 +07:00
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:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user