X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/ad75d18d2e71192e7a2f32f2a4c4469c32c71e6c..b06050f9ad6657a41b5ca5f7e205e48ed6edb173:/generator.c diff --git a/generator.c b/generator.c index ae7c0ea2..b36bc4d2 100644 --- a/generator.c +++ b/generator.c @@ -607,15 +607,10 @@ static int try_dests_reg(struct file_struct *file, char *fname, int ndx, char *cmpbuf, STRUCT_STAT *stp, int itemizing, int maybe_ATTRS_REPORT, enum logcode code) { - int save_ignore_times = ignore_times; int best_match = -1; int match_level = 0; int j = 0; - /* We can't let ignore_times affect the unchanged_file() test in - * an alternate-dest dir or we will never find any matches. */ - ignore_times = 0; - do { pathjoin(cmpbuf, MAXPATHLEN, basis_dir[j], fname); if (link_stat(cmpbuf, stp, 0) < 0 || !S_ISREG(stp->st_mode)) @@ -644,8 +639,6 @@ static int try_dests_reg(struct file_struct *file, char *fname, int ndx, break; } while (basis_dir[++j] != NULL); - ignore_times = save_ignore_times; - if (!match_level) return -1; @@ -1154,7 +1147,7 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx, goto return_with_success; return; } - if (j != -1) { + if (j >= 0) { fnamecmp = fnamecmpbuf; fnamecmp_type = j; statret = 0;