mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-22 02:48:59 +00:00
lib/protocol: Ignore inode time when both xattr and ownership is ignored (fixes #8654)
This commit is contained in:
parent
abb921acbc
commit
15c0afec05
@ -244,9 +244,9 @@ func (f FileInfo) isEquivalent(other FileInfo, comp FileInfoComparison) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// If we are recording inode change times and it changed, they are not
|
||||
// equal.
|
||||
if (f.InodeChangeNs != 0 && other.InodeChangeNs != 0) && f.InodeChangeNs != other.InodeChangeNs {
|
||||
// If we care about either ownership or xattrs, are recording inode change
|
||||
// times and it changed, they are not equal.
|
||||
if !(comp.IgnoreOwnership && comp.IgnoreXattrs) && f.InodeChangeNs != 0 && other.InodeChangeNs != 0 && f.InodeChangeNs != other.InodeChangeNs {
|
||||
return false
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user