summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2025-01-16 10:41:48 +0100
committermo8it <mo8it@proton.me>2025-01-16 10:41:48 +0100
commitfbfd4f25e7e715007f5f3f6678f5d336d24d3660 (patch)
tree9fc2f02bfd47ca0b8ca5e3c101818c06ec8a7f0b /src
parentd12735a57336c8bbad2c26ea0328d88c117918b5 (diff)
Disable following symlinks in the watcher
Diffstat (limited to 'src')
-rw-r--r--src/watch.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/watch.rs b/src/watch.rs
index 6259c9d..3a56b4b 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}"))?;