From d043fe2f6c5f011bee37955c1f246d3f32a3f007 Mon Sep 17 00:00:00 2001 From: Mateusz Wykurz Date: Sat, 2 Dec 2023 23:28:16 -0700 Subject: [PATCH] Also use size when compparing files in rlink --- common/src/copy.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/src/copy.rs b/common/src/copy.rs index 0863960..f203e6c 100644 --- a/common/src/copy.rs +++ b/common/src/copy.rs @@ -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()