2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-26 20:30:19 +00:00

Don't check ctime when ignoring inode.

This commit is contained in:
Courtney Bane 2019-04-23 22:27:38 -05:00
parent b8c2544dcb
commit 35b7607802

View File

@ -455,7 +455,7 @@ func fileChanged(fi os.FileInfo, node *restic.Node, ignoreInode bool) bool {
// check status change timestamp
extFI := fs.ExtendedStat(fi)
if !extFI.ChangeTime.Equal(node.ChangeTime) {
if !ignoreInode && !extFI.ChangeTime.Equal(node.ChangeTime) {
return true
}