evaluate confwatcher event paths to ensure consistency with stored path (#2586)

Co-authored-by: James Bohnert <jbohnert@haivision.com>
This commit is contained in:
James Bohnert 2023-10-28 05:08:11 -05:00 committed by GitHub
parent 6d27d690dc
commit 88dd8d23f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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