@@ -52,7 +52,7 @@ impl From<(&cap_std::fs::Metadata, Xattrs)> for MyStat {
52
52
}
53
53
}
54
54
55
- fn stat_eq ( this : & Stat , other : & Stat ) -> bool {
55
+ fn stat_eq_ignore_mtime ( this : & Stat , other : & Stat ) -> bool {
56
56
if this. st_uid != other. st_uid {
57
57
return false ;
58
58
}
@@ -65,10 +65,6 @@ fn stat_eq(this: &Stat, other: &Stat) -> bool {
65
65
return false ;
66
66
}
67
67
68
- if this. st_mtim_sec != other. st_mtim_sec {
69
- return false ;
70
- }
71
-
72
68
if this. xattrs != other. xattrs {
73
69
return false ;
74
70
}
@@ -183,7 +179,7 @@ fn get_modifications(
183
179
Inode :: Directory ( curr_dir) => {
184
180
match pristine. get_directory ( path) {
185
181
Ok ( old_dir) => {
186
- if !stat_eq ( & curr_dir. stat , & old_dir. stat ) {
182
+ if !stat_eq_ignore_mtime ( & curr_dir. stat , & old_dir. stat ) {
187
183
// Directory permissions/owner modified
188
184
diff. modified . push ( current_path. clone ( ) ) ;
189
185
}
@@ -215,7 +211,7 @@ fn get_modifications(
215
211
} ;
216
212
217
213
if old_meta. content_hash != current_meta. content_hash
218
- || !stat_eq ( & old_leaf. stat , & leaf. stat )
214
+ || !stat_eq_ignore_mtime ( & old_leaf. stat , & leaf. stat )
219
215
{
220
216
// File modified in some way
221
217
diff. modified . push ( current_path. clone ( ) ) ;
0 commit comments