Got rid of a redundant mtime check.
[rsync/rsync.git] / generator.c
index 5ba5579..f364eef 100644 (file)
@@ -517,7 +517,7 @@ 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
+#ifndef HAVE_LUTIMES
        if (S_ISLNK(file->mode)) {
                ;
        } else
@@ -903,9 +903,6 @@ static int try_dests_reg(struct file_struct *file, char *fname, int ndx,
                case 2:
                        if (!unchanged_attrs(cmpbuf, file, sxp))
                                continue;
-                       if (always_checksum > 0 && preserve_times
-                        && cmp_time(sxp->st.st_mtime, file->modtime))
-                               continue;
                        best_match = j;
                        match_level = 3;
                        break;