From d37a5b03f1807f38cba31500dd5f8a1fbfa8cc81 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Sun, 30 Jan 2022 18:21:21 +0200 Subject: [PATCH] lib/fs: Handle permission change events on macos (fixes #7924) (#8150) --- lib/fs/basicfs_watch_eventtypes_darwin.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/fs/basicfs_watch_eventtypes_darwin.go b/lib/fs/basicfs_watch_eventtypes_darwin.go index 8968c50db..1b68f1d17 100644 --- a/lib/fs/basicfs_watch_eventtypes_darwin.go +++ b/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 )