From fbfd4f25e7e715007f5f3f6678f5d336d24d3660 Mon Sep 17 00:00:00 2001 From: mo8it Date: Thu, 16 Jan 2025 10:41:48 +0100 Subject: [PATCH] Disable following symlinks in the watcher --- src/watch.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/watch.rs b/src/watch.rs index 6259c9df..3a56b4b6 100644 --- a/src/watch.rs +++ b/src/watch.rs @@ -74,7 +74,9 @@ fn run_watch( let mut watcher = RecommendedWatcher::new( notify_event_handler, - Config::default().with_poll_interval(Duration::from_secs(1)), + Config::default() + .with_follow_symlinks(false) + .with_poll_interval(Duration::from_secs(1)), ) .inspect_err(|_| eprintln!("{NOTIFY_ERR}"))?;