Skip to content

Commit

Permalink
Also use size when compparing files in rlink
Browse files Browse the repository at this point in the history
  • Loading branch information
wykurz committed Dec 3, 2023
1 parent 08ded38 commit d043fe2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion common/src/copy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,8 @@ fn is_file_type_same(md1: &std::fs::Metadata, md2: &std::fs::Metadata) -> bool {
}

fn is_unchanged(md1: &std::fs::Metadata, md2: &std::fs::Metadata) -> bool {
if md1.atime() != md2.atime()
if md1.size() != md2.size()
|| md1.atime() != md2.atime()
|| md1.mtime() != md2.mtime()
|| md1.permissions() != md2.permissions()
|| md1.uid() != md2.uid()
Expand Down

0 comments on commit d043fe2

Please sign in to comment.