2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-22 10:58:55 +00:00

node: Correctly compare times

This commit is contained in:
Alexander Neumann 2017-11-16 21:51:12 +01:00
parent 69fcb604c8
commit 82ded35706

View File

@ -385,13 +385,13 @@ func (node Node) Equals(other Node) bool {
if node.Mode != other.Mode {
return false
}
if node.ModTime != other.ModTime {
if !node.ModTime.Equal(other.ModTime) {
return false
}
if node.AccessTime != other.AccessTime {
if !node.AccessTime.Equal(other.AccessTime) {
return false
}
if node.ChangeTime != other.ChangeTime {
if !node.ChangeTime.Equal(other.ChangeTime) {
return false
}
if node.UID != other.UID {