mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-10-23 22:28:16 -04:00
Have unchanged_attrs() check the mtime on items where we can
affect the time, even if unchanged_file() might have already checked it.
This commit is contained in:
1 parent
0379c8eca1
commit
45a143cd51
1 file changed
+8
@@ -517,6 +517,14 @@ static void do_delete_pass(void)
|
||||
|
||||
int unchanged_attrs(const char *fname, struct file_struct *file, stat_x *sxp)
|
||||
{
|
||||
#if !defined HAVE_LCHMOD && !defined HAVE_SETATTRLIST
|
||||
if (S_ISLNK(file->mode)) {
|
||||
;
|
||||
} else
|
||||
#endif
|
||||
if (preserve_times && cmp_time(sxp->st.st_mtime, file->modtime) != 0)
|
||||
return 0;
|
||||
|
||||
if (preserve_perms && !BITS_EQUAL(sxp->st.st_mode, file->mode, CHMOD_BITS))
|
||||
return 0;
|
||||
|
||||
|
||||
Reference in new issue
Block a user