diff --git a/lib/model/folder_sendrecv.go b/lib/model/folder_sendrecv.go index 1e75b0319..98428addf 100644 --- a/lib/model/folder_sendrecv.go +++ b/lib/model/folder_sendrecv.go @@ -875,7 +875,7 @@ func (f *sendReceiveFolder) renameFile(cur, source, target protocol.FileInfo, db err = errModified default: if fi, err := scanner.CreateFileInfo(stat, target.Name, f.fs); err == nil { - if !fi.IsEquivalentOptional(curTarget, false, true, protocol.LocalAllFlags) { + if !fi.IsEquivalentOptional(curTarget, f.IgnorePerms, true, protocol.LocalAllFlags) { // Target changed scanChan <- target.Name err = errModified @@ -1880,7 +1880,7 @@ func (f *sendReceiveFolder) checkToBeDeleted(cur protocol.FileInfo, scanChan cha if err != nil { return err } - if !fi.IsEquivalentOptional(cur, false, true, protocol.LocalAllFlags) { + if !fi.IsEquivalentOptional(cur, f.IgnorePerms, true, protocol.LocalAllFlags) { // File changed scanChan <- cur.Name return errModified