From 44f69bd5759f92555eeab3932edd0f0505b572d9 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Sun, 9 Jul 2017 14:33:58 +0200 Subject: [PATCH] Check if symlink with lstat(), mtime with stat() With the new scheme using /etc/finit.d/available/, and symlinks from there to the enabled directory, we need to check mtime of .conf files using stat(), not lstat() which we need to check if .conf is a symlink. Signed-off-by: Joachim Nilsson --- src/conf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/conf.c b/src/conf.c index b58821f1..56886794 100644 --- a/src/conf.c +++ b/src/conf.c @@ -514,6 +514,7 @@ void conf_reload_dynamic(void) continue; } + stat(path, &st); TIMESPEC_TO_TIMEVAL(&mtime, &st.st_mtim); parse_conf_dynamic(path, &mtime); }