From 88dd8d23f4a46d4f1ece0ed32406a70f0d00c950 Mon Sep 17 00:00:00 2001 From: James Bohnert Date: Sat, 28 Oct 2023 05:08:11 -0500 Subject: [PATCH] evaluate confwatcher event paths to ensure consistency with stored path (#2586) Co-authored-by: James Bohnert --- internal/confwatcher/confwatcher.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/confwatcher/confwatcher.go b/internal/confwatcher/confwatcher.go index f721dff8..7da94857 100644 --- a/internal/confwatcher/confwatcher.go +++ b/internal/confwatcher/confwatcher.go @@ -90,6 +90,7 @@ outer: currentWatchedPath, _ := filepath.EvalSymlinks(w.watchedPath) eventPath, _ := filepath.Abs(event.Name) + eventPath, _ = filepath.EvalSymlinks(eventPath) if currentWatchedPath == "" { // watched file was removed; wait for write event to trigger reload