mirror of
https://github.com/troglobit/finit.git
synced 2026-11-17 19:30:29 +00:00
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 <troglobit@gmail.com>
This commit is contained in:
1 parent
963b736d8b
commit
44f69bd575
1 file changed
+1
@@ -514,6 +514,7 @@ void conf_reload_dynamic(void)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stat(path, &st);
|
||||||
TIMESPEC_TO_TIMEVAL(&mtime, &st.st_mtim);
|
TIMESPEC_TO_TIMEVAL(&mtime, &st.st_mtim);
|
||||||
parse_conf_dynamic(path, &mtime);
|
parse_conf_dynamic(path, &mtime);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user