summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2005-06-28 00:12:08 +0000
committerWayne Davison <wayned@samba.org>2005-06-28 00:12:08 +0000
commit6ff2f4ba67c1ab730df97e61beeb367ec55d3677 (patch)
tree845db587b46653bd21599e87d6df32d231bd9142
parent309a5be87318477dedc6275f5ba785b6785278e8 (diff)
downloadrsync-6ff2f4ba67c1ab730df97e61beeb367ec55d3677.tar.gz
Use cmp_modtime() in a couple more spots where a local modtime is
compared with a remote modtime.
-rw-r--r--generator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generator.c b/generator.c
index c0613863..964b4037 100644
--- a/generator.c
+++ b/generator.c
@@ -325,7 +325,7 @@ void itemize(struct file_struct *file, int ndx, int statret, STRUCT_STAT *st,
if ((iflags & (ITEM_TRANSFER|ITEM_LOCAL_CHANGE) && !keep_time
&& (!(iflags & ITEM_XNAME_FOLLOWS) || *xname))
- || (keep_time && file->modtime != st->st_mtime))
+ || (keep_time && cmp_modtime(file->modtime, st->st_mtime) != 0))
iflags |= ITEM_REPORT_TIME;
if (preserve_perms && file->mode != st->st_mode)
iflags |= ITEM_REPORT_PERMS;
@@ -529,7 +529,7 @@ static int find_fuzzy(struct file_struct *file, struct file_list *dirlist)
name = fp->basename;
if (fp->length == file->length
- && fp->modtime == file->modtime) {
+ && cmp_modtime(fp->modtime, file->modtime) == 0) {
if (verbose > 4) {
rprintf(FINFO,
"fuzzy size/modtime match for %s\n",