summaryrefslogtreecommitdiff
path: root/generator.c
diff options
context:
space:
mode:
authorWayne Davison <wayne@opencoder.net>2020-09-21 10:44:18 -0700
committerWayne Davison <wayne@opencoder.net>2020-09-21 11:07:42 -0700
commitfd6839b7464f53afb4cf016e4b4f6d2c477eb8d8 (patch)
treec7ef2f0729cea1707a51d159d6100b936c5fe7af /generator.c
parenta79d9b22b1ccfafc7c98d02a9d5c1fb6f89645ef (diff)
downloadrsync-fd6839b7464f53afb4cf016e4b4f6d2c477eb8d8.tar.gz
Avoid spurious "is newer" messages with `--update`.
Diffstat (limited to 'generator.c')
-rw-r--r--generator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generator.c b/generator.c
index f1780838..f83ac501 100644
--- a/generator.c
+++ b/generator.c
@@ -1703,7 +1703,7 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx,
goto cleanup;
}
- if (update_only > 0 && statret == 0 && file->modtime - sx.st.st_mtime <= modify_window) {
+ if (update_only > 0 && statret == 0 && file->modtime - sx.st.st_mtime < modify_window) {
if (INFO_GTE(SKIP, 1))
rprintf(FINFO, "%s is newer\n", fname);
#ifdef SUPPORT_HARD_LINKS