Browse Source

lib/fs: Handle permission change events on macos (fixes #7924) (#8150)

Jonathan 3 years ago
parent
commit
d37a5b03f1
1 changed files with 3 additions and 2 deletions
  1. 3 2
      lib/fs/basicfs_watch_eventtypes_darwin.go

+ 3 - 2
lib/fs/basicfs_watch_eventtypes_darwin.go

@@ -12,7 +12,8 @@ package fs
 import "github.com/syncthing/notify"
 
 const (
-	subEventMask  = notify.Create | notify.Remove | notify.Write | notify.Rename | notify.FSEventsInodeMetaMod
-	permEventMask = 0
+	subEventMask = notify.Create | notify.Remove | notify.Write | notify.Rename | notify.FSEventsInodeMetaMod
+	// FSEventsChangeOwner fires on permission change
+	permEventMask = notify.FSEventsChangeOwner
 	rmEventMask   = notify.Remove | notify.Rename
 )