X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/65d0a49f5c0d7f389ca1b2273f0a8ba306630a06..45a8354004ecbc1c0b03d6e880b512854ed9439a:/rsync.c diff --git a/rsync.c b/rsync.c index 63132672..44d54dac 100644 --- a/rsync.c +++ b/rsync.c @@ -162,7 +162,7 @@ int set_perms(char *fname,struct file_struct *file,STRUCT_STAT *st, } if (preserve_times && !S_ISLNK(st->st_mode) && - st->st_mtime != file->modtime) { + cmp_modtime(st->st_mtime, file->modtime) != 0) { /* don't complain about not setting times on directories because some filesystems can't do it */ if (set_modtime(fname,file->modtime) != 0 &&