Browse Source

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

Co-authored-by: James Bohnert <jbohnert@haivision.com>
pull/2594/head
James Bohnert 2 years ago committed by GitHub
parent
commit
88dd8d23f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      internal/confwatcher/confwatcher.go

1
internal/confwatcher/confwatcher.go

@ -90,6 +90,7 @@ outer: @@ -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

Loading…
Cancel
Save