Repository: syncthing/syncthing (language: go)

Issue:
Dangling symlink prevents filesystem watcher on Solaris
Like Issue #5360, dangling symlinks are an issue with the FEN filesystem watcher on Solaris.

Syncthing 1.18.3, Solaris 11.4.

I added `notify.FileNoFollow` to `subEventMask`, the targets of symlinks should never be watched.


Discussion / hints:

Fix patch:
diff --git a/lib/fs/basicfs_watch_eventtypes_fen.go b/lib/fs/basicfs_watch_eventtypes_fen.go
index bba5584a0b8..eae07e2d0a6 100644
--- a/lib/fs/basicfs_watch_eventtypes_fen.go
+++ b/lib/fs/basicfs_watch_eventtypes_fen.go
@@ -12,7 +12,7 @@ package fs
 import "github.com/syncthing/notify"
 
 const (
-	subEventMask  = notify.Create | notify.FileModified | notify.FileRenameFrom | notify.FileDelete | notify.FileRenameTo
+	subEventMask  = notify.Create | notify.FileModified | notify.FileRenameFrom | notify.FileDelete | notify.FileRenameTo | notify.FileNoFollow
 	permEventMask = notify.FileAttrib
 	rmEventMask   = notify.FileDelete | notify.FileRenameFrom
 )


Test patch: